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

Set window title #1553

Closed
bigH opened this issue Sep 22, 2022 · 1 comment
Closed

Set window title #1553

bigH opened this issue Sep 22, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@bigH
Copy link

bigH commented Sep 22, 2022

Is your feature request related to a problem? Please describe.
I'd like to be able to customize Neovide's title bar to include the pwd.

Describe the solution you'd like
Ideally, I'd expect that vimrc or equivalent can simply set:

let g:neovide_window_title = $PWD

Furthermore, it would also be nice to change the title while Neovide is running. This could be useful to indicate that :terminals are waiting to complete some command or any number of things.

Describe alternatives you've considered
The only alternative I know is to use a terminal emulator instead.

Additional context
N/A

@bigH bigH added the enhancement New feature or request label Sep 22, 2022
@MultisampledNight
Copy link
Contributor

Thanks for reporting!

This is already possible, see the title and titlestring options. They both are respected by Neovide and can also be changed at runtime.

Though for the terminal, I'm not sure how this would go. Maybe the shell can set the current working directory and NeoVim just propagates it upwards, but this is either way something that's outside of Neovide's play area.

raggi added a commit to raggi/neovide that referenced this issue Nov 12, 2023
A new setting `neovide_default_title` is introduced with a default value
of "Neovide" that is used when Neovim sends and empty title. Users can
restore prior behavior of setting empty titles by setting this value to
the empty string.

This setting improves two user scenarios:

- Users who utilize assistive technologies will now always observe a
  window title by default.
- Users of window managers that rely on window titles will have improved
  integration.

The precipitating use case was using Komorebi, a tiling window manager
for Windows. Komorebi uses an empty window title as a strong signal that
the software is a hidden window, as this is a common convention on the
platform.

Updates neovide#1553
raggi added a commit to raggi/neovide that referenced this issue Nov 12, 2023
A new setting `neovide_default_title` is introduced with a default value
of "Neovide" that is used when Neovim sends and empty title. Users can
restore prior behavior of setting empty titles by setting this value to
the empty string.

This setting improves two user scenarios:

- Users who utilize assistive technologies will now always observe a
  window title by default.
- Users of window managers that rely on window titles will have improved
  integration.

The precipitating use case was using Komorebi, a tiling window manager
for Windows. Komorebi uses an empty window title as a strong signal that
the software is a hidden window, as this is a common convention on the
platform.

Updates neovide#1553
raggi added a commit to raggi/neovide that referenced this issue Nov 13, 2023
If Neovim attempts to send an empty window title, it is now set to
Neovide instead, rather than the empty string.

This improves two user scenarios:

- Users who utilize assistive technologies will now always observe a
  window title by default.
- Users of window managers that rely on window titles will have improved
  integration.

The precipitating use case was using Komorebi, a tiling window manager
for Windows. Komorebi uses an empty window title as a strong signal that
the software is a hidden window, as this is a common convention on the
platform.

Updates neovide#1553
Kethku pushed a commit that referenced this issue Nov 13, 2023
If Neovim attempts to send an empty window title, it is now set to
Neovide instead, rather than the empty string.

This improves two user scenarios:

- Users who utilize assistive technologies will now always observe a
  window title by default.
- Users of window managers that rely on window titles will have improved
  integration.

The precipitating use case was using Komorebi, a tiling window manager
for Windows. Komorebi uses an empty window title as a strong signal that
the software is a hidden window, as this is a common convention on the
platform.

Updates #1553
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

No branches or pull requests

3 participants