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

fix(command): allow reveal_file to be used with dir #1649

Merged
merged 5 commits into from
Jan 4, 2025

Conversation

alanoliveira
Copy link
Contributor

This PR changes the behaviour of the command when used with dir option.
With this change the root/cwd will be set to dir if the revealing file is a children of the dir, otherwise the root/cwd will be set to the directory of the revealing file.

related PR/issues:
#1500
#1501

Copy link
Collaborator

@pynappo pynappo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the PR because yesterday i found an old github issue where cseickel clarified that if dir+reveal are specified together, the behavior should be to always change directory to dir. thank you for the help!

@pynappo pynappo merged commit e6645ec into nvim-neo-tree:main Jan 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants