zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.85k stars 3.15k forks source link

Support $PROMPT_COMMAND in terminal tab title #19996

Open htor opened 1 month ago

htor commented 1 month ago

Check for existing issues

Describe the feature

It would be nice to have an option to display the value of PROMPT_COMMAND in the tab title like, similar to other terminal emulators. Following is an example screenshot from Terminal.app using PROMPT_COMMAND='printf "\e]0;%s\a" "$USER@$(hostname)"':

Screenshot 2024-10-31 at 00 18 36

Its settings allow for a custom title using the ANSI escape sequence:

Screenshot 2024-10-31 at 00 20 31

I know Zed supports displaying PROMPT_COMMAND with terminal.toolbar.show = true in settings by dragging terminal tabs into the editor. However, this is unpractical and takes up unecessary space. It would be nicer to have the title in the tabs.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

notpeter commented 2 weeks ago

See also: