monoblaine / alttab-replacer

AutoHotkey script that replaces the Windows Alt+Tab Menu
6 stars 0 forks source link

Faster switching (similar to Chrome vimium) #1

Open photkey opened 2 years ago

photkey commented 2 years ago

Similar to Chrome vimium's shortcut navigation when pressing the F key, each program title is assigned a letter in front of it, so that when there are less than 26 open programs, you only need to press one letter to switch quickly and precisely.

Translated using deepl.com

monoblaine commented 2 years ago

Thanks for the suggestion. According to the AutoHotkey documentation, it's somewhat possible:

To underline one of the letters in a menu item's name, precede that letter with an ampersand (&). When the menu is displayed, such an item can be selected by pressing the corresponding key on the keyboard.

Which of the following would be the better approach?

or,

photkey commented 2 years ago

I have an idea that I think is good, I'll make an interface demo to show you.

photkey commented 2 years ago

组

1.multiple groups

Like Notepad, browser, explorer, etc., the same software if more than one window is opened, put it into this group, this group is further expandable.

2.Most used software

Some frequently used software, such as browser, Explorer and some other daily must-use software, assign them a fixed and non-repetitive letter. Of course, if the software opens more than one window is to be placed in the previous group. If you don't have multiple windows, put them here.

The advantage of assigning a fixed letter is that these software can naturally form muscle memory after a period of time due to the high frequency of use, and quickly switch with one key precision. Both improve the efficiency of fast switching and do not need to deliberately remember the shortcut keys. This inspiration is from: https://github.com/hui-Zz/RunAny

3.Less commonly used software

Infrequently used software, randomly assigned letters, but to exclude the letters already occupied by the previous 1, 2, if the letters are repeated, you have to press the letter more than once, and then press the carriage return, not efficient enough.

4.More procedures

In fact, this is not very useful, generally will not open so many windows at the same time, if you want to consider a little more thoughtful, let's say: really open a lot of windows, or the screen size is small, a menu can not be displayed in full.

In this case, there should be a configuration item that can set the maximum number of items that can be displayed in a menu, and when the value exceeds this, the extra items will be moved to more, if a layer can not be put, it can be similar to the folder recursion, continue to display the next more.

Configuration items

Alt+Tab

photkey commented 2 years ago

Please let me know if you are interested in implementing these features. There are still some details that can be optimized, and I will put together more detailed documentation. For now this is just a rather vague overview. For those who prefer keyboard-only operation, I think this will be the most efficient Alt-tab with the least number of keystrokes.

photkey commented 2 years ago

Which of the following would be the better approach? Letters are used, of course, because there are more of them and the letter keys are easier to press than the number keys. And, if it's the way I said above, the configuration item, this is not an issue to discuss at all, because it's completely possible to let the user customize the settings to the alphabetic or numeric keys he's used to.