feat: add toggle command for window

This commit is contained in:
əlemi 2024-08-15 04:07:22 +02:00
parent b505033bc4
commit 36f997b42e
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -2,6 +2,7 @@ local state = require('codemp.state')
local buffers = require('codemp.buffers')
local workspace = require('codemp.workspace')
local utils = require('codemp.utils')
local window = require('codemp.window')
local native = require('codemp.loader').load()
@ -29,7 +30,11 @@ local base_actions = {
-- only available if state.client is not nil
local connected_actions = {
id = function()
print(" ::codemp#" .. state.client.id)
print("> codemp::" .. state.client.id)
end,
toggle = function()
window.toggle()
end,
join = function(ws)