-
Notifications
You must be signed in to change notification settings - Fork 197
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
feat(ui): hide hidden files irrespective of hide_gitignored
option
#946
feat(ui): hide hidden files irrespective of hide_gitignored
option
#946
Conversation
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.
I don't understand how this would fix the problem described in the bug. I expected the fix to be that the choice of whether to hide something be fixed in renderer.lua
--> remove_filtered
only so that some choices take precedence over others.
I'm sorry @cseickel Forgot to turn it into a draft. I was intending to first get a reply over on the issue and then start working on it. |
Ah, well yes, I do think this is something that should be fixed! |
Hey @cseickel I've got a question, With further exploration, I think the easiest way would be to skip updating neo-tree.nvim/lua/neo-tree/git/ignored.lua Lines 86 to 102 in e5594d5
I at first thought this would affect other places since it does not flag neo-tree.nvim/lua/neo-tree/sources/common/file-items.lua Lines 139 to 146 in e5594d5
Theoretically this short circuit will be a breaking change, but I would say that updating Would you agree with this fix @cseickel ? Another option would be to add Which one would you prefer? |
@cseickel Any updates? |
The part you have to consider is that even when a gitignored item is visible, we still need to be able to mark it as ignored in the Your second proposal is the correct strategy. I don't know for sure if the logic is correct or not (short on time), but it is definitely the right place to handle this. |
@cseickel Thanks for the response.
I've updated the code and is ready to be merged :) |
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.
You're on a roll @pysan3!
closes #929
Note
show_anyways
is only used in this context (there is no other reference toshow_anyways
other than my fix), so deleted in line 200.