|
@@ -1,13 +1,14 @@
|
|
-- parse Lua modified keymap.clj into Markdown table
|
|
-- parse Lua modified keymap.clj into Markdown table
|
|
|
|
|
|
local keymaps = {
|
|
local keymaps = {
|
|
- darwin = {
|
|
|
|
|
|
+ macos = {
|
|
["A"] = "add",
|
|
["A"] = "add",
|
|
["Alt+Backspace"] = "delete-prev-word",
|
|
["Alt+Backspace"] = "delete-prev-word",
|
|
["Alt+Delete"] = "delete-next-word",
|
|
["Alt+Delete"] = "delete-next-word",
|
|
["Alt+Down"] = "end-of-line",
|
|
["Alt+Down"] = "end-of-line",
|
|
["Alt+Down"] = "move-down",
|
|
["Alt+Down"] = "move-down",
|
|
["Alt+Left"] = "prev-word",
|
|
["Alt+Left"] = "prev-word",
|
|
|
|
+ ["Alt+F9"] = "edit-breakpoint",
|
|
["Alt+Meta+E"] = "select-next-occurrence",
|
|
["Alt+Meta+E"] = "select-next-occurrence",
|
|
["Alt+Meta+F"] = "replace-text",
|
|
["Alt+Meta+F"] = "replace-text",
|
|
["Alt+Meta+G"] = "replace-next",
|
|
["Alt+Meta+G"] = "replace-next",
|
|
@@ -21,7 +22,7 @@ local keymaps = {
|
|
["Ctrl+I"] = "reindent",
|
|
["Ctrl+I"] = "reindent",
|
|
["Ctrl+K"] = "delete-to-end-of-line",
|
|
["Ctrl+K"] = "delete-to-end-of-line",
|
|
["Ctrl+Meta+H"] = "toggle-component-guides",
|
|
["Ctrl+Meta+H"] = "toggle-component-guides",
|
|
- ["Ctrl+R"] = "reload-stylesheet",
|
|
|
|
|
|
+ ["Ctrl+R"] = "open-recent-file",
|
|
["Ctrl+Space"] = "proposals",
|
|
["Ctrl+Space"] = "proposals",
|
|
["Delete"] = "delete",
|
|
["Delete"] = "delete",
|
|
["Down"] = "down",
|
|
["Down"] = "down",
|
|
@@ -40,6 +41,7 @@ local keymaps = {
|
|
["F7"] = "toggle-pane-bottom",
|
|
["F7"] = "toggle-pane-bottom",
|
|
["F8"] = "toggle-pane-right",
|
|
["F8"] = "toggle-pane-right",
|
|
["F9"] = "toggle-breakpoint",
|
|
["F9"] = "toggle-breakpoint",
|
|
|
|
+ ["F12"] = "goto-definition",
|
|
["Home"] = "beginning-of-line-text",
|
|
["Home"] = "beginning-of-line-text",
|
|
["Left"] = "left",
|
|
["Left"] = "left",
|
|
["Meta+'+'"] = "zoom-in",
|
|
["Meta+'+'"] = "zoom-in",
|
|
@@ -51,7 +53,7 @@ local keymaps = {
|
|
["Meta+D"] = "select-next-occurrence",
|
|
["Meta+D"] = "select-next-occurrence",
|
|
["Meta+Delete"] = "delete-to-end-of-line",
|
|
["Meta+Delete"] = "delete-to-end-of-line",
|
|
["Meta+Down"] = "end-of-file",
|
|
["Meta+Down"] = "end-of-file",
|
|
- ["Meta+E"] = "hide-selected",
|
|
|
|
|
|
+ ["Meta+E"] = "hide-toggle-selected",
|
|
["Meta+F"] = "filter-form",
|
|
["Meta+F"] = "filter-form",
|
|
["Meta+F"] = "find-text",
|
|
["Meta+F"] = "find-text",
|
|
["Meta+G"] = "find-next",
|
|
["Meta+G"] = "find-next",
|
|
@@ -64,9 +66,10 @@ local keymaps = {
|
|
["Meta+R"] = "hot-reload",
|
|
["Meta+R"] = "hot-reload",
|
|
["Meta+Right"] = "end-of-line",
|
|
["Meta+Right"] = "end-of-line",
|
|
["Meta+S"] = "save-all",
|
|
["Meta+S"] = "save-all",
|
|
- ["Meta+Slash"] = "toggle-comment",
|
|
|
|
|
|
+ ["Meta+'/'"] = "toggle-comment",
|
|
["Meta+T"] = "scene-stop",
|
|
["Meta+T"] = "scene-stop",
|
|
["Meta+U"] = "rebundle",
|
|
["Meta+U"] = "rebundle",
|
|
|
|
+ ["Meta+J"] = "close-engine",
|
|
["Meta+Up"] = "beginning-of-file",
|
|
["Meta+Up"] = "beginning-of-file",
|
|
["Meta+V"] = "paste",
|
|
["Meta+V"] = "paste",
|
|
["Meta+W"] = "close",
|
|
["Meta+W"] = "close",
|
|
@@ -82,6 +85,7 @@ local keymaps = {
|
|
["Shift+Alt+Left"] = "select-prev-word",
|
|
["Shift+Alt+Left"] = "select-prev-word",
|
|
["Shift+Alt+Right"] = "select-next-word",
|
|
["Shift+Alt+Right"] = "select-next-word",
|
|
["Shift+Alt+Up"] = "select-beginning-of-line",
|
|
["Shift+Alt+Up"] = "select-beginning-of-line",
|
|
|
|
+ ["Shift+Backspace"] = "delete-backward",
|
|
["Shift+Ctrl+A"] = "select-beginning-of-line",
|
|
["Shift+Ctrl+A"] = "select-beginning-of-line",
|
|
["Shift+Ctrl+E"] = "select-end-of-line",
|
|
["Shift+Ctrl+E"] = "select-end-of-line",
|
|
["Shift+Ctrl+Left"] = "select-prev-word",
|
|
["Shift+Ctrl+Left"] = "select-prev-word",
|
|
@@ -91,6 +95,7 @@ local keymaps = {
|
|
["Shift+E"] = "erase-tool",
|
|
["Shift+E"] = "erase-tool",
|
|
["Shift+End"] = "select-end-of-line",
|
|
["Shift+End"] = "select-end-of-line",
|
|
["Shift+F11"] = "step-out",
|
|
["Shift+F11"] = "step-out",
|
|
|
|
+ ["Shift+F12"] = "find-references",
|
|
["Shift+Home"] = "select-beginning-of-line-text",
|
|
["Shift+Home"] = "select-beginning-of-line-text",
|
|
["Shift+Left"] = "left-major",
|
|
["Shift+Left"] = "left-major",
|
|
["Shift+Left"] = "select-left",
|
|
["Shift+Left"] = "select-left",
|
|
@@ -105,8 +110,10 @@ local keymaps = {
|
|
["Shift+Meta+Left"] = "select-beginning-of-line-text",
|
|
["Shift+Meta+Left"] = "select-beginning-of-line-text",
|
|
["Shift+Meta+R"] = "open-asset",
|
|
["Shift+Meta+R"] = "open-asset",
|
|
["Shift+Meta+Right"] = "select-end-of-line",
|
|
["Shift+Meta+Right"] = "select-end-of-line",
|
|
|
|
+ ["Shift+Meta+T"] = "reopen-recent-file",
|
|
["Shift+Meta+Up"] = "select-beginning-of-file",
|
|
["Shift+Meta+Up"] = "select-beginning-of-file",
|
|
["Shift+Meta+W"] = "close-all",
|
|
["Shift+Meta+W"] = "close-all",
|
|
|
|
+ ["Shift+Meta+Y"] = "async-reload",
|
|
["Shift+Meta+Z"] = "redo",
|
|
["Shift+Meta+Z"] = "redo",
|
|
["Shift+Page Down"] = "select-page-down",
|
|
["Shift+Page Down"] = "select-page-down",
|
|
["Shift+Page Up"] = "select-page-up",
|
|
["Shift+Page Up"] = "select-page-up",
|
|
@@ -120,10 +127,15 @@ local keymaps = {
|
|
["Tab"] = "tab",
|
|
["Tab"] = "tab",
|
|
["Up"] = "up",
|
|
["Up"] = "up",
|
|
["W"] = "move-tool",
|
|
["W"] = "move-tool",
|
|
|
|
+ ["X"] = "flip-brush-horizontally",
|
|
|
|
+ ["Y"] = "flip-brush-vertically",
|
|
|
|
+ ["Z"] = "rotate-brush-90-degrees]",
|
|
},
|
|
},
|
|
win32 = {
|
|
win32 = {
|
|
["A"] = "add",
|
|
["A"] = "add",
|
|
["Alt+Down"] = "move-down",
|
|
["Alt+Down"] = "move-down",
|
|
|
|
+ ["Alt+F9"] = "edit-breakpoint",
|
|
|
|
+ ["Alt+R"] = "open-recent-file",
|
|
["Alt+Up"] = "move-up",
|
|
["Alt+Up"] = "move-up",
|
|
["Backspace"] = "delete-backward",
|
|
["Backspace"] = "delete-backward",
|
|
["Ctrl+'+'"] = "zoom-in",
|
|
["Ctrl+'+'"] = "zoom-in",
|
|
@@ -135,7 +147,7 @@ local keymaps = {
|
|
["Ctrl+Comma"] = "preferences",
|
|
["Ctrl+Comma"] = "preferences",
|
|
["Ctrl+D"] = "select-next-occurrence",
|
|
["Ctrl+D"] = "select-next-occurrence",
|
|
["Ctrl+Delete"] = "delete-next-word",
|
|
["Ctrl+Delete"] = "delete-next-word",
|
|
- ["Ctrl+E"] = "hide-selected",
|
|
|
|
|
|
+ ["Ctrl+E"] = "hide-toggle-selected",
|
|
["Ctrl+End"] = "end-of-file",
|
|
["Ctrl+End"] = "end-of-file",
|
|
["Ctrl+F"] = "filter-form",
|
|
["Ctrl+F"] = "filter-form",
|
|
["Ctrl+F"] = "find-text",
|
|
["Ctrl+F"] = "find-text",
|
|
@@ -154,10 +166,11 @@ local keymaps = {
|
|
["Ctrl+R"] = "hot-reload",
|
|
["Ctrl+R"] = "hot-reload",
|
|
["Ctrl+Right"] = "next-word",
|
|
["Ctrl+Right"] = "next-word",
|
|
["Ctrl+S"] = "save-all",
|
|
["Ctrl+S"] = "save-all",
|
|
- ["Ctrl+Slash"] = "toggle-comment",
|
|
|
|
|
|
+ ["Ctrl+'/'"] = "toggle-comment",
|
|
["Ctrl+Space"] = "proposals",
|
|
["Ctrl+Space"] = "proposals",
|
|
["Ctrl+T"] = "scene-stop",
|
|
["Ctrl+T"] = "scene-stop",
|
|
["Ctrl+U"] = "rebundle",
|
|
["Ctrl+U"] = "rebundle",
|
|
|
|
+ ["Ctrl+J"] = "close-engine",
|
|
["Ctrl+V"] = "paste",
|
|
["Ctrl+V"] = "paste",
|
|
["Ctrl+W"] = "close",
|
|
["Ctrl+W"] = "close",
|
|
["Ctrl+X"] = "cut",
|
|
["Ctrl+X"] = "cut",
|
|
@@ -179,6 +192,7 @@ local keymaps = {
|
|
["F7"] = "toggle-pane-bottom",
|
|
["F7"] = "toggle-pane-bottom",
|
|
["F8"] = "toggle-pane-right",
|
|
["F8"] = "toggle-pane-right",
|
|
["F9"] = "toggle-breakpoint",
|
|
["F9"] = "toggle-breakpoint",
|
|
|
|
+ ["F12"] = "goto-definition",
|
|
["Home"] = "beginning-of-line-text",
|
|
["Home"] = "beginning-of-line-text",
|
|
["Left"] = "left",
|
|
["Left"] = "left",
|
|
["Page Down"] = "page-down",
|
|
["Page Down"] = "page-down",
|
|
@@ -187,6 +201,7 @@ local keymaps = {
|
|
["R"] = "scale-tool",
|
|
["R"] = "scale-tool",
|
|
["Right"] = "right",
|
|
["Right"] = "right",
|
|
["Shift+A"] = "add-secondary",
|
|
["Shift+A"] = "add-secondary",
|
|
|
|
+ ["Shift+Backspace"] = "delete-backward",
|
|
["Shift+Ctrl+B"] = "rebuild",
|
|
["Shift+Ctrl+B"] = "rebuild",
|
|
["Shift+Ctrl+Delete"] = "delete-to-end-of-line",
|
|
["Shift+Ctrl+Delete"] = "delete-to-end-of-line",
|
|
["Shift+Ctrl+E"] = "show-last-hidden",
|
|
["Shift+Ctrl+E"] = "show-last-hidden",
|
|
@@ -200,13 +215,16 @@ local keymaps = {
|
|
["Shift+Ctrl+Left"] = "select-prev-word",
|
|
["Shift+Ctrl+Left"] = "select-prev-word",
|
|
["Shift+Ctrl+R"] = "open-asset",
|
|
["Shift+Ctrl+R"] = "open-asset",
|
|
["Shift+Ctrl+Right"] = "select-next-word",
|
|
["Shift+Ctrl+Right"] = "select-next-word",
|
|
|
|
+ ["Shift+Ctrl+T"] = "reopen-recent-file",
|
|
["Shift+Ctrl+W"] = "close-all",
|
|
["Shift+Ctrl+W"] = "close-all",
|
|
|
|
+ ["Shift+Ctrl+Y"] = "async-reload",
|
|
["Shift+Ctrl+Z"] = "redo",
|
|
["Shift+Ctrl+Z"] = "redo",
|
|
["Shift+Down"] = "down-major",
|
|
["Shift+Down"] = "down-major",
|
|
["Shift+Down"] = "select-down",
|
|
["Shift+Down"] = "select-down",
|
|
["Shift+E"] = "erase-tool",
|
|
["Shift+E"] = "erase-tool",
|
|
["Shift+End"] = "select-end-of-line",
|
|
["Shift+End"] = "select-end-of-line",
|
|
["Shift+F11"] = "step-out",
|
|
["Shift+F11"] = "step-out",
|
|
|
|
+ ["Shift+F12"] = "find-references",
|
|
["Shift+F5"] = "stop-debugger",
|
|
["Shift+F5"] = "stop-debugger",
|
|
["Shift+Home"] = "select-beginning-of-line-text",
|
|
["Shift+Home"] = "select-beginning-of-line-text",
|
|
["Shift+Left"] = "left-major",
|
|
["Shift+Left"] = "left-major",
|
|
@@ -223,10 +241,15 @@ local keymaps = {
|
|
["Tab"] = "tab",
|
|
["Tab"] = "tab",
|
|
["Up"] = "up",
|
|
["Up"] = "up",
|
|
["W"] = "move-tool",
|
|
["W"] = "move-tool",
|
|
|
|
+ ["X"] = "flip-brush-horizontally",
|
|
|
|
+ ["Y"] = "flip-brush-vertically",
|
|
|
|
+ ["Z"] = "rotate-brush-90-degrees]",
|
|
},
|
|
},
|
|
linux = {
|
|
linux = {
|
|
["A"] = "add",
|
|
["A"] = "add",
|
|
["Alt+Down"] = "move-down",
|
|
["Alt+Down"] = "move-down",
|
|
|
|
+ ["Alt+F9"] = "edit-breakpoint",
|
|
|
|
+ ["Alt+R"] = "open-recent-file",
|
|
["Alt+Up"] = "move-up",
|
|
["Alt+Up"] = "move-up",
|
|
["Backspace"] = "delete-backward",
|
|
["Backspace"] = "delete-backward",
|
|
["Ctrl+'+'"] = "zoom-in",
|
|
["Ctrl+'+'"] = "zoom-in",
|
|
@@ -238,7 +261,7 @@ local keymaps = {
|
|
["Ctrl+Comma"] = "preferences",
|
|
["Ctrl+Comma"] = "preferences",
|
|
["Ctrl+D"] = "select-next-occurrence",
|
|
["Ctrl+D"] = "select-next-occurrence",
|
|
["Ctrl+Delete"] = "delete-next-word",
|
|
["Ctrl+Delete"] = "delete-next-word",
|
|
- ["Ctrl+E"] = "hide-selected",
|
|
|
|
|
|
+ ["Ctrl+E"] = "hide-toggle-selected",
|
|
["Ctrl+End"] = "end-of-file",
|
|
["Ctrl+End"] = "end-of-file",
|
|
["Ctrl+F"] = "filter-form",
|
|
["Ctrl+F"] = "filter-form",
|
|
["Ctrl+F"] = "find-text",
|
|
["Ctrl+F"] = "find-text",
|
|
@@ -257,10 +280,11 @@ local keymaps = {
|
|
["Ctrl+R"] = "hot-reload",
|
|
["Ctrl+R"] = "hot-reload",
|
|
["Ctrl+Right"] = "next-word",
|
|
["Ctrl+Right"] = "next-word",
|
|
["Ctrl+S"] = "save-all",
|
|
["Ctrl+S"] = "save-all",
|
|
- ["Ctrl+Slash"] = "toggle-comment",
|
|
|
|
|
|
+ ["Ctrl+'/'"] = "toggle-comment",
|
|
["Ctrl+Space"] = "proposals",
|
|
["Ctrl+Space"] = "proposals",
|
|
["Ctrl+T"] = "scene-stop",
|
|
["Ctrl+T"] = "scene-stop",
|
|
["Ctrl+U"] = "rebundle",
|
|
["Ctrl+U"] = "rebundle",
|
|
|
|
+ ["Ctrl+J"] = "close-engine",
|
|
["Ctrl+V"] = "paste",
|
|
["Ctrl+V"] = "paste",
|
|
["Ctrl+W"] = "close",
|
|
["Ctrl+W"] = "close",
|
|
["Ctrl+X"] = "cut",
|
|
["Ctrl+X"] = "cut",
|
|
@@ -282,6 +306,7 @@ local keymaps = {
|
|
["F7"] = "toggle-pane-bottom",
|
|
["F7"] = "toggle-pane-bottom",
|
|
["F8"] = "toggle-pane-right",
|
|
["F8"] = "toggle-pane-right",
|
|
["F9"] = "toggle-breakpoint",
|
|
["F9"] = "toggle-breakpoint",
|
|
|
|
+ ["F12"] = "goto-definition",
|
|
["Home"] = "beginning-of-line-text",
|
|
["Home"] = "beginning-of-line-text",
|
|
["Left"] = "left",
|
|
["Left"] = "left",
|
|
["Page Down"] = "page-down",
|
|
["Page Down"] = "page-down",
|
|
@@ -290,6 +315,7 @@ local keymaps = {
|
|
["R"] = "scale-tool",
|
|
["R"] = "scale-tool",
|
|
["Right"] = "right",
|
|
["Right"] = "right",
|
|
["Shift+A"] = "add-secondary",
|
|
["Shift+A"] = "add-secondary",
|
|
|
|
+ ["Shift+Backspace"] = "delete-backward",
|
|
["Shift+Ctrl+B"] = "rebuild",
|
|
["Shift+Ctrl+B"] = "rebuild",
|
|
["Shift+Ctrl+Delete"] = "delete-to-end-of-line",
|
|
["Shift+Ctrl+Delete"] = "delete-to-end-of-line",
|
|
["Shift+Ctrl+E"] = "show-last-hidden",
|
|
["Shift+Ctrl+E"] = "show-last-hidden",
|
|
@@ -303,13 +329,16 @@ local keymaps = {
|
|
["Shift+Ctrl+Left"] = "select-prev-word",
|
|
["Shift+Ctrl+Left"] = "select-prev-word",
|
|
["Shift+Ctrl+R"] = "open-asset",
|
|
["Shift+Ctrl+R"] = "open-asset",
|
|
["Shift+Ctrl+Right"] = "select-next-word",
|
|
["Shift+Ctrl+Right"] = "select-next-word",
|
|
|
|
+ ["Shift+Ctrl+T"] = "reopen-recent-file",
|
|
["Shift+Ctrl+W"] = "close-all",
|
|
["Shift+Ctrl+W"] = "close-all",
|
|
|
|
+ ["Shift+Ctrl+Y"] = "async-reload",
|
|
["Shift+Ctrl+Z"] = "redo",
|
|
["Shift+Ctrl+Z"] = "redo",
|
|
["Shift+Down"] = "down-major",
|
|
["Shift+Down"] = "down-major",
|
|
["Shift+Down"] = "select-down",
|
|
["Shift+Down"] = "select-down",
|
|
["Shift+E"] = "erase-tool",
|
|
["Shift+E"] = "erase-tool",
|
|
["Shift+End"] = "select-end-of-line",
|
|
["Shift+End"] = "select-end-of-line",
|
|
["Shift+F11"] = "step-out",
|
|
["Shift+F11"] = "step-out",
|
|
|
|
+ ["Shift+F12"] = "find-references",
|
|
["Shift+F5"] = "stop-debugger",
|
|
["Shift+F5"] = "stop-debugger",
|
|
["Shift+Home"] = "select-beginning-of-line-text",
|
|
["Shift+Home"] = "select-beginning-of-line-text",
|
|
["Shift+Left"] = "left-major",
|
|
["Shift+Left"] = "left-major",
|
|
@@ -326,6 +355,9 @@ local keymaps = {
|
|
["Tab"] = "tab",
|
|
["Tab"] = "tab",
|
|
["Up"] = "up",
|
|
["Up"] = "up",
|
|
["W"] = "move-tool",
|
|
["W"] = "move-tool",
|
|
|
|
+ ["X"] = "flip-brush-horizontally",
|
|
|
|
+ ["Y"] = "flip-brush-vertically",
|
|
|
|
+ ["Z"] = "rotate-brush-90-degrees",
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -361,7 +393,7 @@ for _,bindings in ipairs(sorted_commands) do
|
|
command = command:gsub("-", " ")
|
|
command = command:gsub("-", " ")
|
|
command = command:sub(1,1):upper() .. command:sub(2)
|
|
command = command:sub(1,1):upper() .. command:sub(2)
|
|
local win32 = fix_binding(bindings.win32)
|
|
local win32 = fix_binding(bindings.win32)
|
|
- local darwin = fix_binding(bindings.darwin)
|
|
|
|
|
|
+ local macos = fix_binding(bindings.macos)
|
|
local linux = fix_binding(bindings.linux)
|
|
local linux = fix_binding(bindings.linux)
|
|
- print(("| %s | %s | %s | %s |"):format(command, win32, darwin, linux))
|
|
|
|
|
|
+ print(("| %s | %s | %s | %s |"):format(command, win32, macos, linux))
|
|
end
|
|
end
|