cheshire137 / gh-notifications-snoozer

Lists and filters and snoozing pull requests, oh my! This is an app for managing your notifications on GitHub by way of filtering issues and pull requests that are of interest to you.
MIT License
15 stars 10 forks source link

Add keyboard shortcuts for archive, snooze, ignore #109

Closed cheshire137 closed 7 years ago

cheshire137 commented 7 years ago

Fixes #50 and fixes #101.

This adds a Task menu with options Archive, Snooze, Ignore, and Restore. Those options become enabled as necessary based on whether hidden or visible tasks are being viewed and whether or not there are any tasks selected.

To do this, the concept of 'focusing' a task to highlight which one you're looking at is now part of Redux storage instead of regular React per-component state. Also when you use the arrow keys to focus a task, it also changes task selection.

Having task focus as part of persistent Redux state may help users to keep track of where they left off.

I'm open to feedback as to the shortcuts being used. It's Ctrl+Option+letter right now for archive/snooze/ignore/restore. Maybe it should just be the letter only, e.g., A for archive.

/cc @summasmiff @probablycorey

cheshire137 commented 7 years ago

Closing this in favor of #116. 🎩 @probablycorey.