fish_tab_title: fix tab title accidentally including window title

Also use the correct OSC number.

Note that this only works on few terminals (such as iTerm2).  Not sure
if it's worth for us to have this feature but I guess multiple users
have requested it.
This commit is contained in:
Johannes Altmanninger
2025-11-09 07:52:48 +01:00
parent 78f71971cb
commit 33bf808084
3 changed files with 14 additions and 17 deletions

View File

@@ -221,7 +221,7 @@ Optional Commands
- Set terminal window title (OSC 0). Used in :doc:`fish_title <cmds/fish_title>`.
* - ``\e]2; Pt \x07``
- ts
- Set terminal tab title (OSC 2). Used in :doc:`fish_tab_title <cmds/fish_tab_title>`.
- Set terminal tab title (OSC 1). Used in :doc:`fish_tab_title <cmds/fish_tab_title>`.
* - ``\e]7;file:// Pt / Pt \x07``
-
- Report working directory (OSC 7).