From 75c36bacf95b16cd82b69a82ea5185ae363e5878 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sat, 10 Aug 2024 13:04:31 +0300 Subject: [PATCH] chore(docs): update nvim keymaps --- docs/nvim-keybindings.md | 166 ++++++++++++++------------------- scripts/create-nvim-keymaps.sh | 2 +- 2 files changed, 71 insertions(+), 97 deletions(-) diff --git a/docs/nvim-keybindings.md b/docs/nvim-keybindings.md index 764510e..cdc000d 100644 --- a/docs/nvim-keybindings.md +++ b/docs/nvim-keybindings.md @@ -3,8 +3,6 @@ ```txt n * nohlsearch -n tc * CloakToggle - Toggle Cloak n zg * :Rg FZF: search with rg (aka live grep). n zm * :Maps @@ -19,34 +17,36 @@ n zc * :Commands FZF: search commands. n zf * :FZF FZF: search for files in given path. - f * - [F]ormat buffer -n e * -n 4 * +n tc * CloakToggle + [tc] Toggle Cloak +n 4 * harpoon to file 4 -n 3 * +n 3 * harpoon to file 3 -n 2 * +n 2 * harpoon to file 2 -n 1 * +n 1 * harpoon to file 1 -n xn * +n xn * harpoon to next file -n xN * - harpoon to previous file -n xa * +n xa * harpoon quick menu -n xA * +n xN * + harpoon to previous file +n xA * harpoon file -n 5 * +n 5 * harpoon to file 5 -n tz * - Toggle ZenMode +n tz * + [tz] Toggle ZenMode +n e * + f * + [f] Format buffer n qq * wq! Quickly Quit -n bq * +n bq * Open diagnostic [Q]uickfix list -n be * +n be * Show diagnostic [E]rror messages x # * :help v_#-default @@ -74,108 +74,98 @@ n ]% (MatchitNormalMultiForward) n ]d * Jump to the next diagnostic x a% (MatchitVisualTextObject) -o al +o al Around last textobject -o an +o an Around next textobject -x al +x al Around last textobject -x an +x an Around next textobject -o a +o a Around textobject -x a +x a Around textobject -n dj * +n dj * Go to next [D]iagnostic message -n dk * +n dk * Go to previous [D]iagnostic message o g% (MatchitOperationBackward) x g% (MatchitVisualBackward) n g% (MatchitNormalBackward) -o g] +n gR * :RegexplainerToggle + Toggle Regexplainer +o g] Move to right "around" -x g] +x g] Move to right "around" -n g] +n g] Move to right "around" -o g[ +o g[ Move to left "around" -x g[ +x g[ Move to left "around" -n g[ +n g[ Move to left "around" -n gcA * - Comment insert end of line -n gcO * - Comment insert above -n gco * - Comment insert below -x gb * (comment_toggle_blockwise_visual) - Comment toggle blockwise (visual) -n gbc * - Comment toggle current block -n gb * (comment_toggle_blockwise) - Comment toggle blockwise o gc * Comment textobject -n gcc * - Comment toggle current line -x gc * (comment_toggle_linewise_visual) - Comment toggle linewise (visual) -n gc * (comment_toggle_linewise) - Comment toggle linewise +n gcc * + Toggle comment line +x gc * + Toggle comment +n gc * + Toggle comment x gx * Opens filepath or URI under cursor with the system handler (file explorer, web browser, …) n gx * Opens filepath or URI under cursor with the system handler (file explorer, web browser, …) -o il +o il Inside last textobject -o in +o in Inside next textobject -x il +x il Inside last textobject -x in +x in Inside next textobject -o i +o i Inside textobject -x i +x i Inside textobject -n shn * +n shn * Highlight next surrounding -n sFn * +n sFn * Find next left surrounding -n sfn * +n sfn * Find next right surrounding -n srn * +n srn * Replace next surrounding -n sdn * +n sdn * Delete next surrounding -n shl * +n shl * Highlight previous surrounding -n sFl * +n sFl * Find previous left surrounding -n sfl * +n sfl * Find previous right surrounding -n srl * +n srl * Replace previous surrounding -n sdl * +n sdl * Delete previous surrounding x sa * :lua MiniSurround.add('visual') Add surrounding to selection -n sn * +n sn * Update `MiniSurround.config.n_lines` -n sh * +n sh * Highlight surrounding -n sF * +n sF * Find left surrounding -n sf * +n sf * Find right surrounding -n sr * +n sr * Replace surrounding -n sd * +n sd * Delete surrounding -n sa * +n sa * Add surrounding x (MatchitVisualTextObject) (MatchitVisualMultiBackward)o(MatchitVisualMultiForward) o (MatchitOperationMultiForward) * :call matchit#MultiMatch("W", "o") @@ -197,28 +187,12 @@ x (fzf-maps-x) * :call fzf#vim#maps('x', 0) n (fzf-maps-n) * :call fzf#vim#maps('n', 0) n (fzf-normal) * n (fzf-insert) * i -x (comment_toggle_blockwise_visual) * lua require("Comment.api").locked("toggle.blockwise")(vim.fn.visualmode()) - Comment toggle blockwise (visual) -x (comment_toggle_linewise_visual) * lua require("Comment.api").locked("toggle.linewise")(vim.fn.visualmode()) - Comment toggle linewise (visual) -n (comment_toggle_blockwise_count) * - Comment toggle blockwise with count -n (comment_toggle_linewise_count) * - Comment toggle linewise with count -n (comment_toggle_blockwise_current) * - Comment toggle current block -n (comment_toggle_linewise_current) * - Comment toggle current line -n (comment_toggle_blockwise) * - Comment toggle blockwise -n (comment_toggle_linewise) * - Comment toggle linewise -n * +n * n * w Save file -n * -n * -n * +n * +n * +n * n * echo "Use j to move!!" n * echo "Use k to move!!" n * echo "Use l to move!!" @@ -227,7 +201,7 @@ n d Show diagnostics under the cursor n d * Show diagnostics under the cursor -n * +n * ``` -- Generated on Mon 22 Jul 2024 17:32:22 EEST +- Generated on Sat 10 Aug 2024 13:01:59 EEST diff --git a/scripts/create-nvim-keymaps.sh b/scripts/create-nvim-keymaps.sh index 994a7bf..012ab82 100755 --- a/scripts/create-nvim-keymaps.sh +++ b/scripts/create-nvim-keymaps.sh @@ -12,7 +12,7 @@ main() { printf "# nvim keybindings\n\n" - printf "\`\`\`txt\n" + printf "\`\`\`txt" } > "$DEST" NVIM_APPNAME="nvim-kickstart" nvim -c "redir! >> $DEST" -c 'silent verbose map' -c 'redir END' -c 'q'