Releases: pit-ray/win-vind
v5.8.0
Minor
Add
- Add
<focus_textarea>
command to select the nearest text box. (#217)
See its document https://pit-ray.github.io/win-vind/cheat_sheet/functions/#focus_textarea
Change
autofocus_textarea
option is deprecated.
v5.7.0
Minor
Add
- add
<move_window_left>
,<move_window_right>
,<move_window_up>
and<move_window_down>
. (#202, #216 )
See the document https://pit-ray.github.io/win-vind/cheat_sheet/functions/#move_window_left.
v5.6.0
Minor
Add
- Add
sleep
command. (#169, #209)
https://pit-ray.github.io/win-vind/cheat_sheet/functions/#sleep
Fix
- Fix a problem that not repeating a command when having multiple trigger characters, such as
5gs
.
v5.5.2
Patch
Fix
- fix mapping issues in the switch_window.
v5.5.1
Patch
Fix
- fixed a problem not working h and l keys in
switch_window
.
v5.5.0
v5.4.0
v5.3.0
Minor
New
I added the following commands. (#89, #100) (#108)
command | syntax |
---|---|
autocmd |
[au]tocmd {event} {aupat} {cmd} |
autocmd! |
[au]tocmd! {event} {aupat} {cmd} |
See its document for details.
https://pit-ray.github.io/win-vind/cheat_sheet/functions/#autocmd_add
autocmd
It adds {cmd}
into autocmd list for {aupat}
, autocmd pattern, corresponding to {event}
. As such as Vim, this function does not overwrite but append {cmd}
into a list even if the same {cmd}
has already existed in a list. The event does not allow us to use *
. If you want to add a command to some events at the same time, ,
without after-space is available. The rule of {aupat}
is based on the original Vim. Of course, registered {cmd}
s will execute in order added.
autocmd!
It remove all autocmd matched {event}
and {aupat}
, then register {cmd}
after delete. The following syntaxes are available.
au[tocmd]! {event} {aupat} {cmd}
au[tocmd]! {event} {aupat}
au[tocmd]! * {aupat}
au[tocmd]! {event}
Each features are the same as the original Vim.
Examples
- Default mapping for the specific event (match any applications)
autocmd AppLeave * <to_insert>
- Once notepad is selected, it will automatically switch to Editor normal mode.
"Equivalent to conventional dedicate_to_window autocmd AppEnter *notepad* <to_edi_normal>
- Suppress win-vind in processes named Vim.
" Equivalent to conventional suppress_for_vim autocmd AppEnter,EdiNormalEnter *vim* <to_resident>
Change
- Deprecate
suppress_for_vim
anddedicate_to_window