feat: Add a projects watcher #26
No reviewers
Labels
No labels
bug
chore
CI/CD
Code Cleanup
duplicate
DX
enhancement
help wanted
invalid
packaging
question
UI
UX
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
waycasthq/waycast!26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/projects-dir-watcher"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #8
closes #25 by proxy
Please use conventional commit style for PR titles
@ -139,0 +175,4 @@async fn scan_and_update_projects(&self) -> Result<(), DataError> {info!("Projects directory changed; rescanning projects entries");let scanner = Arc::clone(&self.app_scanner);This is currently using the app scanner, meaning it's not doing what's intended (scan projects)
@ -139,0 +182,4 @@self.db.items().insert_of_kind(app_entries, crate::core::ItemKind::DesktopEntry)Once the above is fixed. This also needs to be updated to insert the correct
ItemKind@ -20,3 +22,3 @@let notify_config = Config::default();let mut debouncer = new_debouncer_opt::<_, RecommendedWatcher, RecommendedCache>(Duration::from_secs(2),Duration::from_millis(DEBOUNCER_TIMEOUT_MS),Nice!
@ -63,3 +66,3 @@impl WaycastDaemon {pub fn run(&self) {let (app_event_tx, mut app_event_rx) = mpsc::channel(1);let (app_event_tx, mut app_event_rx) = mpsc::channel(MAX_MPSC_BUF_SIZE);Love that you're reducing the usage of magic numbers. Good job! 🥳
LGMT. Good job 🥳 📦 🚀
7baf9d09ccto75e90b62b9Add a projects watcherto feat: Add a projects watcher