After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709109 - Tab opening/closing enhancement
Tab opening/closing enhancement
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
3.10.x
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on: 774710
Blocks:
 
 
Reported: 2013-09-30 15:25 UTC by Egmont Koblinger
Modified: 2019-11-20 22:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
New tab opens adjacent to the current (10.84 KB, patch)
2013-10-11 23:10 UTC, Egmont Koblinger
none Details | Review
New tab position (12.58 KB, patch)
2019-10-31 00:07 UTC, Egmont Koblinger
none Details | Review

Description Egmont Koblinger 2013-09-30 15:25:45 UTC
I'd like to requet two convenience features (with respective config options):

When opening a new tab, it opens next to the current one.

When closing a tab, the most recently used becomes active.
Comment 1 Egmont Koblinger 2013-10-11 23:10:50 UTC
Created attachment 257063 [details] [review]
New tab opens adjacent to the current

This implements one of the two proposed features.
Comment 2 Christian Persch 2014-02-18 20:31:21 UTC
Hmm. I remember we've been back and forth on this a few times in epiphany; what does it currently do, same as requested here?
Comment 3 Egmont Koblinger 2014-02-18 21:03:31 UTC
epiphany-3.6.1 (shipped by ubuntu 13.10) opens new tabs on the right (like g-t), focuses the most recently used when closing one (unlike g-t), and I can't find a config option to change it.
Comment 4 Christian Persch 2015-02-10 20:29:13 UTC
Comment on attachment 257063 [details] [review]
New tab opens adjacent to the current

Can you remove the parts adding the setting to the prefs UI ? I'd like to keep this dconf only (for now at least).

+#define TERMINAL_SETTING_TAB_OPENS_ADJACENT             "tab-opens-adjacent"

Naming nit: ..._KEY. 

Maybe rename the pref, "new-tab-position" with enum values "right" and "end" ?
Comment 5 Egmont Koblinger 2015-02-10 22:19:38 UTC
(In reply to Christian Persch from comment #4)

> I'd like to keep this dconf only (for now at least).

In that case probably I'd be the only user of this feature - then it's just not worth the trouble :)  IMO let's either make it a discoverable feature, or just drop the idea.
Comment 6 Ivan Kozik 2015-11-11 14:50:14 UTC
Not having 'open tab next to current' is driving me pretty nutty after getting used to SecureCRT's tab-opening behavior.  I'll probably recompile gnome-terminal just for this little feature.  Hope this makes it in, discoverable or not.
Comment 7 Christian Persch 2015-12-15 20:10:34 UTC
(In reply to Egmont Koblinger from comment #5)
> (In reply to Christian Persch from comment #4)
> 
> > I'd like to keep this dconf only (for now at least).
> 
> In that case probably I'd be the only user of this feature - then it's just
> not worth the trouble :)  IMO let's either make it a discoverable feature,
> or just drop the idea.

Alright, ok to add UI too :-)
Comment 8 Andrey Gursky 2016-01-09 21:31:43 UTC
(In reply to Egmont Koblinger from comment #5)
> In that case probably I'd be the only user of this feature - then it's just
> not worth the trouble :)  IMO let's either make it a discoverable feature,
> or just drop the idea.

Egmont, you're definitively not alone with such actually conventional feature! Thanks for the patch. I wonder whether it would be easy to backport it to mate-terminal.
Comment 9 Debarshi Ray 2016-05-16 12:03:06 UTC
Ping. Is there anything left to do apart from those mentioned in comment 4?
Comment 10 Christian Persch 2016-05-16 13:39:43 UTC
Since I'm ok with adding the UI, it only needs to be updated to master, and the nits from comment 4 fixed.
Comment 11 Egmont Koblinger 2019-10-31 00:07:07 UTC
Created attachment 374244 [details] [review]
New tab position

Updated version.

Switched from boolean/checkbox to enum/combobox, for future compatibility with other crazy values, as well as a more consistent look of the General prefs panel.

The name and UI labels are not necessarily final. In particular, I'm thinking of changing from "new_tab_position" to "new_tab_placement", especially that we have a "tab_position" (for the entire tab bar). "Position" perhaps suggests that it's always there, whereas "placement" is a one-time action, does this make sense?
Comment 12 Christian Persch 2019-11-05 23:55:41 UTC
The patch looks fine, except perhaps for the terminology used. "Last" could be misunderstood to mean the position the most-recently opened tab was inserted in, and 'next' without a reference to 'next to this one' isn't too clear either. Maybe calling these 'end' for 'at the end', and 'right' (or 'after') for 'to the right of/after the current tab' would be clearer?
Comment 13 Christian Persch 2019-11-05 23:59:44 UTC
That concerns just the presentation in the UI; the pref values are ok. Although I guess if we change the names in the UI before this is committed, we can just change the pref values too. Or commit as-is and if it turns out to be confusing, just change the UI names.
Comment 14 Egmont Koblinger 2019-11-06 14:41:05 UTC
Yup I agree that the wording is quite bad, and I haven't even though of:

> "Last" could be misunderstood to [...] the most-recently opened

which is indeed also true.

We should come up with something better. Or look around in existing software (e.g. firefox's tab mix plus).

> we can just change the pref values too

I'm on this side: prefer to have the same internal terminology (even if they might diverge later).

I'm not in constructive mood right now to propose anything better :)
Comment 15 Christian Persch 2019-11-06 17:10:21 UTC
Ok, let's go with the patch as-is and amend later as needed.
Comment 16 Christian Persch 2019-11-20 22:13:45 UTC
Pushed to master. Thanks!