blob: 44e894f53c549357b347977cdba8905c633be2da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
local core = require "core"
local command = require "core.command"
command.add("core.commandview", {
["command:submit"] = function(active_view)
active_view:submit()
end,
["command:complete"] = function(active_view)
active_view:complete()
end,
["command:escape"] = function(active_view)
active_view:exit()
end,
["command:select-previous"] = function(active_view)
active_view:move_suggestion_idx(1)
end,
["command:select-next"] = function(active_view)
active_view:move_suggestion_idx(-1)
end,
})
|