lite-xl/data/core/commands/command.lua

25 lines
539 B
Lua
Raw Normal View History

2019-12-28 12:16:32 +01:00
local core = require "core"
local command = require "core.command"
command.add("core.commandview", {
["command:submit"] = function(active_view)
active_view:submit()
2019-12-28 12:16:32 +01:00
end,
["command:complete"] = function(active_view)
active_view:complete()
2019-12-28 12:16:32 +01:00
end,
["command:escape"] = function(active_view)
active_view:exit()
2019-12-28 12:16:32 +01:00
end,
["command:select-previous"] = function(active_view)
active_view:move_suggestion_idx(1)
2019-12-28 12:16:32 +01:00
end,
["command:select-next"] = function(active_view)
active_view:move_suggestion_idx(-1)
2019-12-28 12:16:32 +01:00
end,
})