DEV Community

Aubrey Portwood
Aubrey Portwood

Posted on • Edited on

Want better keybinding parity between micro and Sublime Text?

I went through the key-bindings in Micro (which use different modifier keys) and added them to Sublime Text:

    { "keys": ["ctrl+s"], "command": "save", "args": { "async": true } },
    { "keys": ["alt+up"], "command": "swap_line_up" },
    { "keys": ["alt+down"], "command": "swap_line_down" },
    { "keys": ["ctrl+left"], "command": "bol" },
    { "keys": ["ctrl+right"], "command": "eol" },
    { "keys": ["ctrl+o"], "command": "prompt_open" },
    { "keys": ["ctrl+z"], "command": "undo" },
    { "keys": ["ctrl+y"], "command": "redo" },
    { "keys": ["ctrl+c"], "command": "copy" },
    { "keys": ["ctrl+x"], "command": "cut" },
    { "keys": ["ctrl+d"], "command": "duplicate_line" },
    { "keys": ["ctrl+v"], "command": "paste" },
    { "keys": ["ctrl+a"], "command": "select_all" },
    { "keys": ["ctrl+b"], "command": "toggle_terminus_panel" },
    { "keys": ["ctrl+q"], "command": "close" },
    { "keys": ["ctrl+up"], "command": "move_to", "args": { "to": "bof" } },
    { "keys": ["ctrl+down"], "command": "move_to", "args": { "to": "eof" } },
    { "keys": ["alt+backspace"], "command": "delete_word", "args": { "forward": false, "sub_words": true } },
    { "keys": ["ctrl+f"], "command": "show_panel", "args": { "panel": "find", "reverse": false } },
    { "keys": ["alt+shift+f"], "command": "show_panel", "args": { "panel": "find_in_files" } },
    { "keys": ["ctrl+t"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, // Hurts transpose, but never use.
    { "keys": ["ctrl+e"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
Enter fullscreen mode Exit fullscreen mode

Top comments (0)