Skip to content

Keyboard Shortcuts

jiyinyiyong edited this page Oct 5, 2017 · 8 revisions

Node(Shared between Leaf and Expression)

Shortcut Meaning
Space add token after focused node
Shift Space insert token before focused node
Tab nest focused node
Up move to parent expression
Left move to previous brother node accordingly
Right move to next brother node accordingly
Command v paste to focused node

On token

Shortcut Meaning
Shift Tab unfold expression with only 1 token
Enter add token after focus
Shift Enter insert token before focus
Backspace remove focused token if empty
Command d go to definition
Command Shift v paste expression and replace current token

On expression

Shortcut Meaning
Shift Tab unfold focused expression
Enter add expression after focused expression
Shift Enter insert expression after focused expression
Command Enter prepend token inside focused expression
Command Shift Enter append token inside focused expression
Backspace remove focused expression
Down move to first child
Command b duplicate focused expression
Command c copy focused expression
Command x cut focused expression
Command Shift f fold/unfold focused expression
Command d create definition with expression

Editor

Shortcut Meaning
Command p Open command palette
Command Shift d Create the definition
Command e Go to namespace
Command j Go to definition below on the sidebar
Command k Go to definition above on the sidebar
Esc Close command palette
Command Shift f goto files
Clone this wiki locally