Make window / tab titles aware of job control #3961
Unanswered
clarkema
asked this question in
Feature Requests, Ideas
Replies: 2 comments 4 replies
-
I can reproduce this on Bash and Zsh but not Fish. Running on Linux. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just gave this a whirl on one of my test machines:
Using vanilla Vim, I don't see the title change at all. Using Neovim, I see the title change when editing a file, but it returns properly I don't have a bash or fish install to use (this build is locked into a limited set of packages for some other work I do on it). I can try and test bash on my other machine at home tonight. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This observation is based on macOS 15.2 with zsh. I imagine it would be the same on other platforms.
The name of the running command in the title is lost if the command is suspended and later resumed using the shell's job control features. For example:
vim foo.txt
vim foo.txt
^z
fg
fg
iTerm seems to do the right thing here (although ghostty is better in that it shows the full command; i.e.,
vim foo.txt
in the title, whereas iTerm just showsvim
.) I haven't inspected its shell integration, but maybe it's possible to include a special case to check whether the command to be run isfg
and then look up the name of process to be resumed usingjobs
?Beta Was this translation helpful? Give feedback.
All reactions