-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Set file name as terminal title #2783
Copy link
Copy link
Open
Labels
feature-requestNew feature or requestNew feature or request
Description
Currently bat does not change the terminal title. Showing the file name in the terminal can be useful for navigating between terminal tabs.
For example, the following script sets the terminal title to the file name before displaying it with bat:
#!/bin/bash
echo -ne "\033]0;$1\007"
bat $1The actual implementation inside bat should be more sophisticated by setting the title appropriately when viewing multiple files, resetting the title on exit etc.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature-requestNew feature or requestNew feature or request