IbEverythingExt icon indicating copy to clipboard operation
IbEverythingExt copied to clipboard

[建议]快速选择组合键前缀希望能支持自定义

Open godefy opened this issue 2 years ago • 2 comments

image 目前限定固定为alt,但有时候alt+数字习惯了给其它功能使用。这个alt前缀就希望可以自定义了,比如ctrl什么的(在listary里,默认也是ctrl+数字快速选择,但目前固定了alt就没法同步这个习惯了)。 现在试了下还不可以这样配置。

godefy avatar Apr 12 '22 00:04 godefy

临时解决方案:使用 AutoHotkey 映射: quickselect_keymap.zip

#UseHook
SendMode "Input"

#HotIf ActiveWindowIsEverything() and ActiveControlIsOfClass("Edit")

^1::!1
^2::!2
^3::!3
^4::!4
^5::!5
^6::!6
^7::!7
^8::!8
^9::!9
^0::!0

#HotIf

ActiveWindowIsEverything() {
    window_class := ""
    try window_class := WinGetClass("A")
    return (window_class ~= "^EVERYTHING") != 0
}

ActiveControlIsOfClass(Class) {
    FocusedControl := 0
    try FocusedControl := ControlGetFocus("A")
    FocusedControlClass := ""
    try FocusedControlClass := WinGetClass(FocusedControl)
    return (FocusedControlClass = Class)
}

Chaoses-Ib avatar Apr 12 '22 09:04 Chaoses-Ib

非常感谢~~ 条件判定得很精确,而且还与时俱进的用上了v2版本👍 要是我自己实现估计就直接图省事用WinActive("ahk_exe Everything.exe")了。 期待后续版本在配置里进行支持,如果实现复杂的话,其实仅支持增加可选用ctrl为前缀就能覆盖很大一部分使用需求啦。

godefy avatar Apr 12 '22 10:04 godefy