Last active
December 8, 2020 18:24
-
-
Save kalineh/9926010 to your computer and use it in GitHub Desktop.
Sublime Text - Windows Keymap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
// custom keys | |
{ "keys": [ "f7", ], "command": "build", }, | |
{ "keys": [ "f5", ], "command": "build", "args": { "variant": "Run" } }, | |
{ "keys": [ "ctrl+alt+o", ], "command": "show_panel", "args": { "panel": "output.exec", }, }, | |
{ "keys": [ "ctrl+,", ], "command": "focus_group", "args": { "group": 0, }, }, | |
{ "keys": [ "ctrl+.", ], "command": "focus_group", "args": { "group": 1, }, }, | |
{ "keys": [ "ctrl+shift+,", ], "command": "move_to_group", "args": { "group": 0, }, }, | |
{ "keys": [ "ctrl+shift+.", ], "command": "move_to_group", "args": { "group": 1, }, }, | |
{ "keys": [ "ctrl+shift+/", ], "command": "move_to_group", "args": { "group": 2, }, }, | |
// vi mappings for specific ctrl+key | |
//{ "keys": [ "ctrl+f", ], "command": "vi_command_mode_aware", }, | |
//{ "keys": [ "ctrl+b", ], "command": "vi_command_mode_aware", }, | |
// remap some default values after vi has replaced them | |
//{ "keys": [ "ctrl+n", ], "command": "new_file", }, | |
{ "keys": [ "ctrl+n" ], "command": "auto_complete" }, | |
{ "keys": [ "ctrl+w", ], "command": "close", }, | |
{ "keys": [ "ctrl+f4", ], "command": "close", }, | |
{ "keys": [ "ctrl+s", ], "command": "save", }, | |
{ "keys": [ "ctrl+a", ], "command": "select_all", }, | |
{ "keys": [ "ctrl+c", ], "command": "copy", }, | |
{ "keys": [ "ctrl+v", ], "command": "paste", }, | |
{ "keys": [ "ctrl+z", ], "command": "undo", }, | |
{ "keys": [ "alt+u", ], "command": "press_key", "args": { "key": "<C-p>", }, }, | |
{ "keys": [ "alt+j", ], "command": "recent_active_files", }, | |
{ "keys": [ "ctrl+alt+l", ], "command": "close_all", }, | |
// remove the escape handling of panels that closes build results / find | |
//{ "keys": ["escape"], "command": "unbound", "args": { "cancel": true }, "context": [ { "key": "panel_visible", "operator": "equal", "operand": true } ] }, | |
//{"keys": ["escape"], "command": "press_key", "args": {"key": "<esc>"}, "context": [{"key": "vi_command_mode_aware"}]}, | |
//{"keys": ["escape"], "command": "_enter_normal_mode", "args": {"mode": "mode_insert"}, "context": [{"key": "vi_insert_mode_aware"}]}, | |
// changing grid layout key binds because alt+shift is win language swap shortcut | |
{ "keys": ["ctrl+alt+1"], "command": "set_layout", "args": { "cols": [0.0, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1]] } }, | |
{ "keys": ["ctrl+alt+2"], "command": "set_layout", "args": { "cols": [0.0, 0.5, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] } }, | |
{ "keys": ["ctrl+alt+3"], "command": "set_layout", "args": { "cols": [0.0, 0.5, 1.0], "rows": [0.0, 0.7, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [0,1,2,2]] } }, | |
// build commands (mostly for jai) | |
{ "keys": ["ctrl+j"], "command": "build", }, | |
{ "keys": ["ctrl+shift+j"], "command": "build", "args": { "variant": "run" } }, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment