Is there a "good" way to rename the terminal buffer in neovim?
I know that renaming is possible with the :file
command, and that works fine for current session.
The problem with this approach is that it breaks :mksession
. If you change the terminal window name with :file
and save the session, upon restore it will no longer create a terminal window, but a regular file buffer instead.
I want to avoid this.