Skip to content

Conversation

segfaultsourcery
Copy link
Contributor

The watch command will now ignore files based on .gitignore. This can be useful for when your editor creates cache or swap files.

I saw that others were having the same issue I'm having, namely that mdBook is frantically rebuilding files with every keystroke, because the editor keeps saving it in a cache file. This allows you to add those files to .gitignore. In my case, adding a line with "*.kate-swp" fixed the problem completely.

The watch command will now ignore files based on gitignore. This can be useful for when your editor creates cache or swap files.
Changed the type of the closure back to use PathBuf, not &PathBuf.
Reduced nesting.
@Dylan-DPC-zz Dylan-DPC-zz merged commit 8e8e53a into rust-lang:master Oct 4, 2019
Ruin0x11 pushed a commit to Ruin0x11/mdBook that referenced this pull request Aug 30, 2020
* Added support for gitignore files.
The watch command will now ignore files based on gitignore. This can be useful for when your editor creates cache or swap files.

* Ran cargo fmt.

* Made the code a bit tidier based on input from other Rust programmers.
Changed the type of the closure back to use PathBuf, not &PathBuf.
Reduced nesting.
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

Successfully merging this pull request may close these issues.

2 participants