Skip to content

Commit

Permalink
Renamed core:command/file-finder => core:find-command/file
Browse files Browse the repository at this point in the history
  • Loading branch information
rxi committed May 30, 2020
1 parent 7fbefe4 commit db8c5ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions data/core/commands/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ command.add(nil, {
end)
end,

["core:command-finder"] = function()
["core:find-command"] = function()
local commands = command.get_all_valid()
core.command_view:enter("Do Command", function(text, item)
if item then
Expand All @@ -54,7 +54,7 @@ command.add(nil, {
end)
end,

["core:file-finder"] = function()
["core:find-file"] = function()
core.command_view:enter("Open File From Project", function(text, item)
text = item and item.text or text
core.root_view:open_doc(core.open_doc(text))
Expand Down
4 changes: 2 additions & 2 deletions data/core/keymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ end


keymap.add {
["ctrl+shift+p"] = "core:command-finder",
["ctrl+p"] = "core:file-finder",
["ctrl+shift+p"] = "core:find-command",
["ctrl+p"] = "core:find-file",
["ctrl+o"] = "core:open-file",
["ctrl+n"] = "core:new-doc",
["alt+return"] = "core:toggle-fullscreen",
Expand Down
4 changes: 2 additions & 2 deletions data/core/rootview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ function EmptyView:draw()
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 lines = {
{ fmt = "%s to run a command", cmd = "core:command-finder" },
{ fmt = "%s to open a file from the project", cmd = "core:file-finder" },
{ fmt = "%s to run a command", cmd = "core:find-command" },
{ fmt = "%s to open a file from the project", cmd = "core:find-file" },
}
local th = style.font:get_height()
for _, line in ipairs(lines) do
Expand Down

0 comments on commit db8c5ea

Please sign in to comment.