Skip to content

Commit

Permalink
fix paste on Evernote
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Aug 3, 2020
1 parent 93c692c commit 5d9cbef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion lib/bind/vim_ydcxp.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ p::
; break
;}
if(Vim.State.LineCopy == 1){
Send, {End}{Enter}^v{BS}{Home}
if WinActive("ahk_group VimNoLBCopyGroup"){
Send, {End}{Enter}^v{Home}
}else{
Send, {End}{Enter}^v{BS}{Home}
}
}else{
Send, {Right}
Send, ^v
Expand Down
9 changes: 6 additions & 3 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.5"
this.About.Date := "23/Jul/2020"
this.About.Version := "v0.7.6"
this.About.Date := "03/Aug/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 All @@ -46,11 +46,14 @@ class VimAhk{

DefaultGroup := this.SetDefaultActiveWindows()

; Following application select the line break at Shift + End.
; Following applications select the line break at Shift + End.
GroupAdd, VimLBSelectGroup, ahk_exe POWERPNT.exe ; PowerPoint
GroupAdd, VimLBSelectGroup, ahk_exe WINWORD.exe ; Word
GroupAdd, VimLBSelectGroup, ahk_exe wordpad.exe ; WordPad

; Following applications do not copy the line break
GroupAdd, VimNoLBCopyGroup, ahk_exe Evernote.exe ; Evernote

; Need Ctrl for Up/Down
GroupAdd, VimCtrlUpDownGroup, ahk_exe onenote.exe ; OneNote Desktop, before Windows 10

Expand Down

0 comments on commit 5d9cbef

Please sign in to comment.