RasmusLindroth / tut

TUI for Mastodon with vim inspired keys
https://tut.anv.nu
MIT License
449 stars 29 forks source link

Feature request: set window title #158

Closed daveriedstra closed 2 years ago

daveriedstra commented 2 years ago

This is definitely a nice-to-have, but is it possible for tut to set the terminal window title, like nnn or nvim (with set title)?

Here are three terminals in a tabbed layout, from left to right it's tut, nnn, and nvim:

Three terminal tabs titled "bash" (tut), "~/Documents" (nnn), and "triage.md" (nvim)

Thanks for tut!

RasmusLindroth commented 2 years ago

Oh, I thought that the terminal emulator would set it for you, mine does. A fix for this will be included in the next release, thank you for the bug report :)

daveriedstra commented 2 years ago

Oh interesting. What terminal are you using? I'm using kitty in that screenshot, but I just tested gnome-terminal, rxvt, and foot and they're all the same.

RasmusLindroth commented 2 years ago

My mistake, it's not the terminal but zsh shell that updates the title automatically. If I run bash in my terminal I get the same result as you

RasmusLindroth commented 2 years ago

It's now shipped with the latest release

Ashdemai commented 2 years ago

My man Rasmus with the quick fixes!

daveriedstra commented 2 years ago

Amazing, thank you Rasmus! (Also, a point in favour of zsh...)