-
-
Notifications
You must be signed in to change notification settings - Fork 625
fix(#1270): open_on_setup_file does not override open_on_setup, hijack_directories does not override startup behaviour #1618
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(#1270): open_on_setup_file does not override open_on_setup, hijack_directories does not override startup behaviour #1618
Conversation
…k_directories does not override startup behaviour
Test cases: defaults
open_on_setup
open_on_setup_file
open_on_setup, open_on_setup_file
open_on_setup, ignore_buffer_on_setup
open_on_setup_file, ignore_ft_on_setup
open_on_setup, ignore_ft_on_setup
|
If we were building from scratch today, I'd define options like these, however that is way too disruptive a change to make: startup = {
open = {
always = false,
dir = false,
file = false,
empty = false,
},
focus_tree = {
always = false,
dir = false,
file = false,
empty = false,
},
ignore_ft = {
}
} |
i have edge case testing for open on setup also:
|
This doesn't open the tree unless: ignore_buffer_on_setup = true,
open_on_setup = true,
The tree will be opened when This can be stopped via: ignore_ft_on_setup = {
"gitcommit"
}, Perhaps we could add that as a default. I think I'm missing something... |
thats good then, the behavior might be the same as before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets try this, if users complain we can just revert.
…up, hijack_directories does not override startup behaviour (nvim-tree#1618)
Investigating #1270 and found some bugs and inconsistencies:
Bugs:
open_on_setup_file
overridesopen_on_setup
Inconsistencies:
hijack_directories
overridesopen_on_setup
. Not necessarily a bug, however this behaviour has been updated to match the documentation.Documentation has been clarified.