dotfiles/sublime/Default (Linux).sublime-keymap
2019-02-08 09:03:23 +01:00

122 lines
2.7 KiB
Plaintext

[
// Open folder
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
// Switch case
{ "keys": ["ctrl+u"], "command": "swap_case"},
// Change Ctrl+Shift behaviour (Firefox-like)
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
// Lord, do I hate Ctrl+q ...
{ "keys": ["ctrl+q"], "command": "unbound"},
// Allow Alt+C to comment:
{ "keys": ["alt+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["alt+c"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } },
// View settings
{
"keys": ["ctrl+alt+&"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
{
"keys": ["ctrl+alt+é"],
"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+\""],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1],
[0, 1, 2, 2]
]
// "cols": [0.0, 0.33, 0.66, 1.0],
// "rows": [0.0, 1.0],
// "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
}
},
{
"keys": ["alt+shift+4"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.25, 0.5, 0.75, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]]
}
},
{
"keys": ["ctrl+alt+("],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
}
},
{
"keys": ["alt+shift+9"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.33, 0.66, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]]
}
},
{
"keys": ["ctrl+alt+'"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1],
[0, 1, 1, 2], [1, 1, 2, 2]
]
}
},
{
"keys": ["ctrl+alt+o"],
"command": "project_manager", "args": {"action": "new"}
},
{ "keys": ["ctrl+alt+s"], "command": "toggle_side_bar" },
// LaTeX compilation set to Ctrl+Enter
// Doesn't work...
// {
// "keys": ["ctrl+enter"],
// "context": [
// {"key": "selector", "operator": "equal", "operand": "text.tex.latex"},
// {"key": "latextools.st_version", "operator": "equal", "operand": "<3080"}],
// "command": "latextools_build_selector"
// },
]