Editor indentation for Emacs and Sublime Text; container guides point to editor support (from dev 5d35f256476e)
This commit is contained in:
@@ -4,8 +4,13 @@
|
||||
// command) to Ctrl+M — Sublime's own "go to matching bracket" key, repurposed
|
||||
// for klammers, since the built-in cannot match context-dependent @ pairs.
|
||||
//
|
||||
// The "selector" context confines the binding to Klammertext files, so Ctrl+M
|
||||
// keeps its normal meaning everywhere else.
|
||||
// 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.
|
||||
//
|
||||
// macOS users may prefer "super+m"; change the "keys" value below. This file
|
||||
// (no platform suffix) is loaded on all platforms.
|
||||
@@ -16,5 +21,12 @@
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "text.klammertext" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": ["ctrl+alt+i"],
|
||||
"command": "klammertext_reindent",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "text.klammertext" }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user