File tree Expand file tree Collapse file tree 2 files changed +12
-23
lines changed Expand file tree Collapse file tree 2 files changed +12
-23
lines changed Original file line number Diff line number Diff line change 1919
2020class VimAhk{
2121 __About (){
22- this.About.Version := " v0.7.1 "
23- this.About.Date := " 22/Apr /2020"
22+ this.About.Version := " v0.7.2 "
23+ this.About.Date := " 09/May /2020"
2424 this.About.Author := " rcmdnk"
2525 this.About.Description := " Vim emulation with AutoHotkey, everywhere in Windows."
2626 this.About.Homepage := " https://github.com/rcmdnk/vim_ahk"
Original file line number Diff line number Diff line change 8080
8181 ; 1 character
8282 if (key == " j" ){
83- this.SendDown()
83+ if WinActive (" ahk_group VimOneNoteGroup" ){
84+ Send ^ {Down }
85+ } else {
86+ Send ,{Down }
87+ }
8488 }else if(key=" k" ){
85- this.SendUp()
89+ if WinActive (" ahk_group VimOneNoteGroup" ){
90+ Send ^ {Up }
91+ } else {
92+ Send ,Up }
93+ }
8694 ; Page Up/Down
8795 }else if(key == " ^u" ){
8896 Send , {Up 10 }
128136 this.Vim.Move.Move(key)
129137 }
130138 }
131-
132- SendUp (){
133- ; Only for OneNote of less than windows 10?
134- if WinActive (" ahk_group VimOneNoteGroup" ){
135- run , %A_scriptdir %\lib\util\sendUp.exe
136- } else {
137- Send ,{Up }
138- }
139- }
140-
141- SendDown (){
142- ; Only for OneNote of less than windows 10?
143- if WinActive (" ahk_group VimOneNoteGroup" ){
144- run , %A_scriptdir %\lib\util\sendDown.exe
145- } else {
146- Send ,{Down }
147- }
148- }
149-
150139}
You can’t perform that action at this time.
0 commit comments