Skip to content
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

[feature request] [watch task] ignore dotfiles #348

Closed
jaredly opened this issue Nov 25, 2015 · 4 comments
Closed

[feature request] [watch task] ignore dotfiles #348

jaredly opened this issue Nov 25, 2015 · 4 comments

Comments

@jaredly
Copy link

jaredly commented Nov 25, 2015

vim creates temporary files (prefixed with a .) while editing, which cases the (watch) task to needlessly fire. It would be great to have watch ignore dotfiles altogether, and it would also be nice to be able to specify a whitelist or blacklist of files to care about.

@Deraen
Copy link
Contributor

Deraen commented Nov 25, 2015

For now, the preferred solution is to configure your editor to write tempfiles and backups elsewhere, or disable them altogether.

For Vim this should disable these temp files:

set noswapfile

@daveyarwood
Copy link
Member

You can also configure Vim to put its swap files elsewhere:

" keeps vim swap files from interfering w/ boot-clj
set backup
set swapfile
set backupdir=~/.vim-tmp
set directory=~/.vim-tmp

@jaredly
Copy link
Author

jaredly commented Nov 25, 2015

yeah, that's one way to do it. But would it be too difficult to add a config option to boot as well? I like having the tmpfiles in the same directory so that I can easily rm them when necessary

@micha
Copy link
Contributor

micha commented Nov 25, 2015

There are performance implications, and it adds complexity. It would need to be carefully designed.

@micha micha closed this as completed in 6afed5f Dec 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants