From 2244a5d40c83d477839f91cb6d6a4aeb02446a97 Mon Sep 17 00:00:00 2001 From: omentic Date: Wed, 1 May 2024 23:29:52 +0000 Subject: deploy: 12eec890240a05d1e090114f7f4fdd7c1ee8ff88 --- keymap.html | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) (limited to 'keymap.html') diff --git a/keymap.html b/keymap.html index 06467f67..828eeb94 100644 --- a/keymap.html +++ b/keymap.html @@ -199,6 +199,7 @@
  • Window mode
  • Space mode
  • @@ -219,7 +220,7 @@

    💡 Mappings marked (TS) require a tree-sitter grammar for the file type.

    Normal mode

    -

    Normal mode is the default mode when you launch helix. Return to it from other modes by typing Escape.

    +

    Normal mode is the default mode when you launch helix. You can return to it from other modes by pressing the Escape key.

    Movement

    NOTE: Unlike Vim, f, F, t and T are not confined to the current line.

    @@ -240,13 +241,13 @@ TFind 'till previous chartill_prev_char FFind previous charfind_prev_char GGo to line number <n>goto_line -Alt-.Repeat last motion (f, t or m)repeat_last_motion +Alt-.Repeat last motion (f, t, m, [ or ])repeat_last_motion HomeMove to the start of the linegoto_line_start EndMove to the end of the linegoto_line_end Ctrl-b, PageUpMove page uppage_up Ctrl-f, PageDownMove page downpage_down -Ctrl-uMove half page uphalf_page_up -Ctrl-dMove half page downhalf_page_down +Ctrl-uMove cursor and page half page uppage_cursor_half_up +Ctrl-dMove cursor and page half page downpage_cursor_half_down Ctrl-iJump forward on the jumplistjump_forward Ctrl-oJump backward on the jumplistjump_backward Ctrl-sSave the current selection to the jumplistsave_selection @@ -274,7 +275,7 @@ yYank selectionyank pPaste after selectionpaste_after PPaste before selectionpaste_before -" <reg>Select a register to yank to or paste fromselect_register +" <reg>Select a register to yank to or paste fromselect_register >Indent selectionindent <Unindent selectionunindent =Format selection (currently nonfunctional/disabled) (LSP)format_selections @@ -333,7 +334,7 @@ -

    Search commands all operate on the / register by default. To use a different register, use "<char>.

    +

    Search commands all operate on the / register by default. To use a different register, use "<char>.

    @@ -360,7 +361,7 @@

    View mode

    Accessed by typing z in normal mode.

    View mode is intended for scrolling and manipulating the view without changing -the selection. The "sticky" variant of this mode (accessed by typing Z in +the selection. The "sticky" variant of this mode (accessed by typing Z in normal mode) is persistent and can be exited using the escape key. This is useful when you're simply looking over text and not actively editing it.

    KeyDescriptionCommand
    /Search for regex patternsearch
    ?Search for previous patternrsearch
    @@ -372,8 +373,8 @@ useful when you're simply looking over text and not actively editing it.

    - - + +
    KeyDescriptionCommand
    k, upScroll the view upwardsscroll_up
    Ctrl-f, PageDownMove page downpage_down
    Ctrl-b, PageUpMove page uppage_up
    Ctrl-dMove half page downhalf_page_down
    Ctrl-uMove half page uphalf_page_up
    Ctrl-uMove cursor and page half page uppage_cursor_half_up
    Ctrl-dMove cursor and page half page downpage_cursor_half_down

    Goto mode

    @@ -382,7 +383,7 @@ useful when you're simply looking over text and not actively editing it.

    - + @@ -400,6 +401,7 @@ useful when you're simply looking over text and not actively editing it.

    +
    KeyDescriptionCommand
    gGo to line number <n> else start of filegoto_file_start
    eGo to the end of the filegoto_last_line
    fGo to files in the selectiongoto_file
    fGo to files in the selectionsgoto_file
    hGo to the start of the linegoto_line_start
    lGo to the end of the linegoto_line_end
    sGo to first non-whitespace character of the linegoto_first_nonwhitespace
    .Go to last modification in current filegoto_last_modification
    jMove down textual (instead of visual) linemove_line_down
    kMove up textual (instead of visual) linemove_line_up
    wShow labels at each word and select the word that belongs to the entered labelsgoto_word

    Match mode

    @@ -423,8 +425,8 @@ useful when you're simply looking over text and not actively editing it.

    w, Ctrl-wSwitch to next windowrotate_view v, Ctrl-vVertical right splitvsplit s, Ctrl-sHorizontal bottom splithsplit -fGo to files in the selection in horizontal splitsgoto_file -FGo to files in the selection in vertical splitsgoto_file +fGo to files in the selections in horizontal splitsgoto_file +FGo to files in the selections in vertical splitsgoto_file h, Ctrl-h, LeftMove to left splitjump_view_left j, Ctrl-j, DownMove to split belowjump_view_down k, Ctrl-k, UpMove to split abovejump_view_up @@ -456,6 +458,9 @@ useful when you're simply looking over text and not actively editing it.

    hSelect symbol references (LSP)select_references_to_symbol_under_cursor 'Open last fuzzy pickerlast_picker wEnter window modeN/A +cComment/uncomment selectionstoggle_comments +CBlock comment/uncomment selectionstoggle_block_comments +Alt-cLine comment/uncomment selectionstoggle_line_comments pPaste system clipboard after selectionspaste_clipboard_after PPaste system clipboard before selectionspaste_clipboard_before yYank selections to clipboardyank_to_clipboard @@ -543,14 +548,14 @@ with modal editors.

    As you become more comfortable with modal editing, you may want to disable some insert mode bindings. You can do this by editing your config.toml file.

    [keys.insert]
    -up = "no_op"
    -down = "no_op"
    -left = "no_op"
    -right = "no_op"
    -pageup = "no_op"
    -pagedown = "no_op"
    -home = "no_op"
    -end = "no_op"
    +up = "no_op"
    +down = "no_op"
    +left = "no_op"
    +right = "no_op"
    +pageup = "no_op"
    +pagedown = "no_op"
    +home = "no_op"
    +end = "no_op"
     

    Select / extend mode

    Accessed by typing v in normal mode.

    -- cgit v1.2.3-70-g09d2