-
Notifications
You must be signed in to change notification settings - Fork 255
How to ignore files by pattern (not hide) ? #527
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
Comments
@soifou I have the first of a two part fix done, which is to make the file watchers ignore the null-ls temp files so the tree doesn't keep refreshing. Can you switch to the I also intend to add a |
Unfortunately not. The next related PR has just been merged, so the pattern matching you set is incorrect, it should be By changing to this pattern, the
That's good to hear because the thing is what if they change again the pattern? This needs to be reflected here. |
The I also made it so that any file that would be captured by I believe this is the pattern you want for this situation: require("neo-tree").setup({
filesystem = {
filtered_items = {
never_show_by_pattern = { -- uses glob style patterns
".null-ls_*",
},
},
}
}) |
Yes One (minor) issue though but this is not really on your side. Since a temp file is created for a few sec when I'm doing some operations on a buffer, Neotree git watch index detects it and the parent directories reflect this by showing the question mark sign. That could lead to some misunderstanding about the current state. Question marks disappears if I toggle the tree or save again the buffer or spawn a new term on the project root dir, etc. I could add an entry to my |
I actually think that is the best way to handle this. That will also cover the situation where a temp file is not cleaned up by null-ls. |
Ok then feel free to close this issue! And by the way, null-ls will handle the cleanup on its side 😉 Thanks again for your support! |
Recently, a PR from null-ls changes the path where are stored the temp files of some diagnostics/formatters.
For example on linux, there were stored to
$XDG_RUNTIME_DIR
(or/tmp
as fallback). Now there are stored to the current buffer dir.This has some visuals annoying consequences with my setup when I'm working with the filesystem opened . My first thought was to add a pattern in option
filtered_items.hide_by_pattern
but this only seems to hide them (as the name suggests).Below the visual annoyances in action (first hidden, then displayed).
2022-09-17_00-53-21.mp4
I'd like Neotree completely forget about theses files. Is something going wrong with my settings or this is not yet implemented (something like
never_show_by_pattern
)?Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: