From 5d9cbefd0a0784360e886c4b2b59e0aea9fc18e7 Mon Sep 17 00:00:00 2001 From: rcmdnk Date: Tue, 4 Aug 2020 00:18:09 +0900 Subject: [PATCH] fix paste on Evernote --- lib/bind/vim_ydcxp.ahk | 6 +++++- lib/vim_ahk.ahk | 9 ++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/bind/vim_ydcxp.ahk b/lib/bind/vim_ydcxp.ahk index c10111b0..5a5dddf2 100644 --- a/lib/bind/vim_ydcxp.ahk +++ b/lib/bind/vim_ydcxp.ahk @@ -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 diff --git a/lib/vim_ahk.ahk b/lib/vim_ahk.ahk index 55785dfa..6def1d36 100644 --- a/lib/vim_ahk.ahk +++ b/lib/vim_ahk.ahk @@ -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" @@ -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