Skip to content

Commit

Permalink
improve +j (combine lines at normal mode)
Browse files Browse the repository at this point in the history
Previous version (after updating for old OneNote) had a bug
that it did not has Return after key mapping of multi lines.
(i.e. +j executed also the next binding (`~`, capitalize character)
  • Loading branch information
rcmdnk committed Apr 22, 2020
1 parent 6813095 commit af4cd8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions lib/bind/vim_normal.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ u::Send,^z
^r::Send,^y

; Combine lines
+j::
if WinActive("ahk_group VimOneNoteGroup"){
Send, ^{Down}{Home}{BS}{Space}{Left}
}else{
Send, {Down}{Home}{BS}{Space}{Left}
}
+j:: Send, {End}{Space}{Delete}

; Change case
~::
Expand Down
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.0"
this.About.Date := "20/Apr/2020"
this.About.Version := "v0.7.1"
this.About.Date := "22/Apr/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

0 comments on commit af4cd8e

Please sign in to comment.