Emit OSC 0 escape sequence when executing another command #498
WhyNotHugo
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The OSC-0 escape sequence updates a terminal's title bar to a given string.
I have the following in my
.zshrc
:When I execute any command (e.g.:
neovim hello.txt
), this emits an escape sequence that updates the terminal title-bar toneovim hello.txt
.When I run
zk edit --interactive
, my terminal's title-bar is updated tozk edit --interactive
. When I select an entry in zk, zk executes neovim, but my terminal's title-bar remains the same.This is a feature request for
zk
to emit an OSC-0 escape sequence before exec'ing into another command, so that the terminal title is updated to the executed command.As an optional cherry on top, the title of the note could be appended, so instead of
neovim kdux.md
, the title-bar readsneovim kdux.md [title of note]
.Context
When I have multiple windows with multiple notes open, the titles for all these is simply
zk e
(e
is my alias foredit --interactive …
.Beta Was this translation helpful? Give feedback.
All reactions