Commit Graph

21 Commits

Author SHA1 Message Date
Félix Saparelli 446a8d95a7 Replace event queue with a priority queue (#302)
Solves several issues, generally through delivering signals before filesystem events, preventing situations where an overwhelming amount of events makes it impossible to quit.

Does _not_ solve the problem of a queue full of lower-priority events not accepting an urgent message, but that's a rarer issue that's more complicated to overcome.

Changes the Filterer trait: adds Priority to `check_event()`

Makes some events unfilterable (Urgent priority): SIGINT, SIGTERM, and CTRL_C to the main process. These still need to be handled by `on_action` to do anything, but cannot be stopped before reaching that.
2022-06-11 06:43:11 +00:00
Félix Saparelli 56380154d3
Clippy 2022-02-11 00:52:35 +13:00
Félix Saparelli 96a6a6e9d9 Revert ignoring .git only when Git is discovered
And so on from other VCS. This causes confusion (ref #255) when watching
from outside a git repo, where the VCS type isn’t detected so the .git
folder is included in the watchset. While slightly incorrect, it’s more
expected that these folders be ignored regardless, and there’s always
--no-default-ignore to avoid those ignores if needed.
2022-02-07 17:15:27 +13:00
Félix Saparelli 96a41e1b4c
Remove unused Result<> return 2022-01-26 03:24:15 +13:00
Félix Saparelli 9b866ad9e8
Remove default signal from clap, leave it for parse
Fixes #239
2022-01-24 20:52:29 +13:00
Félix Saparelli 4e7e75e1d5 Strip leading period if present from -e exts (#236) 2022-01-23 21:53:12 +13:00
Félix Saparelli c79a3bd12c Upgraded fmt 2022-01-22 14:00:42 +13:00
Félix Saparelli 9f67ec35b1 More OsSplit windows fixing 2022-01-18 23:14:08 +13:00
Félix Saparelli 881e8f4047 More OsSplit testing 2022-01-18 22:53:24 +13:00
Félix Saparelli 7f092ca4b7 Further windows fix to OsSplit 2022-01-18 22:39:55 +13:00
Félix Saparelli fd474c7e38
Fix and add tests for OsSplit 2022-01-18 22:10:25 +13:00
Félix Saparelli 10b71847da
Add support for Pijul and Subversion 2022-01-16 16:13:05 +13:00
Félix Saparelli 9327f8c293
Only ignore .git if we're in a git project, and so on 2022-01-16 16:12:50 +13:00
Félix Saparelli 3d32f2d24b
Hook up new globset signature 2022-01-16 16:09:53 +13:00
Félix Saparelli b8d9ad728e
Integrate IgnoreFilterer into GlobsetFilterer 2022-01-16 15:18:15 +13:00
Félix Saparelli 4dbb924977
Add default ignores 2021-12-29 20:14:29 +13:00
Félix Saparelli a00912f17f
Implement --no-meta for default filterer 2021-12-29 19:29:45 +13:00
Félix Saparelli 75f14ba3d6
Fix OsSplit in windows 2021-12-24 19:07:01 +13:00
Félix Saparelli 6f8049dd93
Hook up --ignore, --filter, --exts properly 2021-12-24 18:51:35 +13:00
Félix Saparelli bb212b413f
Process --no-process-group 2021-12-24 03:47:15 +13:00
Félix Saparelli ec49185488
Split tagged and globset filterer in cli 2021-12-24 03:37:51 +13:00