-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8e70ee
commit 4214c42
Showing
61 changed files
with
18,083 additions
and
18,079 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/ui/js/*.map | ||
/docs/_build | ||
/.vscode | ||
/user/conemu | ||
/user/youdaonote | ||
/user/pdfimage | ||
/user/run.log | ||
/ges/*.png | ||
/user/include.ahk | ||
/user/icons/*.* | ||
/ui/js/*.map | ||
/docs/_build | ||
/.vscode | ||
/user/conemu | ||
/user/youdaonote | ||
/user/pdfimage | ||
/user/run.log | ||
/ges/*.png | ||
/user/include.ahk | ||
/user/icons/*.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# quickz | ||
由 Autohotkey 编写的快速工具,可以快速设置 仿 vim 化的快捷键和自定义菜单。 | ||
|
||
|
||
# 使用 | ||
|
||
先运行 loadPlugins.ahk 加载插件 | ||
|
||
然后运行 quickz.ahk 文件即可 | ||
# quickz | ||
由 Autohotkey 编写的快速工具,可以快速设置 仿 vim 化的快捷键和自定义菜单。 | ||
|
||
|
||
# 使用 | ||
|
||
先运行 loadPlugins.ahk 加载插件 | ||
|
||
然后运行 quickz.ahk 文件即可 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,83 @@ | ||
|
||
.. highlight:: autohotkey | ||
|
||
Class_MenuZ | ||
=========== | ||
|
||
处理快速菜单的核心API | ||
|
||
.. attribute:: menuz.self | ||
|
||
clsas menuz 拥有一个静态的属性 *self*, 保存 menuz 的核心属性 | ||
|
||
.. code-block:: ahk | ||
menuz.self := new menuz._self() | ||
.. class:: self | ||
|
||
.. attribute:: self.onGetClip | ||
|
||
获取环境信息时,默认使用 *Ctrl + C / Ctrl + Insert* 的方式进行复制,然后获取选中的信息,此属性可以指定函数,当复制之前执行一次此函数,用于自定义获取选中信息。 | ||
|
||
执行函数时,会传入两个参数,分别是当前环境对象 Env 和事件 GetClip / GetWin | ||
|
||
.. code-block:: ahk | ||
menuz.self.onGetClip := "myGetClip" | ||
myGetClip(env, event) { | ||
if (event == "GetClip") { | ||
if (env.winExe == "gvim.exe") { | ||
clipBackup := ClipboardAll | ||
Clipboard := "" | ||
SendRaw "+y | ||
ClipWait, % env.config.ClipTimeOut, 1 | ||
env.isWin := ErrorLevel | ||
clipData := Clipboard | ||
; 告知 MenuZ 已经获取好选中信息 | ||
env.isGetClip := true | ||
env.isText := true | ||
env.text := clipData | ||
} | ||
} | ||
} | ||
.. attribute:: self.onGetWin | ||
|
||
与 onGetClip 类似,此属性用于获取当前的 Win 环境,默认是使用 *WinGet** 系列函数获取。 | ||
|
||
需要自定义获取窗口信息时,请指定此属性。 | ||
|
||
.. attribute:: self.ClipUseInsert | ||
|
||
False : 使用 *Ctrl + C* 进行复制获取选中信息 | ||
|
||
True :使用 *Ctrl + Insert* 进行复制 | ||
|
||
默认值为 False | ||
|
||
.. attribute:: self.ClipTimeOut | ||
|
||
复制的超时时间,单位为毫秒,默认为 400 毫秒。 | ||
|
||
.. method:: config(cnf) | ||
|
||
传入对象,配置 MenuZ 的选项,和直接指定 menuz.self 一样的效果。 | ||
|
||
.. code-block:: ahk | ||
menuz.config({ClipTimeOut: 400 | ||
,ClipUseInsert: false | ||
,onGetWin: "" | ||
,onGetClip: "myGetClip"}) | ||
.. method:: Active( ) | ||
|
||
激活 MenuZ 获取当前环境信息,保存到 Env 对象,并根据环境信息生成菜单 | ||
|
||
.. code-block:: ahk | ||
!q:: menuz.Active() | ||
|
||
.. highlight:: autohotkey | ||
|
||
Class_MenuZ | ||
=========== | ||
|
||
处理快速菜单的核心API | ||
|
||
.. attribute:: menuz.self | ||
|
||
clsas menuz 拥有一个静态的属性 *self*, 保存 menuz 的核心属性 | ||
|
||
.. code-block:: ahk | ||
menuz.self := new menuz._self() | ||
.. class:: self | ||
|
||
.. attribute:: self.onGetClip | ||
|
||
获取环境信息时,默认使用 *Ctrl + C / Ctrl + Insert* 的方式进行复制,然后获取选中的信息,此属性可以指定函数,当复制之前执行一次此函数,用于自定义获取选中信息。 | ||
|
||
执行函数时,会传入两个参数,分别是当前环境对象 Env 和事件 GetClip / GetWin | ||
|
||
.. code-block:: ahk | ||
menuz.self.onGetClip := "myGetClip" | ||
myGetClip(env, event) { | ||
if (event == "GetClip") { | ||
if (env.winExe == "gvim.exe") { | ||
clipBackup := ClipboardAll | ||
Clipboard := "" | ||
SendRaw "+y | ||
ClipWait, % env.config.ClipTimeOut, 1 | ||
env.isWin := ErrorLevel | ||
clipData := Clipboard | ||
; 告知 MenuZ 已经获取好选中信息 | ||
env.isGetClip := true | ||
env.isText := true | ||
env.text := clipData | ||
} | ||
} | ||
} | ||
.. attribute:: self.onGetWin | ||
|
||
与 onGetClip 类似,此属性用于获取当前的 Win 环境,默认是使用 *WinGet** 系列函数获取。 | ||
|
||
需要自定义获取窗口信息时,请指定此属性。 | ||
|
||
.. attribute:: self.ClipUseInsert | ||
|
||
False : 使用 *Ctrl + C* 进行复制获取选中信息 | ||
|
||
True :使用 *Ctrl + Insert* 进行复制 | ||
|
||
默认值为 False | ||
|
||
.. attribute:: self.ClipTimeOut | ||
|
||
复制的超时时间,单位为毫秒,默认为 400 毫秒。 | ||
|
||
.. method:: config(cnf) | ||
|
||
传入对象,配置 MenuZ 的选项,和直接指定 menuz.self 一样的效果。 | ||
|
||
.. code-block:: ahk | ||
menuz.config({ClipTimeOut: 400 | ||
,ClipUseInsert: false | ||
,onGetWin: "" | ||
,onGetClip: "myGetClip"}) | ||
.. method:: Active( ) | ||
|
||
激活 MenuZ 获取当前环境信息,保存到 Env 对象,并根据环境信息生成菜单 | ||
|
||
.. code-block:: ahk | ||
!q:: menuz.Active() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Class_VIMD.ahk | ||
================ | ||
|
||
|
||
vimd | ||
--------- | ||
|
||
|
||
vimwin | ||
Class_VIMD.ahk | ||
================ | ||
|
||
|
||
vimd | ||
--------- | ||
|
||
|
||
vimwin | ||
--------- |
Oops, something went wrong.