2026-07-18 18:48:23 +02:00
|
|
|
// Klammertext key bindings.
|
|
|
|
|
//
|
|
|
|
|
// Binds "jump to matching klammer delimiter" (the companion Klammertext.py
|
|
|
|
|
// command) to Ctrl+M — Sublime's own "go to matching bracket" key, repurposed
|
|
|
|
|
// for klammers, since the built-in cannot match context-dependent @ pairs.
|
|
|
|
|
//
|
2026-07-27 00:49:08 +02:00
|
|
|
// Binds "reindent lines" (the companion Klammertext_indent.py command) to
|
|
|
|
|
// Ctrl+Alt+I. Sublime's own Reindent (Edit > Line > Reindent, unbound by
|
|
|
|
|
// default) is driven by single-line regex patterns that cannot express
|
|
|
|
|
// Klammertext nesting, so reindentation is a plugin command here too.
|
|
|
|
|
//
|
|
|
|
|
// The "selector" contexts confine the bindings to Klammertext files, so both
|
|
|
|
|
// keys keep their normal meaning everywhere else.
|
2026-07-18 18:48:23 +02:00
|
|
|
//
|
|
|
|
|
// macOS users may prefer "super+m"; change the "keys" value below. This file
|
|
|
|
|
// (no platform suffix) is loaded on all platforms.
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"keys": ["ctrl+m"],
|
|
|
|
|
"command": "klammertext_jump_to_match",
|
|
|
|
|
"context": [
|
|
|
|
|
{ "key": "selector", "operator": "equal", "operand": "text.klammertext" }
|
|
|
|
|
]
|
2026-07-27 00:49:08 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"keys": ["ctrl+alt+i"],
|
|
|
|
|
"command": "klammertext_reindent",
|
|
|
|
|
"context": [
|
|
|
|
|
{ "key": "selector", "operator": "equal", "operand": "text.klammertext" }
|
|
|
|
|
]
|
2026-07-27 01:21:58 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"keys": ["ctrl+alt+a"],
|
|
|
|
|
"command": "klammertext_align_table",
|
|
|
|
|
"context": [
|
|
|
|
|
{ "key": "selector", "operator": "equal", "operand": "text.klammertext" }
|
|
|
|
|
]
|
2026-07-18 18:48:23 +02:00
|
|
|
}
|
|
|
|
|
]
|