glushchenko / fsnotes

Notes manager for macOS/iOS
https://fsnot.es
MIT License
6.46k stars 474 forks source link

Implement standard Cocoa key bindings to move up and down in the list of search results #1192

Open mrzool opened 3 years ago

mrzool commented 3 years ago

Thanks for this great app. My feature request concerns the macOS app.

I think it would be a great improvement if FSNotes supported the standard Cocoa key bindings to move up and down a list of search result, namely ^N to move down and ^P to move up.

Screen Shot 2021-09-04 at 13 38 05

Source: https://www.hcs.harvard.edu/~jrus/Site/system-bindings.html

These key bindings work in every macOS app where a search field with suggestions pop-up is available — in stock apps like Finder, Mail, Safari, Calendar, Contacts, but also pretty much in any native third-party app. In these apps, when typing in the search field, it's always possible to move up and down the list of suggestions or filtered search result using the standard key bindings ^N and ^P.

FSNotes currently doesn't support this. As far as I can see, the only way to move up and down the list of search result is to reach for the arrow keys down below (which is bad ergonomics).

I think implementing a way of cycling through search results while keeping your hands on the home row (as long as you remapped your caps lock to ctrl, of course) would greatly improve the keyboard-centric UX of the app, along with its usability and ergonomics. Also it would fulfill the expectations of the touch-typist, proficient macOS user.

mrzool commented 3 years ago

Update: I was able to configure the desired behavior by overwriting the two shortcuts available under the View menu "Move Up/Down In The Notes List" through an App Shortcut in the Keyboard Preferences.

Screen Shot 2021-09-10 at 11 42 22

This workaround makes the behavior consistent with the standard macOS/Cocoa key bindings.