Skip to content

Commit b785e5a

Browse files
author
ldubos
committed
Update docs
1 parent e27a2d0 commit b785e5a

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

book/src/configuration.md

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ on unix operating systems.
5757
| `rulers` | List of column positions at which to display the rulers. Can be overridden by language specific `rulers` in `languages.toml` file. | `[]` |
5858
| `bufferline` | Renders a line at the top of the editor displaying open buffers. Can be `always`, `never` or `multiple` (only shown if more than one buffer is in use) | `never` |
5959
| `color-modes` | Whether to color the mode indicator with different colors depending on the mode itself | `false` |
60+
| `centered-views` | Wether to center views by default | `false` |
6061

6162
### `[editor.statusline]` Section
6263

book/src/keymap.md

+18-17
Original file line numberDiff line numberDiff line change
@@ -244,23 +244,24 @@ Accessed by typing `Ctrl-w` in [normal mode](#normal-mode).
244244

245245
This layer is similar to Vim keybindings as Kakoune does not support window.
246246

247-
| Key | Description | Command |
248-
| ----- | ------------- | ------- |
249-
| `w`, `Ctrl-w` | Switch to next window | `rotate_view` |
250-
| `v`, `Ctrl-v` | Vertical right split | `vsplit` |
251-
| `s`, `Ctrl-s` | Horizontal bottom split | `hsplit` |
252-
| `f` | Go to files in the selection in horizontal splits | `goto_file` |
253-
| `F` | Go to files in the selection in vertical splits | `goto_file` |
254-
| `h`, `Ctrl-h`, `Left` | Move to left split | `jump_view_left` |
255-
| `j`, `Ctrl-j`, `Down` | Move to split below | `jump_view_down` |
256-
| `k`, `Ctrl-k`, `Up` | Move to split above | `jump_view_up` |
257-
| `l`, `Ctrl-l`, `Right` | Move to right split | `jump_view_right` |
258-
| `q`, `Ctrl-q` | Close current window | `wclose` |
259-
| `o`, `Ctrl-o` | Only keep the current window, closing all the others | `wonly` |
260-
| `H` | Swap window to the left | `swap_view_left` |
261-
| `J` | Swap window downwards | `swap_view_down` |
262-
| `K` | Swap window upwards | `swap_view_up` |
263-
| `L` | Swap window to the right | `swap_view_right` |
247+
| Key | Description | Command |
248+
| ----- | ------------- | ------- |
249+
| `c` | Toggle centered view | `toggle_centered_view` |
250+
| `w`, `Ctrl-w` | Switch to next window | `rotate_view` |
251+
| `v`, `Ctrl-v` | Vertical right split | `vsplit` |
252+
| `s`, `Ctrl-s` | Horizontal bottom split | `hsplit` |
253+
| `f` | Go to files in the selection in horizontal splits | `goto_file` |
254+
| `F` | Go to files in the selection in vertical splits | `goto_file` |
255+
| `h`, `Ctrl-h`, `Left` | Move to left split | `jump_view_left` |
256+
| `j`, `Ctrl-j`, `Down` | Move to split below | `jump_view_down` |
257+
| `k`, `Ctrl-k`, `Up` | Move to split above | `jump_view_up` |
258+
| `l`, `Ctrl-l`, `Right` | Move to right split | `jump_view_right` |
259+
| `q`, `Ctrl-q` | Close current window | `wclose` |
260+
| `o`, `Ctrl-o` | Only keep the current window, closing all the others | `wonly` |
261+
| `H` | Swap window to the left | `swap_view_left` |
262+
| `J` | Swap window downwards | `swap_view_down` |
263+
| `K` | Swap window upwards | `swap_view_up` |
264+
| `L` | Swap window to the right | `swap_view_right` |
264265

265266
#### Space mode
266267

0 commit comments

Comments
 (0)