TODO: The search implementation isn't ideal yet -- we don't support searching
@@ -247,32 +249,9 @@ in reverse, or searching via smartcase.
I'm still pondering whether to keep this mode or not. It changes movement
-commands to extend the existing selection instead of replacing it.
-These sub-modes are accessible from normal mode and typically switch back to normal mode after a command.
+View mode is intended for scrolling and manipulating the view without changing
the selection.
Jumps to various locations.
NOTE: Some of these features are only available with the LSP present.
@@ -303,7 +282,7 @@ the selection.
i | Go to implementation | goto_implementation |
a | Go to the last accessed/alternate file | goto_last_accessed_file |
-
+
Enter this mode using m
from normal mode. See the relavant section
in Usage for an explanation about surround
and textobject usage.
@@ -315,9 +294,8 @@ and textobject usage.
a <object> | Select around textobject | select_textobject_around |
i <object> | Select inside textobject | select_textobject_inner |
-
TODO: Mappings for selecting syntax nodes (a superset of [
).
-
+
This layer is similar to vim keybindings as kakoune does not support window.
Key | Description | Command |
w , Ctrl-w | Switch to next window | rotate_view |
@@ -325,8 +303,8 @@ and textobject usage.
h , Ctrl-h | Horizontal bottom split | hsplit |
q , Ctrl-q | Close current window | wclose |
-
-This layer is a kludge of mappings I had under leader key in neovim.
+
+This layer is a kludge of mappings, mostly pickers.
Key | Description | Command |
f | Open file picker | file_picker |
b | Open buffer picker | buffer_picker |
@@ -341,6 +319,29 @@ and textobject usage.
Y | Yank main selection to clipboard | yank_main_selection_to_clipboard |
R | Replace selections by clipboard contents | replace_selections_with_clipboard |
+
+Mappings in the style of vim-unimpaired.
+Key | Description | Command |
+[d | Go to previous diagnostic | goto_prev_diag |
+]d | Go to next diagnostic | goto_next_diag |
+[D | Go to first diagnostic in document | goto_first_diag |
+]D | Go to last diagnostic in document | goto_last_diag |
+[space | Add newline above | add_newline_above |
+]space | Add newline below | add_newline_below |
+
+
+Key | Description | Command |
+Escape | Switch to normal mode | normal_mode |
+Ctrl-x | Autocomplete | completion |
+Ctrl-w | Delete previous word | delete_word_backward |
+
+
+I'm still pondering whether to keep this mode or not. It changes movement
+commands (including goto) to extend the existing selection instead of replacing it.
+
+NOTE: It's a bit confusing at the moment because extend hasn't been
+implemented for all movement commands yet.
+
Keys to use within picker. Remapping currently not supported.
Key | Description |
diff --git a/print.html b/print.html
index c16d9227d..06eb5ef86 100644
--- a/print.html
+++ b/print.html
@@ -1,5 +1,5 @@
-
+
@@ -40,7 +40,7 @@
@@ -66,7 +66,7 @@
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('no-js')
- html.classList.remove('light')
+ html.classList.remove('colibri')
html.classList.add(theme);
html.classList.add('js');
@@ -103,12 +103,12 @@
+
+The following values may be used as modifiers.
+Less common modifiers might not be supported by your terminal emulator.
+Modifier |
+bold |
+dim |
+italic |
+underlined |
+slow_blink |
+rapid_blink |
+reversed |
+hidden |
+crossed_out |
+
+
+The following is a list of scopes available to use for styling.
+
+These keys match tree-sitter scopes.
+For a given highlight produced, styling will be determined based on the longest matching theme key. For example, the highlight function.builtin.static
would match the key function.builtin
rather than function
.
+We use a similar set of scopes as
+SublimeText. See also
+TextMate scopes.
+
+-
+
escape
(TODO: rename to (constant).character.escape)
+
+-
+
type
- Types
+
+builtin
- Primitive types provided by the language (int
, usize
)
+
+
+-
+
constant
(TODO: constant.other.placeholder for %v)
+
+builtin
Special constants provided by the language (true
, false
, nil
etc)
+
+
+character
+
+
+-
+
number
(TODO: rename to constant.number/.numeric.{integer, float, complex})
+
+-
+
string
(TODO: string.quoted.{single, double}, string.raw/.unquoted)?
+
+regexp
- Regular expressions
+special
+
+
+
+
+-
+
comment
- Code comments
+
+line
- Single line comments (//
)
+block
- Block comments (e.g. (/* */
)
+
+documentation
- Documentation comments (e.g. ///
in Rust)
+
+
+
+
+-
+
variable
- Variables
+
+builtin
- Reserved language variables (self
, this
, super
, etc)
+parameter
- Function parameters
+property
+function
(TODO: ?)
+
+
+-
+
label
+
+-
+
punctuation
+
+delimiter
- Commas, colons
+bracket
- Parentheses, angle brackets, etc.
+
+
+-
+
keyword
+
+control
+
+conditional
- if
, else
+repeat
- for
, while
, loop
+import
- import
, export
+- (TODO: return?)
+
+
+directive
- Preprocessor directives (#if
in C)
+function
- fn
, func
+
+
+-
+
operator
- ||
, +=
, >
, or
+
+-
+
function
+
+builtin
+method
+macro
+special
(preprocesor in C)
+
+
+-
+
tag
- Tags (e.g. <body>
in HTML)
+
+-
+
namespace
+
+
+
+These scopes are used for theming the editor interface.
+Key | Notes |
+ui.background | |
+ui.cursor | |
+ui.cursor.insert | |
+ui.cursor.select | |
+ui.cursor.match | Matching bracket etc. |
+ui.cursor.primary | Cursor with primary selection |
+ui.linenr | |
+ui.linenr.selected | |
+ui.statusline | Statusline |
+ui.statusline.inactive | Statusline (unfocused document) |
+ui.popup | |
+ui.window | |
+ui.help | |
+ui.text | |
+ui.text.focus | |
+ui.info | |
+ui.info.text | |
+ui.menu | |
+ui.menu.selected | |
+ui.selection | For selections in the editing area |
+ui.selection.primary | |
+warning | Diagnostics warning |
+error | Diagnostics error |
+info | Diagnostics info |
+hint | Diagnostics hint |
+
-NOTE: f
, F
, t
and T
are not confined to the current line.
+NOTE: Unlike vim, f
, F
, t
and T
are not confined to the current line.
Key | Description | Command |
h , Left | Move left | move_char_left |
@@ -395,14 +488,14 @@ over it and is merged into the default palette.
PageDown | Move page down | page_down |
Ctrl-u | Move half page up | half_page_up |
Ctrl-d | Move half page down | half_page_down |
-Ctrl-i | Jump forward on the jumplist TODO: conflicts tab | jump_forward |
+Ctrl-i | Jump forward on the jumplist | jump_forward |
Ctrl-o | Jump backward on the jumplist | jump_backward |
v | Enter select (extend) mode | select_mode |
g | Enter goto mode | N/A |
m | Enter match mode | N/A |
: | Enter command mode | command_mode |
z | Enter view mode | N/A |
-Ctrl-w | Enter window mode (maybe will be remove for spc w w later) | N/A |
+Ctrl-w | Enter window mode | N/A |
Space | Enter space mode | N/A |
K | Show documentation for the item under the cursor | hover |
@@ -431,6 +524,13 @@ over it and is merged into the default palette.
d | Delete selection | delete_selection |
c | Change selection (delete and enter insert mode) | change_selection |
+
+Key | Description | Command |
+| | Pipe each selection through shell command, replacing with output | shell_pipe |
+A-| | Pipe each selection into shell command, ignoring output | shell_pipe_to |
+! | Run shell command, inserting output before each selection | shell_insert_output |
+A-! | Run shell command, appending output after each selection | shell_append_output |
+
Key | Description | Command |
s | Select all regex matches inside selections | select_regex |
@@ -450,15 +550,10 @@ over it and is merged into the default palette.
| Expand selection to parent syntax node TODO: pick a key | expand_selection |
J | Join lines inside selection | join_selections |
K | Keep selections matching the regex TODO: overlapped by hover help | keep_selections |
+$ | Pipe each selection into shell command, keep selections where command returned 0 | shell_keep_pipe |
Space | Keep only the primary selection TODO: overlapped by space mode | keep_primary_selection |
Ctrl-c | Comment/uncomment the selections | toggle_comments |
-
-Key | Description | Command |
-Escape | Switch to normal mode | normal_mode |
-Ctrl-x | Autocomplete | completion |
-Ctrl-w | Delete previous word | delete_word_backward |
-
TODO: The search implementation isn't ideal yet -- we don't support searching
@@ -470,32 +565,9 @@ in reverse, or searching via smartcase.
N | Add next search match to selection | extend_search_next |
* | Use current selection as the search pattern | search_selection |
-
-Mappings in the style of vim-unimpaired
-Key | Description | Command |
-[d | Go to previous diagnostic | goto_prev_diag |
-]d | Go to next diagnostic | goto_next_diag |
-[D | Go to first diagnostic in document | goto_first_diag |
-]D | Go to last diagnostic in document | goto_last_diag |
-[space | Add newline above | add_newline_above |
-]space | Add newline below | add_newline_below |
-
-
-Key | Description | Command |
-\| | Pipe each selection through shell command, replacing with output | shell_pipe |
-A-\| | Pipe each selection into shell command, ignoring output | shell_pipe_to |
-! | Run shell command, inserting output before each selection | shell_insert_output |
-A-! | Run shell command, appending output after each selection | shell_append_output |
-$ | Pipe each selection into shell command, keep selections where command returned 0 | shell_keep_pipe |
-
-
-I'm still pondering whether to keep this mode or not. It changes movement
-commands to extend the existing selection instead of replacing it.
-
-NOTE: It's a bit confusing at the moment because extend hasn't been
-implemented for all movement commands yet.
-
-
+
+These sub-modes are accessible from normal mode and typically switch back to normal mode after a command.
+
View mode is intended for scrolling and manipulating the view without changing
the selection.
Key | Description | Command |
@@ -506,7 +578,7 @@ the selection.
j | Scroll the view downwards | scroll_down |
k | Scroll the view upwards | scroll_up |
-
+
Jumps to various locations.
NOTE: Some of these features are only available with the LSP present.
@@ -526,7 +598,7 @@ the selection.
i | Go to implementation | goto_implementation |
a | Go to the last accessed/alternate file | goto_last_accessed_file |
-
+
Enter this mode using m
from normal mode. See the relavant section
in Usage for an explanation about surround
and textobject usage.
@@ -538,9 +610,8 @@ and textobject usage.
a <object> | Select around textobject | select_textobject_around |
i <object> | Select inside textobject | select_textobject_inner |
-
TODO: Mappings for selecting syntax nodes (a superset of [
).
-
+
This layer is similar to vim keybindings as kakoune does not support window.
Key | Description | Command |
w , Ctrl-w | Switch to next window | rotate_view |
@@ -548,8 +619,8 @@ and textobject usage.
h , Ctrl-h | Horizontal bottom split | hsplit |
q , Ctrl-q | Close current window | wclose |
-
-This layer is a kludge of mappings I had under leader key in neovim.
+
+This layer is a kludge of mappings, mostly pickers.
Key | Description | Command |
f | Open file picker | file_picker |
b | Open buffer picker | buffer_picker |
@@ -564,6 +635,29 @@ and textobject usage.
Y | Yank main selection to clipboard | yank_main_selection_to_clipboard |
R | Replace selections by clipboard contents | replace_selections_with_clipboard |
+
+Mappings in the style of vim-unimpaired.
+Key | Description | Command |
+[d | Go to previous diagnostic | goto_prev_diag |
+]d | Go to next diagnostic | goto_next_diag |
+[D | Go to first diagnostic in document | goto_first_diag |
+]D | Go to last diagnostic in document | goto_last_diag |
+[space | Add newline above | add_newline_above |
+]space | Add newline below | add_newline_below |
+
+
+Key | Description | Command |
+Escape | Switch to normal mode | normal_mode |
+Ctrl-x | Autocomplete | completion |
+Ctrl-w | Delete previous word | delete_word_backward |
+
+
+I'm still pondering whether to keep this mode or not. It changes movement
+commands (including goto) to extend the existing selection instead of replacing it.
+
+NOTE: It's a bit confusing at the moment because extend hasn't been
+implemented for all movement commands yet.
+
Keys to use within picker. Remapping currently not supported.
Key | Description |
diff --git a/remapping.html b/remapping.html
index 9006fd1b4..9876cd676 100644
--- a/remapping.html
+++ b/remapping.html
@@ -1,5 +1,5 @@
-
+
@@ -39,7 +39,7 @@
@@ -65,7 +65,7 @@
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('no-js')
- html.classList.remove('light')
+ html.classList.remove('colibri')
html.classList.add(theme);
html.classList.add('js');
@@ -102,12 +102,12 @@
+
+The following values may be used as modifiers.
+Less common modifiers might not be supported by your terminal emulator.
+Modifier |
+bold |
+dim |
+italic |
+underlined |
+slow_blink |
+rapid_blink |
+reversed |
+hidden |
+crossed_out |
+
+
+The following is a list of scopes available to use for styling.
+
+These keys match tree-sitter scopes.
+For a given highlight produced, styling will be determined based on the longest matching theme key. For example, the highlight function.builtin.static
would match the key function.builtin
rather than function
.
+We use a similar set of scopes as
+SublimeText. See also
+TextMate scopes.
+
+-
+
escape
(TODO: rename to (constant).character.escape)
+
+-
+
type
- Types
+
+builtin
- Primitive types provided by the language (int
, usize
)
+
+
+-
+
constant
(TODO: constant.other.placeholder for %v)
+
+builtin
Special constants provided by the language (true
, false
, nil
etc)
+
+
+character
+
+
+-
+
number
(TODO: rename to constant.number/.numeric.{integer, float, complex})
+
+-
+
string
(TODO: string.quoted.{single, double}, string.raw/.unquoted)?
+
+regexp
- Regular expressions
+special
+
+
+
+
+-
+
comment
- Code comments
+
+line
- Single line comments (//
)
+block
- Block comments (e.g. (/* */
)
+
+documentation
- Documentation comments (e.g. ///
in Rust)
+
+
+
+
+-
+
variable
- Variables
+
+builtin
- Reserved language variables (self
, this
, super
, etc)
+parameter
- Function parameters
+property
+function
(TODO: ?)
+
+
+-
+
label
+
+-
+
punctuation
+
+delimiter
- Commas, colons
+bracket
- Parentheses, angle brackets, etc.
+
+
+-
+
keyword
+
+control
+
+conditional
- if
, else
+repeat
- for
, while
, loop
+import
- import
, export
+- (TODO: return?)
+
+
+directive
- Preprocessor directives (#if
in C)
+function
- fn
, func
+
+
+-
+
operator
- ||
, +=
, >
, or
+
+-
+
function
+
+builtin
+method
+macro
+special
(preprocesor in C)
+
+
+-
+
tag
- Tags (e.g. <body>
in HTML)
+
+-
+
namespace
+
+
+
+These scopes are used for theming the editor interface.
+Key | Notes |
+ui.background | |
+ui.cursor | |
+ui.cursor.insert | |
+ui.cursor.select | |
+ui.cursor.match | Matching bracket etc. |
+ui.cursor.primary | Cursor with primary selection |
+ui.linenr | |
+ui.linenr.selected | |
+ui.statusline | Statusline |
+ui.statusline.inactive | Statusline (unfocused document) |
+ui.popup | |
+ui.window | |
+ui.help | |
+ui.text | |
+ui.text.focus | |
+ui.info | |
+ui.info.text | |
+ui.menu | |
+ui.menu.selected | |
+ui.selection | For selections in the editing area |
+ui.selection.primary | |
+warning | Diagnostics warning |
+error | Diagnostics error |
+info | Diagnostics info |
+hint | Diagnostics hint |
diff --git a/usage.html b/usage.html
index bfa13b51c..8b69c0e44 100644
--- a/usage.html
+++ b/usage.html
@@ -1,5 +1,5 @@
-
+
@@ -39,7 +39,7 @@
@@ -65,7 +65,7 @@
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('no-js')
- html.classList.remove('light')
+ html.classList.remove('colibri')
html.classList.add(theme);
html.classList.add('js');
@@ -102,12 +102,12 @@