Skip to content

Commit 36f997b

Browse files
committed
feat: add toggle command for window
1 parent b505033 commit 36f997b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/command.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local state = require('codemp.state')
22
local buffers = require('codemp.buffers')
33
local workspace = require('codemp.workspace')
44
local utils = require('codemp.utils')
5+
local window = require('codemp.window')
56

67
local native = require('codemp.loader').load()
78

@@ -29,7 +30,11 @@ local base_actions = {
2930
-- only available if state.client is not nil
3031
local connected_actions = {
3132
id = function()
32-
print(" ::codemp#" .. state.client.id)
33+
print("> codemp::" .. state.client.id)
34+
end,
35+
36+
toggle = function()
37+
window.toggle()
3338
end,
3439

3540
join = function(ws)

0 commit comments

Comments
 (0)