355
edits
(New page: We want to make Bespin as discoverable as possible, but there are already lots of little tips and tricks, so we wanted a place to hold them: ==== Ctrl-J: Jumping from Editor to Command Li...) |
No edit summary |
||
| Line 4: | Line 4: | ||
We love using the keyboard to navigate and often find ourselves jumping from the editor to the command line and back. To do this easily, simple use Control-J. | We love using the keyboard to navigate and often find ourselves jumping from the editor to the command line and back. To do this easily, simple use Control-J. | ||
==== Like Emacs keybindings? ==== | |||
We have some emacs keybindings available if you type in "set keybindings emacs" on the command line: | |||
document.fire("bespin:editor:bindkey", { | |||
modifiers: "ctrl", | |||
key: "b", | |||
action: "moveCursorLeft" | |||
}); | |||
document.fire("bespin:editor:bindkey", { | |||
modifiers: "ctrl", | |||
key: "f", | |||
action: "moveCursorRight" | |||
}); | |||
document.fire("bespin:editor:bindkey", { | |||
modifiers: "ctrl", | |||
key: "p", | |||
action: "moveCursorUp" | |||
}); | |||
document.fire("bespin:editor:bindkey", { | |||
modifiers: "ctrl", | |||
key: "n", | |||
action: "moveCursorDown" | |||
}); | |||
document.fire("bespin:editor:bindkey", { | |||
modifiers: "ctrl", | |||
key: "a", | |||
action: "moveToLineStart" | |||
}); | |||
document.fire("bespin:editor:bindkey", { | |||
modifiers: "ctrl", | |||
key: "e", | |||
action: "moveToLineEnd" | |||
}); | |||
edits