paulmillr / chokidar

Minimal and efficient cross-platform file watching library
https://paulmillr.com
MIT License
11.04k stars 586 forks source link

Ignore helix temp files #1384

Closed aster-void closed 2 weeks ago

aster-void commented 3 weeks ago

related issue (in Helix repo): https://github.com/helix-editor/helix/issues/11998

paulmillr commented 2 weeks ago

you can use anything you'd like in ignored. There is no need to edit built-ins.

aster-void commented 2 weeks ago

I see other editor's temp files ignored here, why shouldn't helix (a text editor fyi) be one of them? It looks like this is the most appropriate place to patch this.

paulmillr commented 2 weeks ago

Brief google says it's not exclusive to helix https://file.org/extension/bck

Again, you can adjust this in your app. It doesn't matter what's the default configuration is.

aster-void commented 2 weeks ago

neither as swp. https://file.org/extension/swp

Anyways, I'll open a patch request for vite. thanks anyways.

43081j commented 2 weeks ago

It is only used for the atomic writes feature FYI. Since if you enable that, you want to tell chokidar to detect temp editor files that happen mid write (like swap files)

That's why we wouldn't usually change it