From 602c1d1b6c5015d241da01c1f65ae0a2f6563730 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Wed, 8 Nov 2023 01:48:13 +0900 Subject: [PATCH 1/3] add placeholder --- src/bind/proc/help.cpp | 0 src/bind/proc/help.hpp | 4 ++++ src/core/version.hpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/bind/proc/help.cpp create mode 100644 src/bind/proc/help.hpp diff --git a/src/bind/proc/help.cpp b/src/bind/proc/help.cpp new file mode 100644 index 00000000..e69de29b diff --git a/src/bind/proc/help.hpp b/src/bind/proc/help.hpp new file mode 100644 index 00000000..2a06e7f0 --- /dev/null +++ b/src/bind/proc/help.hpp @@ -0,0 +1,4 @@ +#ifndef _HELP_HPP +#define _HELP_HPP + +#endif diff --git a/src/core/version.hpp b/src/core/version.hpp index 08dd0afc..0fd51126 100644 --- a/src/core/version.hpp +++ b/src/core/version.hpp @@ -1,6 +1,6 @@ #ifndef _VERSION_HPP #define _VERSION_HPP -#define WIN_VIND_VERSION "5.5.2.0" +#define WIN_VIND_VERSION "5.6.0.0" #endif From 2ee00d3c736752f186e5473a4c0ec7a054715977 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Sun, 14 Jan 2024 21:01:12 +0900 Subject: [PATCH 2/3] add a document page of help --- docs/cheat_sheet/defaults/big/index.md | 30 +++++++------- docs/cheat_sheet/defaults/normal/index.md | 48 +++++++++++------------ docs/cheat_sheet/defaults/small/index.md | 36 ++++++++--------- docs/cheat_sheet/defaults/tiny/index.md | 27 +++++++------ docs/cheat_sheet/functions/index.md | 15 +++++++ 5 files changed, 86 insertions(+), 70 deletions(-) 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. From b3e512b296827c3e7a688ca99a13dd68c6c758d4 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Sun, 14 Jan 2024 21:30:12 +0900 Subject: [PATCH 3/3] fix coveity defects --- src/bind/bindinglist.cpp | 5 +++++ src/bind/bindinglist.hpp | 3 ++- src/opt/optionlist.hpp | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bind/bindinglist.cpp b/src/bind/bindinglist.cpp index 4284a24c..25645220 100644 --- a/src/bind/bindinglist.cpp +++ b/src/bind/bindinglist.cpp @@ -319,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 e89ac59a..b5a330c4 100644 --- a/src/bind/bindinglist.hpp +++ b/src/bind/bindinglist.hpp @@ -13,10 +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) ; template inline bool check_if_func(T&& arg) { - return search_func(arg) != nullptr ; + return search_func(std::forward(arg)) != nullptr ; } } } diff --git a/src/opt/optionlist.hpp b/src/opt/optionlist.hpp index 151654e8..8459f8bf 100644 --- a/src/opt/optionlist.hpp +++ b/src/opt/optionlist.hpp @@ -37,7 +37,7 @@ namespace vind template inline bool check_if_option(T&& name) { - return search_option(name) != nullptr ; + return search_option(std::forward(name)).get() != nullptr ; } } }