Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request: keyboard hints for window selection #59

Open
dicktyr opened this issue May 21, 2015 · 3 comments
Open

request: keyboard hints for window selection #59

dicktyr opened this issue May 21, 2015 · 3 comments

Comments

@dicktyr
Copy link

dicktyr commented May 21, 2015

please consider implementing keyboard hints
to quickly and directly select a given window
(instead of navigating to it with arrow keys, &c.)

https://en.wikipedia.org/wiki/Vimperator#Hint_mode

@4drift
Copy link

4drift commented Jan 9, 2016

I can navigate with h,j,k,l and space for selection... I've installed it twice and always have been able to.

@dicktyr
Copy link
Author

dicktyr commented Jan 9, 2016

h,j,k,l just do the same as arrow keys

keyboard hints enable direct selection (see link above)
ideally using characters for labels instead of numbers
ordered by ease of typing rather than alphabetically

@dreamcat4
Copy link

I think this is a good feature, and worthwhile implementing. However there are 3 challenges.

  1. First of the challenges is that skippy holds the windows as a dynamic linked list. So there is no direct index to reference each window. Instead you have to loop through / step through each element and count them one by one.

This should not be very difficult. However it's necessary to update / redo the listing if a program closes, or new program appears. There is already some existing update / polling mechanism for handling that situation. So the re-counting must be added somewhere in there, and in the correct place before a re-draw of the screen is due.

  1. Another challenge is to somehow display a number in each window preview. This requires adding some new drawing routine.

  2. Then finally, there is the question about what to do if there are more than 10 windows open. Because more than 10 window previews is the point where you run out of numbers on the standard keyboard from 0-9. Perhaps an 'obvious' solution would be to then spill over into using function keys. Or modifier keys + a number (such as Shift+7, for the 17th window).

Then we still need to make sure, that the text being drawn inside (or next to) each window preview is clearly legible / easy to read.

Overall, that is a fair chunk of work needed, to implement this feature correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants