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

Keyboard-only access #86

Open
1 of 4 tasks
o-sdn-o opened this issue Jul 14, 2021 · 6 comments
Open
1 of 4 tasks

Keyboard-only access #86

o-sdn-o opened this issue Jul 14, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request keyboard UX User Experience
Milestone

Comments

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Jul 14, 2021

Make it possible to use only keyboard.

  • Ctrl + PgUp/PgDn switch between windows
  • Alt + Z to call sidebar menu
  • Alt + Arrows/Ctrl + Arrows to access window menu
  • ...

All operations can be done with either the mouse or the keyboard.

x-link: Keyboard shortcut escape sequence #315

Resources

@tomek-szczesny
Copy link

Right Alt + Z is used on Polish keyboard to write "ż", and I imagine many national keyboard layouts work similarly. How about using Super key ("windows logo") instead? It's traditionally not used in terminal applications or national keyboards at all, and many DEs use them to handle their functionalities. All i3 shortcuts are based on Super key, for example (or Alt key, if the user chooses so).
That would, of course, interfere with DE in which vtm is run...

@o-sdn-o
Copy link
Collaborator Author

o-sdn-o commented May 20, 2022

Ok, instead of Alt+Z, we will need something else. The whole variety of shortcuts is limited to those that the terminal forwards inside the terminal to the application.

We can set any combination that can be displayed in $> cat when fired.

@tomek-szczesny
Copy link

Well, Windows key doesn't work in terminal window, and in tty4 it's ignored (Super+z produces "z").
Left Alt + Z works fine though.
I wonder if there is any convention for international keyboards, about which combinations are commonly used for diacritics.

@o-sdn-o
Copy link
Collaborator Author

o-sdn-o commented May 20, 2022

Perhaps this is all individually for each writing.

@o-sdn-o
Copy link
Collaborator Author

o-sdn-o commented May 20, 2022

I came up with the following thing.

vtm can accept entire strings (which sent by block not key by key) as a shortcut and interpret them as commands. To do this, the user must configure a hotkey in his terminal to generate such a string.

For example, now for toggling a debug overlay, it is enough to send the whole line "🐞" (several bytes in UTF-8) to vtm (same action for Left+Right triple click on main menu). You can assign any combination to generate this string for the overlay toggling.

@tomek-szczesny
Copy link

Universal and configurable approach is always welcome, I think. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request keyboard UX User Experience
Projects
None yet
Development

No branches or pull requests

2 participants