Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatic title update when changing focused directory #794

Closed
evanescente-ondine opened this issue Nov 13, 2023 · 0 comments · Fixed by #798
Closed

automatic title update when changing focused directory #794

evanescente-ondine opened this issue Nov 13, 2023 · 0 comments · Fixed by #798
Labels
enhancement New feature or request

Comments

@evanescente-ondine
Copy link

Hi, I have a request for the possibility of updating the title automatically, whenever the focused directory (not "working" directory) change, which include all uses of ":focus" or when switching from one panel to another (assuming different focuses). Dystroy came up with this code, using escape sequences, but it's both limited (no multi-panel support) and according himself, of questionable reliability depending on terminal emulators.

{
    invocation: title
    external: ["echo", "-en", "\\033]0;{file-name}\\a"]
    leave_broot: false
}
{
    invocation: focus_and_title
    key: enter
    cmd: ":focus;:title"
    apply_to: directory
    leave_broot: false
}

So a hard-wired solution would be much appreciated, for I'm certain other people have a heavy use of tiling window manager and don't find the constant "foot" or "xterm" or "~" very helpful.
Thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant