-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Bug: it's very difficult to switch tabs on my keyboard layout #64
Comments
This is a great point, I forget about how the order is different in other countries/languages, even the UK I think. Unfortunately, there's no quick fix. Ctrl+NUM and Alt+NUM are not supported in the terminal. What if the config file there was a setting like: shiftnumbers = "!@#$%^&*()" So you can configure that by holding down Shift and pressing numbers 1 through 0. It would be default set to US layout, but anyone could change it. How does that sound? |
That would work, and surely would solve my problem but I honestly have to say it feels a little cumbersome. Maybe you could investigate the possibility to infer those keys from the keyboard layout itself. This package for examble seems able to do it: https://github.com/atom/keyboard-layout The package is for node, but the implementation is actually C. It could provide some inspiration. Maybe. Also, I think a worthy enhancement could be to add the ability to customize all the shortcuts in the configuration file in the same fashion as the recent theming. All of this does not solve a bigger underlying problem. The way I understand it, there is no actual way to go to any tab beyond the 9th tab (except if it's the last one), but I can create as many as I crave by abusing A possible solution (that would make the
Obviously, those are only my thoughts/opinions. |
Thanks for the link. That solution looks difficult to implement on first glance, and seemingly relies on C libraries, different for each OS. Also Amfora supports OSes that doesn't cover. For now I will implement the solution I mentioned above.
Yes, possibly in the future. For now I will leave it as it is.
Good catch, damn. I will add a shortcut to fix this. Unfortunately the ones you suggested are not available. For example, on the Guake terminal, they will just output |
I have implemented the Edit: I chose those characters because they are on the top row on US and UK keyboard layouts. But that still wouldn't work for your Italian keyboard. I could add another config value for this, possibly. |
For now I've added F1 and F2 for tab navigation, as they are keyboard agnostic. Commit: 5cb629f I am going to close this issue, but feel free to let me know if you have a different keybinding that would work better. Thanks for your interest in Amfora! |
I was able to test your fixes today. Amfora works flawlessly now, thanks! |
Hello @makeworld-the-better-one
I was trying the tab switch feature with 3 and 24 tabs but only number 8 and number 2 was able to being selected.
In the source here https://github.com/makeworld-the-better-one/amfora/blob/2d99db371d835ef0a789748c66fcb34049463180/display/display.go#L365-L396
I see that you hardcoded the symbol results of a SHIFT-NUMBER combo, but that only works for some keyboard layout. Mine (an italian Macbook keyboard) is
Unfortunately, this make the tabs practically unusable without looking at the source (or a lot of trial and error).
The text was updated successfully, but these errors were encountered: