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

Remove Editor top bar showing file path #23607

Open
SantiagoPendon opened this issue Jan 31, 2025 · 4 comments
Open

Remove Editor top bar showing file path #23607

SantiagoPendon opened this issue Jan 31, 2025 · 4 comments

Comments

@SantiagoPendon
Copy link

Hi all, how can I remove this:

Image

Thanks.

@athompson673
Copy link
Contributor

There is no configuration option to change the filename display.

If you would like to edit it in yourself either for your own install, or to create a PR, the label is located at: spyder.plugins.editor.widgets.editorstack.editorstack.EditorStack.fname_label

@dalthviz
Copy link
Member

dalthviz commented Feb 3, 2025

Hi @SantiagoPendon thank you for the feedback! As @athompson673 mentions (thanks for giving this a check by the way!) Spyder doesn't have a supported way to remove/hide/change that element from the GUI. However, if you are using latest Spyder 6 (6.0.3), a way to hide it is by running from the Spyder internal console something like:

spy.window.editor.get_current_editorstack().top_toolbar.hide()

And to show it again you can run something like:

spy.window.editor.get_current_editorstack().top_toolbar.show()

Image

Thinking about this, seems to me that such a request (hide/remove the file path) has come around a couple of times 🤔 Maybe we should add some preference for it? What do you think @spyder-ide/core-developers ?

@dalthviz dalthviz self-assigned this Feb 3, 2025
@dalthviz dalthviz changed the title remove Path bar Remove Editor top bar showing file path Feb 3, 2025
@ccordoba12
Copy link
Member

Maybe we should add some preference for it? What do you think @spyder-ide/core-developers ?

I think it's a good idea.

@ccordoba12 ccordoba12 modified the milestones: wishlist, v6.x.x Feb 3, 2025
@SantiagoPendon
Copy link
Author

Thanks to all for the interest and quick responses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants