Renamed core:command/file-finder => core:find-command/file
This commit is contained in:
parent
7fbefe40d5
commit
db8c5ea2aa
|
@ -35,7 +35,7 @@ command.add(nil, {
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
["core:command-finder"] = function()
|
["core:find-command"] = function()
|
||||||
local commands = command.get_all_valid()
|
local commands = command.get_all_valid()
|
||||||
core.command_view:enter("Do Command", function(text, item)
|
core.command_view:enter("Do Command", function(text, item)
|
||||||
if item then
|
if item then
|
||||||
|
@ -54,7 +54,7 @@ command.add(nil, {
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
["core:file-finder"] = function()
|
["core:find-file"] = function()
|
||||||
core.command_view:enter("Open File From Project", function(text, item)
|
core.command_view:enter("Open File From Project", function(text, item)
|
||||||
text = item and item.text or text
|
text = item and item.text or text
|
||||||
core.root_view:open_doc(core.open_doc(text))
|
core.root_view:open_doc(core.open_doc(text))
|
||||||
|
|
|
@ -84,8 +84,8 @@ end
|
||||||
|
|
||||||
|
|
||||||
keymap.add {
|
keymap.add {
|
||||||
["ctrl+shift+p"] = "core:command-finder",
|
["ctrl+shift+p"] = "core:find-command",
|
||||||
["ctrl+p"] = "core:file-finder",
|
["ctrl+p"] = "core:find-file",
|
||||||
["ctrl+o"] = "core:open-file",
|
["ctrl+o"] = "core:open-file",
|
||||||
["ctrl+n"] = "core:new-doc",
|
["ctrl+n"] = "core:new-doc",
|
||||||
["alt+return"] = "core:toggle-fullscreen",
|
["alt+return"] = "core:toggle-fullscreen",
|
||||||
|
|
|
@ -15,8 +15,8 @@ function EmptyView:draw()
|
||||||
local x, y, w, h = pos.x, pos.y, self.size.x, self.size.y
|
local x, y, w, h = pos.x, pos.y, self.size.x, self.size.y
|
||||||
local _, y = common.draw_text(style.big_font, style.dim, "lite", "center", x, y, w, h)
|
local _, y = common.draw_text(style.big_font, style.dim, "lite", "center", x, y, w, h)
|
||||||
local lines = {
|
local lines = {
|
||||||
{ fmt = "%s to run a command", cmd = "core:command-finder" },
|
{ fmt = "%s to run a command", cmd = "core:find-command" },
|
||||||
{ fmt = "%s to open a file from the project", cmd = "core:file-finder" },
|
{ fmt = "%s to open a file from the project", cmd = "core:find-file" },
|
||||||
}
|
}
|
||||||
local th = style.font:get_height()
|
local th = style.font:get_height()
|
||||||
for _, line in ipairs(lines) do
|
for _, line in ipairs(lines) do
|
||||||
|
|
Loading…
Reference in a new issue