You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OSC-0 escape sequence updates a terminal's title bar to a given string.
I have the following in my .zshrc:
preexec () {
print -Pn "\e]0;$1 [%~]\a"
}
When I execute any command (e.g.: neovim hello.txt), this emits an escape sequence that updates the terminal title-bar to neovim hello.txt.
When I run zk edit --interactive, my terminal's title-bar is updated to zk 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 reads neovim 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 for edit --interactive ….
The text was updated successfully, but these errors were encountered:
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 …
.The text was updated successfully, but these errors were encountered: