-
-
Notifications
You must be signed in to change notification settings - Fork 103
Show tab numbers with shortcut #849
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
base: master
Are you sure you want to change the base?
Conversation
|
Marking ready for review but if anyone can suggest how emblems can be applied to the tabs to indicate the number more elegantly I would be grateful. |
|
Would it be possible to show tool tips for all of the tabs with the shortcut? Also, you say we can't use |
<Alt>0
I have produced an implementation of this behaviour.
Do you mean show each tab's shortcut window permanently until tab numbers removed? Not sure this is possible - maybe use the |
|
Cannot use the "show_help" signal for tab tooltips because tabpages are not widgets but sealed objects. |
Mostly trying to think of a way to display the emblems without having to modify the tab widgets directly. I thought maybe having the shortcut emblem in the tooltip and having it display while holding might be a good way to only show the shortcuts in a temporary fashion. If it doesn't, it doesn't work. |
I see. The problem is the tabs are not widgets (or at least not accessible ones) so we can only do what the API allows 😞 If we could generate a numeric emblem icon then it could be assigned to the existing tab property. I'll see how numeric emblems are added to dock items to see whether it can be adopted. |
|
Looks like the badges in the dock are styled labels not icons. Gtk3 has |
Need to get input from a design point of view before merging
|
@zeebok I have dismissed your review to ensure this is not prematurely merged - but it is appreciated as always. @danirabbit I am doubtful whether the appearance of this PR is up to elementary standards - do you have any better solution? Or is the issue sufficiently worthwhile to fix anyway? |
Fixes #655
We can't just show tab numbers immediatley when
<Alt>is pressed as this key is also used for e.g.<Alt>BackSpace>. The solution adopted is to use a "long-press" on the<Alt>key. A previous solution was use the unused<Alt>+0combination to show the tab numbers immediately. This is retained for now but can be removed if considered superfluous.The tab numbers are removed when a key is released, another key is pressed or focus lost.
It would be better to used an icon to show the numbers as that would be independent of the label and there is a suitable tabpage property, but there is no quick way to create an icon from a number (there are no builtin number icons available and we cannot use an emblem).
So the tab number is prefixed to the tab label for now.