Skip to content

Commit cdd31fd

Browse files
committed
remove SendUp/SendDown function (exe is not implemented in vim_ahk)
1 parent af4cd8e commit cdd31fd

File tree

2 files changed

+12
-23
lines changed

2 files changed

+12
-23
lines changed

lib/vim_ahk.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
class 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"

lib/vim_move.ahk

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,17 @@
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}
@@ -128,23 +136,4 @@
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
}

0 commit comments

Comments
 (0)