gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.36k stars 293 forks source link

Possible ways to identifying different windows #2130

Open kxxdhdn opened 1 year ago

kxxdhdn commented 1 year ago

I just transferred from Mac to Ubuntu, and I chose Tilix as the equivalent of iTerm2. Indeed, Tilix works perfectly in most aspects.

I should get used to using split terminals instead of separated windows as I did on Mac. By saying this, I recognize the "Window - Session - Terminal" hierarchy in terms of the Tilix structure. However, I still need to open different windows in different workspaces or monitors. With iTerm2, it attributes automatically a number to each window, whereas Tilix only has activeTerminalTitle (Terminal scope) and sessionName (Session scope) without certain windowName (Window scope; appName does not work since it is the same for all windows). Now, my config is as follows:

Appearance - Application title: ${appName} - §${sessionNumber} - ${directory} Appearance - Default session name: #${terminalNumber} - ${activeTerminalTitle} Profiles - General - Terminal title: ${title}

In practice, it is not bad, but still possible to have the same name for two windows. I am thinking of adding variables such as windowNumber and windowCount. Should I modify a file somewhere or it can be done with the Custom Links? Or even, I did not understand well your idea of using this terminal emulator?

Thank you very much for creating and maintaining this awsome tool and thanks in advance for answering my question.

kxxdhdn commented 1 year ago

After some exploration, I find a quite good solution: applying a ZSH/oh-my-zsh theme that supports terminal session counts (i.e. "jonathan" is pretty nice which accumulatively counts sessions in windows, tabs, OS windows across all terminal emulators. As I tested, it works simultaneously with Gnome term, Tilix and kitty. ). In this case, it turns out to be nothing to do with the application title or table/session names. I am cool with this feature request now. Feel free to close the issue and thanks for your attention.