Skip to content

Commit

Permalink
Add emacs keybindings for mark emulation
Browse files Browse the repository at this point in the history
These keybindings extend the already selected text. This allows closer
emacs emulation where subsequent movement commands extend / shrink the
current selection instead of dismissing it.
  • Loading branch information
ozanmakes committed Jan 9, 2025
1 parent e64a56f commit e8e46f1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions assets/keymaps/linux/emacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@
"alt-^": "editor::JoinLines" // join-line
}
},
{
"context": "Editor && selection",
"bindings": {
"ctrl-f": "editor::SelectRight",
"ctrl-b": "editor::SelectLeft",
"ctrl-n": "editor::SelectDown",
"ctrl-p": "editor::SelectUp",
"ctrl-a": "editor::SelectToBeginningOfLine",
"ctrl-e": "editor::SelectToEndOfLine",
"alt-f": "editor::SelectToNextWordEnd",
"alt-b": "editor::SelectToPreviousSubwordStart",
"alt-<": "editor::SelectToBeginning",
"alt->": "editor::SelectToEnd"
}
},
{
"context": "Workspace && !Terminal",
"bindings": {
Expand Down

0 comments on commit e8e46f1

Please sign in to comment.