Giter Site home page Giter Site logo

WizNote.ahk about vimdesktop HOT 8 CLOSED

goreliu avatar goreliu commented on August 17, 2024
WizNote.ahk

from vimdesktop.

Comments (8)

goreliu avatar goreliu commented on August 17, 2024

@zhuatw

因为有时按完j后,焦点会跳到右侧正文部分,按j就没用了。可以用J,它会先把焦点重新放到左侧目录。因为之前我想让在右侧的正文编辑时也可以用jk来移动光标,所以J和j是不同的。

如果这个窗口只属于一个软件的,可以屏蔽这个软件,在配置文件的

[exclude]
vim

里添加,用Au3_Spy.exe获取到对应窗口的ahk_class。

如果不想屏蔽整个软件,或者这类窗口在很多软件里边都有,现在没有方便的办法屏蔽,只能在每个插件里自己加上屏蔽窗口的classnn。但因为VimDesktop只对有对应插件的软件使用快捷键,你是指General模式的情况吗?那只在General插件里加上屏蔽窗口的classnn就可以了。

from vimdesktop.

zhuatw avatar zhuatw commented on August 17, 2024

[exclude] 处当时没细看,多谢提醒 !
另外,在网页上看到好像为知是 Qt 编写的,使用时鼠标点击笔记的文件列表后,焦点先高亮几秒,接着焦点就自动转移了;我现在是看 AppsKey 基上用的不多,就直按把代码加到 vimd.ahk 最后面,再把[plugins] 处 WizNote=0 ,使用时是先 AppsKey & f 定位到为知笔记的文件夹上:

;wzi folder Control
AppsKey & f::
IfWinNotExist, ahk_class WizNoteMainFrame
  Send ^!m
WinActivate, ahk_class WizNoteMainFrame
ControlFocus, CWizMultiSelectTreeCtrl1, ahk_class WizNoteMainFrame
Return

AppsKey & k::
Send {Up}
Return

AppsKey & j::
Send {Down}
Return

AppsKey & h::
Send {Left}
Return

AppsKey & l::
send {Right}
Return

AppsKey & n::
Send {F8}
Return

AppsKey & p::
Send {F7}
Return

AppsKey & RAlt::
Send {AppSkey}
Return

from vimdesktop.

zhuatw avatar zhuatw commented on August 17, 2024

补充下:上述的 ahk 单独一个脚本才能用,因为放到 vimd.ahk 中最后面,刚启动时好像能用,当在为知中用过搜索还是什么其它的操作后,就失效了,可能与 vimd.ahk 有冲突,具体原因?
我也不知道!

from vimdesktop.

goreliu avatar goreliu commented on August 17, 2024

@zhuatw
在新版本我增加了一个功能,你可以把这段代码放到vimd.ini所在目录下的custom.ahk,然后vimd就会自动include它,我试了下,是没有问题的。

from vimdesktop.

zhuatw avatar zhuatw commented on August 17, 2024

TTOTAL_CMD 中的 " n" " <TC_azHistory> " "a-z 历史导航“,
现在是可以呼出此历史,但是再用 a-z 键不能跳到相应的选择?

from vimdesktop.

goreliu avatar goreliu commented on August 17, 2024

那按a-z是没反应还是退出历史,用的自带的vimd.exe吗?

from vimdesktop.

zhuatw avatar zhuatw commented on August 17, 2024

我没用 vimd.exe ,我有装 AHK ,刚才也重下载了 AHK 的最新版,也是用的你的最新主分支,电脑也重启来试,结果还是没用。
具体表现为:
按 n 会出现历史 a-z ,再按相应的字母键就只退回到 TC 中,它并没转到相对应的历史文件目录中。

from vimdesktop.

goreliu avatar goreliu commented on August 17, 2024

无法复现,只能你直接调下代码了,看下什么地方出错了。

from vimdesktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.