Closed kno10 closed 11 months ago
I remember reconfiguring my vim to avoid this years ago. I never got around to fixing that in decker.
There is however currently the meta data variable exclude-directories
that allows exclusion of entire directories from watching. But that will not help you here.
I will look into it.
A workaround for VIM probably is set directory=~/.cache/vim
, but I assume others will be affected, too.
@salbeira can you please test this on Windows. Add
watch:
exclude:
- test/**/*.md
to decker.yaml
and
touch test/decks/media-deck.md
should not trigger a rebuild.
@mbotsch @salbeira please give it a quick check before I close this.
Works for touch but opening the files with vim triggers the reload as advertised - I guess the idea is to include a glob that ignores vim swapfiles specifically for users who want that?
That is the idea.
Watch mode is nice, but it causes a lot of spurious reloads for me because of VIM.
Please add the following:
.*
,*.swp
,*~
(e.g., VIM uses temporary files names.filename.swp
, and stores a backup asfilename~
) - similar to.gitignore