feat: add window index hotkeys#4591
Open
danieldegrasse wants to merge 3 commits intolwouis:masterfrom
Open
Conversation
e0ede1a to
7bb01ae
Compare
Owner
Author
Owner
|
Thank you for your message Indeed, I think hardcoding 0-9 would be good enhancement. Customization could be discuss later, if people ask for it. So, to recap:
What do you think? Thank you |
7bb01ae to
908a1db
Compare
Refactor setNumber function to handle multiple glyph types, since other SF font symbols follow the same offset pattern (IE numbers in square boxes) Signed-off-by: Daniel DeGrasse <daniel@degrasse.com>
Add glyphs for square boxes (filled and unfilled) with numbers to SF-Pro-Text font used by alt-tab. These glyphs were copied from the base font using fontforge. Signed-off-by: Daniel DeGrasse <daniel@degrasse.com>
Add window index hotkeys. These hotkeys are mapped to 0-9 by default, and allow the user to jump to a window in the alttab list by its index. This is intended as a faster alternative to selecting the window with a mouse. Signed-off-by: Daniel DeGrasse <daniel@degrasse.com>
Author
908a1db to
382ff1d
Compare
Owner
|
I think we need some idea and mocking here for the UI. The numbers should be clear that they are shortcuts, especially when the user is using multiple Spaces and those numbers are already showing. I think this could be brainstormed/mocked using ChaptGPT for example. To get a few candidate UIs before doing implementation Regarding shortcut conflicts, i've added unit-tests, so please add a few for this new scenario 👍 |
|
+1 for this feature.. I would consider adding the numbers on the left without any squares or circles (as Daniel had it) |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Add window index hotkeys. These hotkeys are mapped to 0-9 by default,
and allow the user to jump to a window in the alttab list by its index.
This is intended as a faster alternative to selecting the window with a
mouse.
Examples of what this looks like:
The square boxes with numbers indicate the shortcut key that will jump to the window. For example, pressing "4" while alttab is in focus would switch focus to the terminal window, or "1" would jump to the alttab preferences. These keys can be remapped, and up to 10 jump keys (mapped by default to number keys 1-0) are supported.
If this feature is too intrusive to enable by default, I'm happy to make it optional- currently it is enabled by default