diff --git a/docs/cheat_sheet/defaults/big/index.md b/docs/cheat_sheet/defaults/big/index.md index 19b1bfd8..cda8a17b 100644 --- a/docs/cheat_sheet/defaults/big/index.md +++ b/docs/cheat_sheet/defaults/big/index.md @@ -19,8 +19,8 @@ nav: Big Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| |`V`|[\]({{ site.url }}/cheat_sheet/functions/#select_all)| -|`Y`, `y`, `yy`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_copy)| -|`p`, `P`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_paste)| +|`y`, `yy`, `Y`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_copy)| +|`P`, `p`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_paste)| |`D`, `dd`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_cut)| |`x`, ``|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_delete)| |`X`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_backspace)| @@ -52,16 +52,16 @@ nav: Big Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| |``, ``, `h`|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_left)| -|``, `l`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_right)| -|`k`, `-`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_up)| -|`+`, ``, `j`|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_down)| +|`l`, ``, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_right)| +|``, `-`, `k`|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_up)| +|`+`, `j`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_down)| ### Mouse Jumping |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`^`, `0`, ``|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_left)| -|``, `$`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_right)| +|`0`, ``, `^`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_left)| +|`$`, ``|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_right)| |`gg`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_top)| |`G`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_bottom)| |`gm`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_hcenter)| @@ -77,8 +77,8 @@ nav: Big Mappings |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down_halfpage)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_up_onepage)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down_onepage)| -|``, `zh`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left)| -|``, `zl`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right)| +|`zh`, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left)| +|`zl`, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right)| |`zH`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left_halfpage)| |`zL`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right_halfpage)| @@ -86,8 +86,8 @@ nav: Big Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`Y`, `y`, `yy`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_copy)| -|`p`, `P`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_paste)| +|`y`, `yy`, `Y`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_copy)| +|`P`, `p`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_paste)| |`D`, `dd`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_cut)| |`x`, ``|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_delete)| |`X`|[\]({{ site.url }}/cheat_sheet/functions/#hotkey_backspace)| @@ -98,7 +98,7 @@ nav: Big Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`guivisual`, `gv`|[\]({{ site.url }}/cheat_sheet/functions/#to_gui_visual)| +|`gv`, `guivisual`|[\]({{ site.url }}/cheat_sheet/functions/#to_gui_visual)| ### Shortcut @@ -111,10 +111,10 @@ nav: Big Mappings |`tabprevious`|[\]({{ site.url }}/cheat_sheet/functions/#switch_to_left_tab)| |`tabnext`|[\]({{ site.url }}/cheat_sheet/functions/#switch_to_right_tab)| |`tabnew`|[\]({{ site.url }}/cheat_sheet/functions/#open_new_tab)| -|`q!`, `q`, `tabclose`|[\]({{ site.url }}/cheat_sheet/functions/#close_current_tab)| +|`tabclose`, `q`, `q!`|[\]({{ site.url }}/cheat_sheet/functions/#close_current_tab)| |`ex`, `explorer`|[\]({{ site.url }}/cheat_sheet/functions/#start_explorer)| -|`win`, `start`|[\]({{ site.url }}/cheat_sheet/functions/#open_startmenu)| -|`open`, `find`|[\]({{ site.url }}/cheat_sheet/functions/#open)| +|`start`, `win`|[\]({{ site.url }}/cheat_sheet/functions/#open_startmenu)| +|`find`, `open`|[\]({{ site.url }}/cheat_sheet/functions/#open)| |`forward`|[\]({{ site.url }}/cheat_sheet/functions/#forward_ui_navigation)| |`backward`|[\]({{ site.url }}/cheat_sheet/functions/#backward_ui_navigation)| |`decide`|[\]({{ site.url }}/cheat_sheet/functions/#decide_focused_ui_object)| diff --git a/docs/cheat_sheet/defaults/normal/index.md b/docs/cheat_sheet/defaults/normal/index.md index 5a249667..3738aa62 100644 --- a/docs/cheat_sheet/defaults/normal/index.md +++ b/docs/cheat_sheet/defaults/normal/index.md @@ -10,7 +10,7 @@ nav: Normal Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`I`, ``, ``|[\]({{ site.url }}/cheat_sheet/functions/#click_left)[\]({{ site.url }}/cheat_sheet/functions/#to_edi_normal)| +|`I`, ``, ``|[\]({{ site.url }}/cheat_sheet/functions/#click_left)[\]({{ site.url }}/cheat_sheet/functions/#to_edi_normal)| ## Editor Normal Mode @@ -35,8 +35,8 @@ nav: Normal Mappings |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down_halfpage)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_up_onepage)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down_onepage)| -|``, `zh`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left)| -|``, `zl`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right)| +|`zh`, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left)| +|`zl`, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right)| |`zH`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left_halfpage)| |`zL`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right_halfpage)| @@ -64,10 +64,10 @@ nav: Normal Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|``, ``, ``, `h`|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_left)| -|``, `l`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_right)| -|`k`, ``, `gk`, ``, `-`|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_up)| -|``, ``, `gj`, `j`, ``, `+`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_down)| +|``, ``, ``, `h`|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_left)| +|`l`, ``, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_right)| +|`gk`, ``, ``, `-`, `k`|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_up)| +|`j`, `gj`, ``, ``, ``, `+`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_down)| |`w`|[\]({{ site.url }}/cheat_sheet/functions/#move_fwd_word)| |`b`|[\]({{ site.url }}/cheat_sheet/functions/#move_bck_word)| |`W`|[\]({{ site.url }}/cheat_sheet/functions/#move_fwd_bigword)| @@ -81,8 +81,8 @@ nav: Normal Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`g0`, `0`, ``|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_bol)| -|``, `g$`, `$`|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_eol)| +|`0`, `g0`, ``|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_bol)| +|`$`, `g$`, ``|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_eol)| |`gg`|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_bof)| |`G`|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_eof)| @@ -90,7 +90,7 @@ nav: Normal Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`Y`, `yy`|[\]({{ site.url }}/cheat_sheet/functions/#yank_line)| +|`yy`, `Y`|[\]({{ site.url }}/cheat_sheet/functions/#yank_line)| |`y`|[\]({{ site.url }}/cheat_sheet/functions/#yank_with_motion)| |`p`|[\]({{ site.url }}/cheat_sheet/functions/#put_after)| |`P`|[\]({{ site.url }}/cheat_sheet/functions/#put_before)| @@ -118,7 +118,7 @@ nav: Normal Mappings |``, ``|[\]({{ site.url }}/cheat_sheet/functions/#to_gui_normal)| |``|[\]({{ site.url }}/cheat_sheet/functions/#to_resident)| |`:`|[\]({{ site.url }}/cheat_sheet/functions/#to_command)| -|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_normal)| +|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_normal)| ### Scrolling @@ -130,8 +130,8 @@ nav: Normal Mappings |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down_halfpage)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_up_onepage)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down_onepage)| -|``, `zh`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left)| -|``, `zl`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right)| +|`zh`, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left)| +|`zl`, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right)| |`zH`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left_halfpage)| |`zL`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right_halfpage)| @@ -139,10 +139,10 @@ nav: Normal Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|``, ``, ``, `h`|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_left)| -|``, `l`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_right)| -|`k`, ``, `gk`, ``, `-`|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_up)| -|``, ``, `gj`, `j`, ``, `+`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_down)| +|``, ``, ``, `h`|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_left)| +|`l`, ``, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_right)| +|`gk`, ``, ``, `-`, `k`|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_up)| +|`j`, `gj`, ``, ``, ``, `+`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_caret_down)| |`w`|[\]({{ site.url }}/cheat_sheet/functions/#move_fwd_word_simple)| |`b`|[\]({{ site.url }}/cheat_sheet/functions/#move_bck_word_simple)| @@ -150,8 +150,8 @@ nav: Normal Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`g0`, `0`, ``|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_bol)| -|``, `g$`, `$`|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_eol)| +|`0`, `g0`, ``|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_bol)| +|`$`, `g$`, ``|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_eol)| |`gg`|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_bof)| |`G`|[\]({{ site.url }}/cheat_sheet/functions/#jump_caret_to_eof)| @@ -160,14 +160,14 @@ nav: Normal Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| |`y`|[\]({{ site.url }}/cheat_sheet/functions/#yank_highlight_text)| -|`X`, `x`, `d`|[\]({{ site.url }}/cheat_sheet/functions/#delete_highlight_text)| +|`X`, `d`, `x`|[\]({{ site.url }}/cheat_sheet/functions/#delete_highlight_text)| |`c`, `S`, `s`|[\]({{ site.url }}/cheat_sheet/functions/#change_highlight_text)| ## Insert Mode |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_normal)| +|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_normal)| ## Resident Mode @@ -179,9 +179,9 @@ nav: Normal Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`en`, `edinormal`|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_normal)| -|`edivisual`, `ev`|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_visual)| -|`edivisualline`, `evl`|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_visual_line)| +|`edinormal`, `en`|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_normal)| +|`ev`, `edivisual`|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_visual)| +|`evl`, `edivisualline`|[\]({{ site.url }}/cheat_sheet/functions/#to_edi_visual_line)| ### Shortcut diff --git a/docs/cheat_sheet/defaults/small/index.md b/docs/cheat_sheet/defaults/small/index.md index 0a0af507..dfcb3271 100644 --- a/docs/cheat_sheet/defaults/small/index.md +++ b/docs/cheat_sheet/defaults/small/index.md @@ -13,7 +13,7 @@ nav: Small Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| |`n`|[\]({{ site.url }}/cheat_sheet/functions/#open_new_window)| -|`c`, `q`|[\]({{ site.url }}/cheat_sheet/functions/#close_current_window)| +|`q`, `c`|[\]({{ site.url }}/cheat_sheet/functions/#close_current_window)| ### Window Select @@ -48,8 +48,8 @@ nav: Small Mappings |`-`|[\]({{ site.url }}/cheat_sheet/functions/#decrease_window_height)| |`u`|[\]({{ site.url }}/cheat_sheet/functions/#maximize_current_window)| |`d`|[\]({{ site.url }}/cheat_sheet/functions/#minimize_current_window)| -|`H`, ``|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_left)| -|``, `L`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_right)| +|``, `H`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_left)| +|`L`, ``|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_right)| |`K`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_top)| |`J`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_bottom)| |`e`|[\]({{ site.url }}/cheat_sheet/functions/#window_resizer)| @@ -62,36 +62,36 @@ nav: Small Mappings |:---:|:---:| |`cl`, `close`|[\]({{ site.url }}/cheat_sheet/functions/#close_current_window)| |`new`|[\]({{ site.url }}/cheat_sheet/functions/#open_new_window)| -|`split`, `sp`|[\]({{ site.url }}/cheat_sheet/functions/#open_new_window_with_hsplit)| -|`vsplit`, `vs`|[\]({{ site.url }}/cheat_sheet/functions/#open_new_window_with_vsplit)| +|`sp`, `split`|[\]({{ site.url }}/cheat_sheet/functions/#open_new_window_with_hsplit)| +|`vs`, `vsplit`|[\]({{ site.url }}/cheat_sheet/functions/#open_new_window_with_vsplit)| ### Window Select |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`sw`, `switch`|[\]({{ site.url }}/cheat_sheet/functions/#switch_window)| +|`switch`, `sw`|[\]({{ site.url }}/cheat_sheet/functions/#switch_window)| ### Window Resize |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`winresizer`, `resizer`|[\]({{ site.url }}/cheat_sheet/functions/#window_resizer)| -|`max`, `on`, `only`|[\]({{ site.url }}/cheat_sheet/functions/#maximize_current_window)| -|`min`, `hide`, `hi`|[\]({{ site.url }}/cheat_sheet/functions/#minimize_current_window)| -|`lsplit`, `lsp`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_left)| -|`rsplit`, `rsp`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_right)| +|`resizer`, `winresizer`|[\]({{ site.url }}/cheat_sheet/functions/#window_resizer)| +|`only`, `on`, `max`|[\]({{ site.url }}/cheat_sheet/functions/#maximize_current_window)| +|`hi`, `min`, `hide`|[\]({{ site.url }}/cheat_sheet/functions/#minimize_current_window)| +|`lsp`, `lsplit`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_left)| +|`rsp`, `rsplit`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_right)| |`tsp`, `tsplit`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_top)| -|`bsplit`, `bsp`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_bottom)| +|`bsp`, `bsplit`|[\]({{ site.url }}/cheat_sheet/functions/#snap_current_window_to_bottom)| |`arrange`|[\]({{ site.url }}/cheat_sheet/functions/#arrange_windows)| |`reload`|[\]({{ site.url }}/cheat_sheet/functions/#reload_current_window)| -|`rotate`, `rot`|[\]({{ site.url }}/cheat_sheet/functions/#rotate_windows)| -|`rerotate`, `rerot`|[\]({{ site.url }}/cheat_sheet/functions/#rotate_windows_in_reverse)| +|`rot`, `rotate`|[\]({{ site.url }}/cheat_sheet/functions/#rotate_windows)| +|`rerot`, `rerotate`|[\]({{ site.url }}/cheat_sheet/functions/#rotate_windows_in_reverse)| |`exchange`|[\]({{ site.url }}/cheat_sheet/functions/#exchange_window_with_nearest)| -|`vertres`, `verticalresize`|[\]({{ site.url }}/cheat_sheet/functions/#resize_window_width)| +|`verticalresize`, `vertres`|[\]({{ site.url }}/cheat_sheet/functions/#resize_window_width)| |`vertres+`, `verticalresize+`|[\]({{ site.url }}/cheat_sheet/functions/#increase_window_width)| |`verticalresize-`, `vertres-`|[\]({{ site.url }}/cheat_sheet/functions/#decrease_window_width)| |`res`, `resize`|[\]({{ site.url }}/cheat_sheet/functions/#resize_window_height)| -|`resize+`, `res+`|[\]({{ site.url }}/cheat_sheet/functions/#increase_window_height)| +|`res+`, `resize+`|[\]({{ site.url }}/cheat_sheet/functions/#increase_window_height)| |`resize-`, `res-`|[\]({{ site.url }}/cheat_sheet/functions/#decrease_window_height)| ### Process Launcher @@ -99,8 +99,8 @@ nav: Small Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| |`!`|[\]({{ site.url }}/cheat_sheet/functions/#start_external)| -|`e`, `execute`, `edit`|[\]({{ site.url }}/cheat_sheet/functions/#execute)| -|`terminal`, `term`, `sh`, `shell`|[\]({{ site.url }}/cheat_sheet/functions/#start_shell)| +|`e`, `edit`, `execute`|[\]({{ site.url }}/cheat_sheet/functions/#execute)| +|`shell`, `sh`, `term`, `terminal`|[\]({{ site.url }}/cheat_sheet/functions/#start_shell)|

diff --git a/docs/cheat_sheet/defaults/tiny/index.md b/docs/cheat_sheet/defaults/tiny/index.md index 9f56d085..02c3b555 100644 --- a/docs/cheat_sheet/defaults/tiny/index.md +++ b/docs/cheat_sheet/defaults/tiny/index.md @@ -12,7 +12,7 @@ nav: Tiny Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#to_gui_normal)| +|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#to_gui_normal)| |``|[\]({{ site.url }}/cheat_sheet/functions/#to_resident)| |`:`|[\]({{ site.url }}/cheat_sheet/functions/#to_command)| |`i`|[\]({{ site.url }}/cheat_sheet/functions/#click_left)[\]({{ site.url }}/cheat_sheet/functions/#to_insert)| @@ -22,8 +22,8 @@ nav: Tiny Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| |``, ``, `h`|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_left)| -|``, `l`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_right)| -|`k`, `-`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_up)| +|``, `l`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_right)| +|``, `-`, `k`|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_up)| |`+`, `j`, ``|[\]({{ site.url }}/cheat_sheet/functions/#move_cursor_down)| ### Mouse Clicking @@ -37,14 +37,14 @@ nav: Tiny Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_up)| -|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down)| +|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_up)| +|``, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_up_halfpage)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down_halfpage)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_up_onepage)| |``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_down_onepage)| -|``, `zh`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left)| -|``, `zl`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right)| +|`zh`, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left)| +|`zl`, ``|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right)| |`zh`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_left_halfpage)| |`zl`|[\]({{ site.url }}/cheat_sheet/functions/#scroll_right_halfpage)| @@ -52,8 +52,8 @@ nav: Tiny Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| -|`^`, ``, `0`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_left)| -|``, `$`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_right)| +|`0`, ``, `^`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_left)| +|`$`, ``|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_right)| |`gg`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_top)| |`G`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_bottom)| |`gm`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_to_hcenter)| @@ -65,13 +65,13 @@ nav: Tiny Mappings |**Trigger Commands**|**Called Commands**| |:---:|:---:| |`f`|[\]({{ site.url }}/cheat_sheet/functions/#jump_cursor_with_keybrd_layout)| -|`Fo`, `FF`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick)[\]({{ site.url }}/cheat_sheet/functions/#click_left)| +|`FF`, `Fo`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick)[\]({{ site.url }}/cheat_sheet/functions/#click_left)| |`Fa`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick)[\]({{ site.url }}/cheat_sheet/functions/#click_right)| |`Fm`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick)[\]({{ site.url }}/cheat_sheet/functions/#click_mid)| |`Fh`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick)| |`Ft`|[\]({{ site.url }}/cheat_sheet/functions/#focus_textarea)| |``|[\]({{ site.url }}/cheat_sheet/functions/#gridmove)| -|`Ao`, `AA`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick_all)[\]({{ site.url }}/cheat_sheet/functions/#click_left)| +|`AA`, `Ao`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick_all)[\]({{ site.url }}/cheat_sheet/functions/#click_left)| |`Aa`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick_all)[\]({{ site.url }}/cheat_sheet/functions/#click_right)| |`Am`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick_all)[\]({{ site.url }}/cheat_sheet/functions/#click_mid)| |`Ah`|[\]({{ site.url }}/cheat_sheet/functions/#easyclick_all)| @@ -108,14 +108,15 @@ nav: Tiny Mappings |:---:|:---:| |`exit`|[\]({{ site.url }}/cheat_sheet/functions/#exit)| |`sleep`|[\]({{ site.url }}/cheat_sheet/functions/#sleep)| +|`help`|[\]({{ site.url }}/cheat_sheet/functions/#help)| |`set`|[\]({{ site.url }}/cheat_sheet/functions/#set)| |`{mode}map`|[\<{mode}map\>]({{ site.url }}/cheat_sheet/functions/#map)| |`{mode}noremap`|[\<{mode}noremap\>]({{ site.url }}/cheat_sheet/functions/#noremap)| |`{mode}unmap`|[\<{mode}unmap\>]({{ site.url }}/cheat_sheet/functions/#unmap)| |`{mode}mapclear`|[\<{mode}mapclear\>]({{ site.url }}/cheat_sheet/functions/#mapclear)| -|`command`, `com`|[\]({{ site.url }}/cheat_sheet/functions/#command)| +|`com`, `command`|[\]({{ site.url }}/cheat_sheet/functions/#command)| |`delcommand`, `delc`|[\]({{ site.url }}/cheat_sheet/functions/#delcommand)| -|`comclear`, `comc`|[\]({{ site.url }}/cheat_sheet/functions/#comclear)| +|`comc`, `comclear`|[\]({{ site.url }}/cheat_sheet/functions/#comclear)| |`source`, `so`|[\]({{ site.url }}/cheat_sheet/functions/#source)| |`autocmd`|[\]({{ site.url }}/cheat_sheet/functions/#autocmd_add)| |`autocmd!`|[\]({{ site.url }}/cheat_sheet/functions/#autocmd_del)| diff --git a/docs/cheat_sheet/functions/index.md b/docs/cheat_sheet/functions/index.md index f20f43fa..c8b3ac1e 100644 --- a/docs/cheat_sheet/functions/index.md +++ b/docs/cheat_sheet/functions/index.md @@ -1067,6 +1067,21 @@ Close the current window. ## Process +### **``** +This function is called from the virtual command line as a command and opens the document page matching the arguments. The arguments can be function names, option names, parameter names, or predefined tags. + +**Examples** + +```vim +" Execute from the virtual command line +:help easyclick " Function name +:help uiacachebuild " Option name +:help gridmove_size " Parameter name +:help usage " Predefined tag +``` + +
+ ### **``** Open file with the associated application. This is a wrapper for the famous Windows API, **ShellExecute**, which behaves the same as double-clicking in Explorer. Therefore, you can open any format files and URLs. For example, `:e ~/.vimrc` or `:e https://www.google.com`. If there is no argument, it will open .vindrc loaded at initialization. diff --git a/res/resources/defaults/tiny.vindrc b/res/resources/defaults/tiny.vindrc index f10606bd..d0501cf4 100644 --- a/res/resources/defaults/tiny.vindrc +++ b/res/resources/defaults/tiny.vindrc @@ -91,6 +91,7 @@ command i " @ System Commands command exit command sleep +command help command set command map command noremap diff --git a/src/bind/bindinglist.cpp b/src/bind/bindinglist.cpp index f8aadc87..25645220 100644 --- a/src/bind/bindinglist.cpp +++ b/src/bind/bindinglist.cpp @@ -38,6 +38,7 @@ #include "proc/exapp.hpp" #include "proc/execute.hpp" +#include "proc/help.hpp" #include "proc/openwin.hpp" #include "hotkey/clipboard.hpp" @@ -115,6 +116,7 @@ namespace vind ForwardUINavigation::create(), GotoNextPage::create(), GotoPrevPage::create(), + Help::create(), HotkeyBackspace::create(), HotkeyCopy::create(), HotkeyCut::create(), @@ -317,5 +319,10 @@ namespace vind BindedFunc::SPtr search_func(const std::string& name) { return search_func(BindedFunc::name_to_id(util::A2a(name))) ; } + + BindedFunc::SPtr search_func(std::string&& name) { + return search_func( + BindedFunc::name_to_id(util::A2a(std::move(name)))) ; + } } } diff --git a/src/bind/bindinglist.hpp b/src/bind/bindinglist.hpp index 15be241a..b5a330c4 100644 --- a/src/bind/bindinglist.hpp +++ b/src/bind/bindinglist.hpp @@ -13,9 +13,11 @@ namespace vind BindedFunc::SPtr search_func(std::size_t id) ; BindedFunc::SPtr search_func(const std::string& name) ; + BindedFunc::SPtr search_func(std::string&& name) ; - inline bool check_if_func(std::size_t id) { - return search_func(id) != nullptr ; + template + inline bool check_if_func(T&& arg) { + return search_func(std::forward(arg)) != nullptr ; } } } diff --git a/src/bind/emu/motion.cpp b/src/bind/emu/motion.cpp index 51392501..5a71cffc 100644 --- a/src/bind/emu/motion.cpp +++ b/src/bind/emu/motion.cpp @@ -31,7 +31,7 @@ namespace vind struct YankWithMotion::Impl { core::Background bg_ ; explicit Impl() - : bg_(opt::ref_global_options_bynames( + : bg_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::BlockStyleCaret().name(), opt::VCmdLine().name() @@ -93,7 +93,7 @@ namespace vind core::Background bg_ ; explicit Impl() - : bg_(opt::ref_global_options_bynames( + : bg_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::BlockStyleCaret().name(), opt::VCmdLine().name() @@ -154,7 +154,7 @@ namespace vind core::Background bg_ ; explicit Impl() - : bg_(opt::ref_global_options_bynames( + : bg_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::BlockStyleCaret().name(), opt::VCmdLine().name() diff --git a/src/bind/emu/replacetext.cpp b/src/bind/emu/replacetext.cpp index 7c2ec55f..98189e7b 100644 --- a/src/bind/emu/replacetext.cpp +++ b/src/bind/emu/replacetext.cpp @@ -41,7 +41,7 @@ namespace public: explicit ReplaceMatching() - : bg_(opt::ref_global_options_bynames( + : bg_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::BlockStyleCaret().name(), opt::VCmdLine().name() diff --git a/src/bind/mode/command_mode.cpp b/src/bind/mode/command_mode.cpp index e485d834..df012e44 100644 --- a/src/bind/mode/command_mode.cpp +++ b/src/bind/mode/command_mode.cpp @@ -95,7 +95,7 @@ namespace vind Impl() : hists_(), - bg_(opt::ref_global_options_bynames( + bg_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::VCmdLine().name() )), diff --git a/src/bind/mode/instant_mode.cpp b/src/bind/mode/instant_mode.cpp index 21ad6c90..6ab75ec3 100644 --- a/src/bind/mode/instant_mode.cpp +++ b/src/bind/mode/instant_mode.cpp @@ -24,7 +24,7 @@ namespace vind core::Background bg_ ; Impl() - : bg_(opt::ref_global_options_bynames( + : bg_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::BlockStyleCaret().name(), opt::VCmdLine().name() diff --git a/src/bind/mouse/easyclick.cpp b/src/bind/mouse/easyclick.cpp index 5f6e7e68..3db93eca 100644 --- a/src/bind/mouse/easyclick.cpp +++ b/src/bind/mouse/easyclick.cpp @@ -150,7 +150,7 @@ namespace vind UIScanner scanner_ ; Impl() - : hinter_(opt::ref_global_options_bynames( + : hinter_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::VCmdLine().name())), scanner_() @@ -289,7 +289,7 @@ namespace vind UIScanner scanner_ ; Impl() - : hinter_(opt::ref_global_options_bynames( + : hinter_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::VCmdLine().name())), scanner_() diff --git a/src/bind/mouse/gridmove.cpp b/src/bind/mouse/gridmove.cpp index 3a48328e..f27b271b 100644 --- a/src/bind/mouse/gridmove.cpp +++ b/src/bind/mouse/gridmove.cpp @@ -34,7 +34,7 @@ namespace vind std::vector matchers_ ; Impl() - : hinter_(opt::ref_global_options_bynames( + : hinter_(opt::search_options( opt::VCmdLine().name())), grid_w_(0), grid_h_(0), diff --git a/src/bind/mouse/jump_keybrd.cpp b/src/bind/mouse/jump_keybrd.cpp index a4f7b317..80c4edfe 100644 --- a/src/bind/mouse/jump_keybrd.cpp +++ b/src/bind/mouse/jump_keybrd.cpp @@ -42,7 +42,7 @@ namespace vind Impl() : xposs_(), yposs_(), - bg_(opt::ref_global_options_bynames( + bg_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::VCmdLine().name() )) diff --git a/src/bind/proc/help.cpp b/src/bind/proc/help.cpp new file mode 100644 index 00000000..559de18e --- /dev/null +++ b/src/bind/proc/help.cpp @@ -0,0 +1,111 @@ +#include "help.hpp" + +#include "bind/bindinglist.hpp" +#include "core/rcparser.hpp" +#include "core/settable.hpp" +#include "opt/optionlist.hpp" +#include "util/debug.hpp" +#include "util/winwrap.hpp" + +#include +#include + + +namespace +{ + using namespace vind ; + + template + std::string parse_query_to_url(T&& query) { + static const std::unordered_map query2url = { + {"big", "/cheat_sheet/defaults/big"}, + {"cheat", "/cheat_sheet"}, + {"cheat_sheet", "/cheat_sheet"}, + {"cheatsheet", "/cheat_sheet"}, + {"default", "/cheat_sheet/defaults"}, + {"defaults", "/cheat_sheet/defaults"}, + {"down", "/downloads"}, + {"download", "/downloads"}, + {"downloads", "/downloads"}, + {"faq", "/faq"}, + {"fn", "/cheat_sheet/functions"}, + {"func", "/cheat_sheet/functions"}, + {"functions", "/cheat_sheet/functions"}, + {"home", ""}, + {"huge", "/cheat_sheet/defaults/huge"}, + {"issue", "/faq"}, + {"issues", "/faq"}, + {"keyword", "/cheat_sheet/keywords"}, + {"keywords", "/cheat_sheet/keywords"}, + {"manual", "/usage"}, + {"mode", "/cheat_sheet/keywords/#mode-prefix"}, + {"normal", "/cheat_sheet/defaults/normal"}, + {"opt", "/cheat_sheet/options"}, + {"option", "/cheat_sheet/options"}, + {"options", "/cheat_sheet/options"}, + {"parameters", "/cheat_sheet/options"}, + {"params", "/cheat_sheet/options"}, + {"small", "/cheat_sheet/defaults/small"}, + {"tier", "/cheat_sheet/defaults"}, + {"tiers", "/cheat_sheet/defaults"}, + {"tiny", "/cheat_sheet/defaults/tiny"}, + {"usage", "/usage"}, + {"version", "/cheat_sheet/defaults"}, + } ; + return query2url.at(util::A2a(query)) ; + } +} + + +namespace vind +{ + namespace bind + { + Help::Help() + : BindedFuncVoid("help") + {} + + void Help::sprocess( + std::uint16_t UNUSED(count), + const std::string& args) { + static constexpr auto base_url = "https://pit-ray.github.io/win-vind" ; + + auto [_, pargs] = core::divide_cmd_and_args(args) ; + if(pargs.empty()) { + util::shell_execute(base_url) ; + return ; + } + + // Function names + if(check_if_func(pargs)) { + auto sub_url = "/cheat_sheet/functions/#" + pargs ; + util::shell_execute(base_url + sub_url) ; + return ; + } + + // Option names + if(opt::check_if_option(pargs)) { + auto sub_url = "/cheat_sheet/options/#" + pargs ; + util::shell_execute(base_url + sub_url) ; + return ; + } + + // Parameter names + if(core::SetTable::get_instance().has(pargs)) { + auto sub_url = "/cheat_sheet/options/#" + pargs ; + util::shell_execute(base_url + sub_url) ; + return ; + } + + // Predefined queries + try { + auto sub_url = parse_query_to_url(pargs) ; + util::shell_execute(base_url + sub_url) ; + } + catch(const std::out_of_range&) { + // If the argument is invalid, open the top page. + util::shell_execute(base_url) ; + } + } + } +} diff --git a/src/bind/proc/help.hpp b/src/bind/proc/help.hpp new file mode 100644 index 00000000..11cb23cf --- /dev/null +++ b/src/bind/proc/help.hpp @@ -0,0 +1,18 @@ +#ifndef _HELP_HPP +#define _HELP_HPP + +#include "bind/bindedfunc.hpp" + +namespace vind +{ + namespace bind + { + struct Help : public BindedFuncVoid { + explicit Help() ; + static void sprocess( + std::uint16_t count, const std::string& args) ; + } ; + } +} + +#endif diff --git a/src/bind/window/switch_win.cpp b/src/bind/window/switch_win.cpp index de395f52..288a131b 100644 --- a/src/bind/window/switch_win.cpp +++ b/src/bind/window/switch_win.cpp @@ -24,7 +24,7 @@ namespace vind core::Background bg_ ; explicit Impl() - : bg_(opt::ref_global_options_bynames( + : bg_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::VCmdLine().name() )) diff --git a/src/bind/window/winresizer.cpp b/src/bind/window/winresizer.cpp index 356d2cfe..bc4e51b2 100644 --- a/src/bind/window/winresizer.cpp +++ b/src/bind/window/winresizer.cpp @@ -59,7 +59,7 @@ namespace vind right_id_(MoveCursorRight().id()), up_id_(MoveCursorUp().id()), down_id_(MoveCursorDown().id()), - bg_(opt::ref_global_options_bynames( + bg_(opt::search_options( opt::AsyncUIACacheBuilder().name(), opt::VCmdLine().name() )) diff --git a/src/core/settable.cpp b/src/core/settable.cpp index 9294692f..5871310d 100644 --- a/src/core/settable.cpp +++ b/src/core/settable.cpp @@ -166,6 +166,11 @@ namespace vind return pimpl->table_.at(name) ; } + bool SetTable::has(const std::string& name) const { + std::lock_guard scoped_lock{pimpl->mtx_} ; + return pimpl->table_.find(name) != pimpl->table_.end() ; + } + void SetTable::remove(const std::string& name) { std::lock_guard scoped_lock{pimpl->mtx_} ; pimpl->table_.erase(name) ; diff --git a/src/core/settable.hpp b/src/core/settable.hpp index 27e2224e..be862fcb 100644 --- a/src/core/settable.hpp +++ b/src/core/settable.hpp @@ -50,6 +50,7 @@ namespace vind void set(Param&& param) ; const Param& get(const std::string& name) const ; + bool has(const std::string& name) const ; void remove(const std::string& name) ; } ; diff --git a/src/opt/optionlist.cpp b/src/opt/optionlist.cpp index 64f6668b..dccb0fc8 100644 --- a/src/opt/optionlist.cpp +++ b/src/opt/optionlist.cpp @@ -23,7 +23,7 @@ namespace vind return tmp ; } - Option::SPtr ref_global_options_byname(const std::string& name) { + Option::SPtr search_option(const std::string& name) { for(auto& opt : all_global_options()) { if(opt->name() == util::A2a(name)) { return opt ; @@ -32,7 +32,7 @@ namespace vind return nullptr ; } - Option::SPtr ref_global_options_byname(std::string&& name) { + Option::SPtr search_option(std::string&& name) { for(auto& opt : all_global_options()) { if(opt->name() == util::A2a(std::move(name))) { return opt ; diff --git a/src/opt/optionlist.hpp b/src/opt/optionlist.hpp index d11a7ef8..8459f8bf 100644 --- a/src/opt/optionlist.hpp +++ b/src/opt/optionlist.hpp @@ -13,14 +13,14 @@ namespace vind { const std::vector& all_global_options() ; - Option::SPtr ref_global_options_byname(const std::string& name) ; - Option::SPtr ref_global_options_byname(std::string&& name) ; + Option::SPtr search_option(const std::string& name) ; + Option::SPtr search_option(std::string&& name) ; template - std::vector ref_global_options_bynames(String&& name, Strings&&... names) { + std::vector search_options(String&& name, Strings&&... names) { std::vector out ; - if(auto opt = ref_global_options_byname(std::forward(name))) { + if(auto opt = search_option(std::forward(name))) { out.push_back(std::move(opt)) ; } @@ -30,10 +30,15 @@ namespace vind } } ; - ((append(ref_global_options_byname(std::forward(names)))), ...) ; + ((append(search_option(std::forward(names)))), ...) ; return out ; } + + template + inline bool check_if_option(T&& name) { + return search_option(std::forward(name)).get() != nullptr ; + } } }