this post was submitted on 30 Jul 2024
15 points (100.0% liked)

Linux

47233 readers
773 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'm new to Linux; I fled from Windows in the wake of 10-11 ever-accelerating stream of bullshit.

Anyway, I have major muscle memory for MRU window and tab switching with alt-tab and ctrl-tab. Edit for clarity: I also want to be able to navigate to the Nth most recent tab by holding Ctrl and pressing Tab N times, then releasing Ctrl. I use it all the time to switch windows, switch browser tabs, and switch IDE tabs. In Windows, I could also switch Terminal tabs in MRU order, and I miss this in Linux. My distro (Mint) comes with gnome-terminal, which as far as I can tell doesn't expose MRU switching as an option.

Is there an alternative terminal that does support this, ideally with ctrl-tab? Alternatively, if you use MRU switching in other contexts but not in your terminal, what do you use instead?

UPDATE

After installing many different terminals and poring through documentation of widely varying quality, I have found at least two terminal emulators that just do what I want, out of the box: Konsole and QTerminal. I'll dive deeper into the relative merits of these two for now. If you know of another terminal that does what I described, or any crucial info about either Konsole or QTerminal, please let me know!

all 18 comments
sorted by: hot top controversial new old
[–] ouch@lemmy.world 10 points 1 month ago (1 children)

I guess MRU means Most Recently Used.

Please include explanations for abbreviations you mention.

[–] AdamBomb@lemmy.sdf.org 1 points 1 month ago

MRU means Most Recently Used. Sorry if that wasn't clear.

[–] cizra@lemm.ee 5 points 1 month ago (1 children)
[–] AdamBomb@lemmy.sdf.org 1 points 1 month ago (1 children)

Thanks, I've heard of tmux but have never used it before. I took a quick look at the Getting Started guide, and it sounds like I could get behavior like what I want by e.g. creating two windows each with one full-window pane and toggle back and forth between windows? I will definitely look into this further.

[–] cizra@lemm.ee 3 points 1 month ago (2 children)

Yes, something like that.

You'll get other fun features for free, like

  • the ability to reattach the session over SSH, after starting it locally
  • immunity to Xorg / Wayland compositor / terminal emulator crashing
  • ability to comfily use non-tabbed terminal emulators like Alacritty. At least I think it's not tabbed...
[–] AdamBomb@lemmy.sdf.org 1 points 1 month ago (1 children)

OK, this sounds close to what I want, but I left one part unsaid: my muscle memory is such that if I want to visit the 2nd most recent tab, I can hold Ctrl, press Tab twice, then release Ctrl. It doesn't sound like I can accomplish this with tmux key bindings, or can I?

[–] cizra@lemm.ee 2 points 1 month ago

I dunno, but it sounds like you'd end up back in the original, rather :|

[–] tmpod@lemmy.pt 4 points 1 month ago (1 children)

Kitty has been my daily driver for quite some time now, I really like it for its rich feature set and extensive configuration.

You can use its goto_tab action with 0 and negative values to get MRU behaviour. See more here: https://sw.kovidgoyal.net/kitty/actions/#action-goto_tab

[–] AdamBomb@lemmy.sdf.org 1 points 1 month ago (1 children)

OK, this sounds close to what I want, but I left one part unsaid: my muscle memory is such that if I want to visit the 2nd most recent tab, I can hold Ctrl, press Tab twice, then release Ctrl. It doesn't sound like I can accomplish this with Kitty key bindings, or can I?

[–] tmpod@lemmy.pt 1 points 1 month ago (1 children)

Just tested* and it doesn't seem to work, no. I don't know if it's doable though, it may be.

  • Even though I'm a heavy user of that behaviour in Firefox (which now has to be explicitly turned on :/), I've gotten used to just use the left and right arrows (+kitty mod bind) to move around tabs.
[–] AdamBomb@lemmy.sdf.org 1 points 1 month ago (1 children)

Thanks, I'm open to learning alternative workflows, so thanks for adding that info.

[–] tmpod@lemmy.pt 1 points 1 month ago

Glad to hear! Good luck :)

[–] joshcodes@programming.dev 1 points 1 month ago (1 children)

I've read your update but try Terminator. You use alt + arrow keys to navigate multiple on screen terminals, create new ones with ctrl+e/o and its my favourite. I highly recommend giving it a try!

[–] AdamBomb@lemmy.sdf.org 1 points 1 month ago (1 children)

Thanks, I did try Terminator, but it didn't seem to have the kind of C-Tab MRU tab switching I was after. BTW, it looks like the two I did find also support multi-pane terminals with arrow key navigation. Thanks for taking the time to reply!

[–] joshcodes@programming.dev 1 points 1 month ago

All goof, enjoy your alternatives!

[–] Zavorra@lemmy.world 1 points 1 month ago (1 children)

Not sure about the specific requirement but here you can find a list of "modern" terminal emulators to look at

Z

[–] AdamBomb@lemmy.sdf.org 2 points 1 month ago

Thanks for the link! There are lots of lists of terminals out there, but it's really hard for me to judge the quality of the lists.