Skip to content

Commit cc732f4

Browse files
committed
updte README
1 parent 196874b commit cc732f4

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

README.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,18 @@ The default setting enables vim-mode for the following applications:
5252
You can change them from the right click menu of task tray icon (find `VimMenu`-`Settings` in the list),
5353
or launch the setting window by `Ctrl-Alt-Shift-v`.
5454

55-
If you want to change applications directly in the script, add `GroupAdd VimGroup` lines at the top of vim.ahk
56-
(Window title/class can be checked by Window spy of AutoHotkey), like:
55+
If you want to change applications directly in the script, add `VimGroup` variable before `Vim := new VimAhk()` in vim.ahk (Window title/class can be checked by Window spy of AutoHotkey),
56+
or write before including vim.ahk
5757

58-
GroupAdd VimGroup, ahk_exe chrome.exe ; Google Chrome
58+
Example line:
59+
60+
VimGroup := "ahk_exe chrome.exe,ahk_exe firefox.exe"
61+
62+
Multiple applications can be written by comma separated.
63+
64+
Note: This will overwrite the default applications. If you want to **add** these applications to the default applications, add following applications after your applications:
65+
66+
"ahk_exe notepad.exe,ahk_exe explorer.exe,ahk_exe wordpad.exe,ahk_exe TeraPad.exe,作成,Write:,ahk_exe POWERPNT.exe,ahk_exe WINWORD.exe,ahk_exe Evernote.exe,ahk_exe Code.exe,ahk_exe onenote.exe,OneNote,ahk_exe texworks.exe,ahk_exe texstudio.exe"
5967

6068
Or you can use GUI option setting described below.
6169

@@ -64,7 +72,6 @@ The default setting of `VimSetTitleMatchMode` is 2, which makes matching methods
6472
If you set `OneNote`, all windows with a title containing `OneNote` (e.g. `XXX's OneNote`) will be included.
6573
If you set `VimSetTitleMatchMode` as 3, only exact title of `OneNote` will be included.
6674

67-
6875
Note: It may not work on OneNote. OneNote may has window name like **User's Notebook - OneNote**, instead of **OneNote**.
6976

7077
In that case, you need to check OneNote's window title with Window spy.
@@ -79,17 +86,13 @@ If you add any of above lines to VimGroup, vim_ahk works on OneNote.
7986
But if you set `ahk_class ApplicationFrameWindow` or `ahk_exe ApplicationFrameHost.exe`,
8087
vim_ahk also works on other applications which use these Class/Process name (most of applications installed from Microsoft Store).
8188

82-
Another examples:
83-
84-
* Excel:
89+
Examples of applications:
90+
* Chrome: `ahk_exe chrome.exe`
91+
* Firefox: `ahk_exe firefox.exe`
92+
* Excel: `ahk_exe EXCEL.EXE`
93+
* LibreOffice: `ahk_exe soffice.bin` (for all LibreOffice applications)
8594

86-
ahk_exe EXCEL.EXE
87-
88-
* LibreOffice:
89-
90-
ahk_exe soffice.bin
91-
92-
## Options
95+
## Other Options
9396

9497
|Option|Description|Default|
9598
|:-----|:----------|:------|
@@ -103,8 +106,12 @@ Another examples:
103106
|VimIconCheckInterval|Interval to check vim_ahk status (ms) and change tray icon. If it is set to 0, the original AHK icon is set.|1000|
104107
|VimVerbose|Verbose level (see below for details).|0|
105108

109+
If you want to change them directly in the script, add these variable before `Vim := new VimAhk()` in vim.ahk or write before including vim.ahk
110+
111+
Or you can use GUI option setting described below.
106112

107113
VimIconCheckInterval:
114+
108115
If it is set non-zero, the tray icon is immediately changed when the mode is changed.
109116
This interval defines the interval when the Window is changed (e.g. vim_ahk enabled window to disabled window).
110117

0 commit comments

Comments
 (0)