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

An option to control weather change root_folder when root_folder be clicked. #2699

Open
alex-courtis opened this issue Mar 9, 2024 Discussed in #2697 · 1 comment
Open
Labels
feature request PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated QOL Quality Of Life Improvement

Comments

@alex-courtis
Copy link
Member

Discussed in #2697

Originally posted by Sologala March 8, 2024
Is there any configrationes to disable the response of root_folder's clicking?

I just set renderer.root_folder_label = false to unrender the root_folder in tree view.
image

But that is not what i want. I want that that tree show the current root_folder but it will not respond to any operation.

@alex-courtis alex-courtis added feature request PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated QOL Quality Of Life Improvement labels Mar 9, 2024
@alex-courtis
Copy link
Member Author

alex-courtis commented Mar 9, 2024

Open root folder will always change directory up. That is desirable and must remain the default.

This one will need to be a new boolean actions.open_file option or an optional argument to node.open.edit. The former is consistent, with the method taking no arguments.

    *nvim-tree.actions.open_file.root*
    Root may be opened, changing up a directory.
      Type: `boolean`, Default: `true`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated QOL Quality Of Life Improvement
Projects
None yet
Development

No branches or pull requests

1 participant