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

Allow Ctrl-Tab as an accelerator #152

Closed
kikecalpe opened this issue May 26, 2013 · 40 comments · Fixed by #1902
Closed

Allow Ctrl-Tab as an accelerator #152

kikecalpe opened this issue May 26, 2013 · 40 comments · Fixed by #1902

Comments

@kikecalpe
Copy link

Allow Ctrl-Tab as an accelerator http://guake.org/ticket/247
Reported by: frabjous Owned by: somebody
Priority: minor Milestone:
Component: guake Version: 0.4.1
Keywords: keyboard shortcuts Cc:
Description

Thanks for the great software!

I would like to assign Ctrl-Tab and Ctrl-Shift-Tab as my keyboard shortcuts for switching to Next Tab and Previous Tab respectively. However, they are not allowed when I go into Guake preferences, click on Ctrl-PageUp/PageDown and it shows choose new acceleator, it simple beeps at me if I press Ctrl-Tab.

Is this because the shell itself uses Ctrl-Tab?

@kikecalpe
Copy link
Author

Changed 4 months ago by kiz

vote +1 for this one, i've tried to use gconf-editor to assign Tab as shortcut, but it said invalid on guake properties.

Ctrl+Tab and Ctrl+Shift+Tab is normal way to switch tab in internet browser and many other applications.

Changed 4 months ago by pingou replying to kiz:

But guake is not a web browser and moving tabs in terminal is normally made with ctrl+page up/down rather than ctrl+tab

@aurelijusrozenas
Copy link

+1
is there any problems letting use ctrl+tab and ctrl+shift+tab keyboard shortcuts?

@gsemet
Copy link
Member

gsemet commented Feb 13, 2014

accepted

@gsemet gsemet added this to the 0.6.0 milestone Feb 13, 2014
@gsemet gsemet self-assigned this Feb 13, 2014
@gsemet gsemet modified the milestones: 0.5.0, 0.6.0 Feb 13, 2014
@gsemet gsemet removed their assignment Feb 13, 2014
@gsemet gsemet modified the milestones: 0.6.0, 0.5.0 Feb 15, 2014
@ZanyMonk
Copy link

ZanyMonk commented May 9, 2014

Is there something new about this feature request Stibbons ?

@gsemet gsemet modified the milestones: 0.5.1, 1.0.0 Sep 7, 2014
@thomporter
Copy link

👍 for ctrl+tab! 😉

@gsemet
Copy link
Member

gsemet commented Oct 9, 2014

I don't see why it shouldnt work if you don't have the window manager that preempt this hotkey ?

@thomporter
Copy link

For me at least, ctrl+tab works in every other program, so I don't think that's the issue (eg, terminator, sublime text, chrome, firefox, etc.) I'm on Ubuntu 14.04, x64.

@thomporter
Copy link

When I open Guake Prefs, and just use ctrl+tab/ctrl+shift+tab it moves the focus from item to item in the window. But when I try to change the shortcut key, and use ctrl+tab, nothing happens - no focus changes and nothing new shows up in the shortcut.

I found ~/.gconf/apps/guake/keybindings/local/%gconf.xml but changes to this file doesn't seem to matter. In fact, it seems like it's always a version behind what I just set in guake prefs... Is it just a backup? I did try changing "Page_Up" to "Tab" and then opened the gconf prefs again, it still said page-up, and it didn't make a difference in Guake itself. I tried >Tab< too, just for kicks.

@thomporter
Copy link

I tried gconf-editor and got farther, but only in that <Ctrl>Tab made guake prefs say "Invalid". After doing some research, I found this:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/162000

The relevant part is this:

