7> NOTE: `f`, `F`, `t` and `T` are not confined to the current line.
10| ----- | ----------- |
11| `h`, `Left` | Move left |
12| `j`, `Down` | Move down |
13| `k`, `Up` | Move up |
14| `l`, `Right` | Move right |
15| `w` | Move next word start |
16| `b` | Move previous word start |
17| `e` | Move next word end |
18| `t` | Find 'till next char |
19| `f` | Find next char |
20| `T` | Find 'till previous char |
21| `F` | Find previous char |
22| `Home` | Move to the start of the line |
23| `End` | Move to the end of the line |
24| `m` | Jump to matching bracket |
25| `PageUp` | Move page up |
26| `PageDown` | Move page down |
27| `Ctrl-u` | Move half page up |
28| `Ctrl-d` | Move half page down |
29| `Ctrl-i` | Jump forward on the jumplist TODO: conflicts tab |
30| `Ctrl-o` | Jump backward on the jumplist |
31| `v` | Enter [select (extend) mode](#select--extend-mode) |
32| `g` | Enter [goto mode](#goto-mode) |
33| `:` | Enter command mode |
34| `z` | Enter [view mode](#view-mode) |
35| `Ctrl-w` | Enter [window mode](#window-mode) (maybe will be remove for spc w w later) |
36| `Space` | Enter [space mode](#space-mode) |
37| `K` | Show documentation for the item under the cursor |
42| ----- | ----------- |
43| `r` | Replace with a character |
44| `R` | Replace with yanked text |
45| `i` | Insert before selection |
46| `a` | Insert after selection (append) |
47| `I` | Insert at the start of the line |
48| `A` | Insert at the end of the line |
49| `o` | Open new line below selection |
50| `o` | Open new line above selection |
53| `y` | Yank selection |
54| `p` | Paste after selection |
55| `P` | Paste before selection |
56| `>` | Indent selection |
57| `<` | Unindent selection |
58| `=` | Format selection |
59| `d` | Delete selection |
60| `c` | Change selection (delete and enter insert mode) |
62### Selection manipulation
65| ----- | ----------- |
66| `s` | Select all regex matches inside selections |
67| `S` | Split selection into subselections on regex matches |
68| `Alt-s` | Split selection on newlines |
69| `;` | Collapse selection onto a single cursor |
70| `Alt-;` | Flip selection cursor and anchor |
71| `%` | Select entire file |
72| `x` | Select current line |
73| `X` | Extend to next line |
74| `[` | Expand selection to parent syntax node TODO: pick a key |
75| `J` | join lines inside selection |
76| `K` | keep selections matching the regex TODO: overlapped by hover help |
77| `Space` | keep only the primary selection TODO: overlapped by space mode |
78| `Ctrl-c` | Comment/uncomment the selections |
82> TODO: The search implementation isn't ideal yet -- we don't support searching
83in reverse, or searching via smartcase.
86| ----- | ----------- |
87| `/` | Search for regex pattern |
88| `n` | Select next search match |
89| `N` | Add next search match to selection |
90| `*` | Use current selection as the search pattern |
94> NOTE: `[` and `]` will likely contain more pair mappings in the style of
95> [vim-unimpaired](https://github.com/tpope/vim-unimpaired)
98| ----- | ----------- |
99| `[d` | Go to previous diagnostic |
100| `]d` | Go to next diagnostic |
101| `[D` | Go to first diagnostic in document |
102| `]D` | Go to last diagnostic in document |
104## Select / extend mode
106I'm still pondering whether to keep this mode or not. It changes movement
107commands to extend the existing selection instead of replacing it.
109> NOTE: It's a bit confusing at the moment because extend hasn't been
110> implemented for all movement commands yet.
114View mode is intended for scrolling and manipulating the view without changing
118| ----- | ----------- |
119| `z` , `c` | Vertically center the line |
120| `t` | Align the line to the top of the screen |
121| `b` | Align the line to the bottom of the screen |
122| `m` | Align the line to the middle of the screen (horizontally) |
123| `j` | Scroll the view downwards |
124| `k` | Scroll the view upwards |
128Jumps to various locations.
130> NOTE: Some of these features are only available with the LSP present.
133| ----- | ----------- |
134| `g` | Go to the start of the file |
135| `e` | Go to the end of the file |
136| `h` | Go to the start of the line |
137| `l` | Go to the end of the line |
138| `s` | Go to first non-whitespace character of the line |
139| `t` | Go to the top of the screen |
140| `m` | Go to the middle of the screen |
141| `b` | Go to the bottom of the screen |
142| `d` | Go to definition |
143| `y` | Go to type definition |
144| `r` | Go to references |
145| `i` | Go to implementation |
146| `a` | Go to the last accessed/alternate file |
150TODO: Mappings for selecting syntax nodes (a superset of `[`).
154This layer is similar to vim keybindings as kakoune does not support window.
157| ----- | ------------- |
158| `w`, `ctrl-w` | Switch to next window |
159| `v`, `ctrl-v` | Vertical right split |
160| `h`, `ctrl-h` | Horizontal bottom split |
161| `q`, `ctrl-q` | Close current window |
165This layer is a kludge of mappings I had under leader key in neovim.
168| ----- | ----------- |
169| `f` | Open file picker |
170| `b` | Open buffer picker |
171| `s` | Open symbol picker (current document) |
172| `w` | Enter [window mode](#window-mode) |
173| `space` | Keep primary selection TODO: it's here because space mode replaced it |
177Keys to use within picker.
180| ----- | ------------- |
181| `Up`, `Ctrl-p` | Previous entry |
182| `Down`, `Ctrl-n` | Next entry |
183| `Ctrl-space` | Filter options |
184| `Enter` | Open selected |
185| `Ctrl-h` | Open horizontally |
186| `Ctrl-v` | Open vertically |
187| `Escape`, `ctrl-c` | Close picker |
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list