Skip to content

Commit

Permalink
remove SendUp/SendDown function (exe is not implemented in vim_ahk)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed May 9, 2020
1 parent af4cd8e commit cdd31fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
4 changes: 2 additions & 2 deletions lib/vim_ahk.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

class VimAhk{
__About(){
this.About.Version := "v0.7.1"
this.About.Date := "22/Apr/2020"
this.About.Version := "v0.7.2"
this.About.Date := "09/May/2020"
this.About.Author := "rcmdnk"
this.About.Description := "Vim emulation with AutoHotkey, everywhere in Windows."
this.About.Homepage := "https://github.com/rcmdnk/vim_ahk"
Expand Down
31 changes: 10 additions & 21 deletions lib/vim_move.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,17 @@

; 1 character
if(key == "j"){
this.SendDown()
if WinActive("ahk_group VimOneNoteGroup"){
Send ^{Down}
} else {
Send,{Down}
}
}else if(key="k"){
this.SendUp()
if WinActive("ahk_group VimOneNoteGroup"){
Send ^{Up}
} else {
Send,Up}
}
; Page Up/Down
}else if(key == "^u"){
Send, {Up 10}
Expand Down Expand Up @@ -128,23 +136,4 @@
this.Vim.Move.Move(key)
}
}

SendUp(){
; Only for OneNote of less than windows 10?
if WinActive("ahk_group VimOneNoteGroup"){
run, %A_scriptdir%\lib\util\sendUp.exe
} else {
Send,{Up}
}
}

SendDown(){
; Only for OneNote of less than windows 10?
if WinActive("ahk_group VimOneNoteGroup"){
run, %A_scriptdir%\lib\util\sendDown.exe
} else {
Send,{Down}
}
}

}

0 comments on commit cdd31fd

Please sign in to comment.