"There are a couple of keys which are not candidates to be keyboard accelerators, independently of the modifiers. Tab is one of those keys, as it (with various combinations of modifiers) are reserved by gtk for its own use and the window manager.
Note that validity is decided by calling gtk_accelerator_valid, but the list of valid accelerator keys seems to be only in the source (which you can find at http://cvs.gnome.org/lxr/source/gtk+/gtk/gtkaccelgroup.c#790, in case you feel like it)

So I'm not sure you can support this on Ubuntu... 😢

@gsemet
Copy link
Member

gsemet commented Oct 9, 2014

indeed it doesn't work :(

I use Ctrl+PageUp/Down which is quite easy to use

@thomporter
Copy link

20+ years of using Ctrl+Tab is hard to erase. My fingers just do things now, I have little control over them! 😉

For now I'm going to use guake with one tab as my "garbage shell" (the shell I go to to run apt-get or other one-off commands.) Terminator will continue to be my main terminal where I work on projects... I do like the split-screen feature it offers, so it's not like I'm all that disappointed... And the instant access of guake from a hotkey is nice... makes it easy to get to for those one-offs. 😄

@gsemet
Copy link
Member

gsemet commented Oct 9, 2014

so, on your system Ctrl+Tab works on Terminator but not on Guake, right?

@thomporter
Copy link

Correct.​

@ZanyMonk
Copy link

I could see the same problem with Tilda, and I think it's a problem inherent in the use of GTK.

@alaricljs
Copy link

Just as an FYI since I've searched on this for another program... here's how pidgin does it in the conversation window to for tab switching

conv_keypress_common(PidginConversation gtkconv, GdkEventKey *event)
{
/
... */

if (event->state & GDK_CONTROL_MASK) {
    switch (event->keyval) {
                   /* ... */
        case GDK_Tab:
        case GDK_KP_Tab:
        case GDK_ISO_Left_Tab:
            if (event->state & GDK_SHIFT_MASK) {
                move_to_next_unread_tab(gtkconv, FALSE);
            } else {
                move_to_next_unread_tab(gtkconv, TRUE);
            }

            return TRUE;
            break;

@Kazanir
Copy link

Kazanir commented Sep 26, 2015

+1 for this.

@gsemet
Copy link
Member

gsemet commented Sep 26, 2015

should be handled but in the next rewrite of guake

@stianlagstad
Copy link

Can you say anything about when that will be? Loving Guake, but I keep using ctrl(+shift)+tab.

@feluxe
Copy link

feluxe commented Feb 20, 2016

I must say that the lack of this feature hits me quite hard, because all important tools that I use, like IDE, Editor, Browser and what not, let me use "Ctrl+[Shift]+tab" for tab switching.

@cfontes
Copy link

cfontes commented Oct 4, 2016

Man this is heart breaking...

I am using Guake an it is great, but the lack of the tab switch is so sad, as another user pointed it is so embedded in my brain that I find myself doing it several time a day.

Any updates on this?

@gsemet
Copy link
Member

gsemet commented Oct 4, 2016

I use Ctrl + page up/down which is more efficient. You could hack the code yourself to see how to make it work and submit a pull request :)

@cfontes
Copy link

cfontes commented Oct 4, 2016

Playing with gconf right now to see, and you are absolutely right I should!

Btw Thanks for guake... It's great!

@iliazlobin
Copy link
Contributor

it is very convenient feature. It would be nice if it implemented.

@gsemet gsemet modified the milestones: 3.0.0, 3.1.0 Jan 11, 2018
@austinjdean
Copy link

austinjdean commented Mar 2, 2018

In the meantime I've been using [Ctrl + `] and [Ctrl + ~] for next tab and previous tab respectively since it's right next door to Tab. Not exactly what I want, but a decent approximation. Ctrl + PgUp/PgDn always seemed clunky to me because I have a bad habit of only using left Ctrl.

@eshepelyuk
Copy link

Upvoting this, Ctrl Tab / Ctrl Shift Tab is unified way of navigation.

@gsemet
Copy link
Member

gsemet commented Mar 18, 2018

I cannot get this working, like if libkeybinder cannot register this shortcut. You’ll have to use the manual registration method described on the README and use the ‘guake -t’ command

@eshepelyuk
Copy link

This way only global keys can be registered, that's wrong, because other programs will be affected.

@gsemet
Copy link
Member

gsemet commented Mar 19, 2018

indeed. Maybe a bug in libkeyinder can be raised

@eshepelyuk
Copy link

eshepelyuk commented Mar 19, 2018

Are you aware of terminator project ?
Though it's based ot GTK - it allows to register Ctrl+Tab as a shortcut.

@gsemet gsemet modified the milestones: 3.1.0, 3.2.0 Apr 9, 2018
@BrendanJMurphy
Copy link

So what's holding this feature back? Does anyone know of any hurdles that are stopping this from being implemented? I'm new to python in general (coming from C++) but tentatively thinking of contributing to/playing with guake as a learning ground.

I love the program but it needs this and the ability to text search via ctrl + shift + f or something.

If anyone can knowledge dump on any leads into the src I'd greatly appreciate it :)

@gsemet
Copy link
Member

gsemet commented Feb 7, 2019

hi. Text search is on another issue. But feel free to have a look at the code, it's python. But I guess that issue with Ctrl-tab comes from libkeybinder and its integration on ubuntu.

So, yes, PR welcomed!

@Jont828
Copy link

Jont828 commented Oct 4, 2019

Still waiting on this feature, I managed to get Ctrl+Tab as a keybinding one point but after that the keybinding stopped working.

@Sajam
Copy link

Sajam commented Jan 9, 2020

+1

5 similar comments
@jkatnik
Copy link

jkatnik commented Feb 10, 2020

+1

@themilkrat
Copy link

+1

@bbtdev
Copy link

bbtdev commented May 4, 2020

+1

@huntingphi
Copy link

+1

@andersaamodt
Copy link

+1

@codyit
Copy link

codyit commented Dec 26, 2020

Ran into this and I worked around by remapping <Super>L to <Super><Power> in Gnome. That leaves me with <Super>(<Shift>)(I|J|K|L) vacant so I made it work just like Vim. Pretty happy about it until this is done.

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

Successfully merging a pull request may close this issue.