notesnook icon indicating copy to clipboard operation
notesnook copied to clipboard

Add keyboard shortcuts for desktop apps

Open 0scvr opened this issue 1 year ago • 4 comments

What problem are you facing?

There are no/barely any keyboard shortcuts in the desktop apps and in the note editor. This makes writting notes slow & unproductive especially when coming from another note-taking app who has shortcuts.

What's the solution you'd like to see in Notesnook?

It would be great to have keyboard shortcuts like many of the other note-taking apps available since it greatly increases productivity and can make it easier to switch from another app.

Some notable shortcuts I'd like to see:

  • search (shortcut displays search bar & focuses input to search my notes at any point)
  • editor shortcuts (adding links, highlighting, header, lists etc) not necessarily for all styling options but at least the main ones would be nice.

What alternatives have you considered?

No response

Additional context

Anyone, feel free to add your shortcut ideas here.

Could be a dup of #105 ?

0scvr avatar Sep 19 '22 22:09 0scvr

I'd be willing to work on this issue btw, if it's inline with your roadmap and if I had a bit of help since I don't know the codebase yet.

0scvr avatar Sep 19 '22 22:09 0scvr

There are quite a few shortcuts in the code but they're not documented very well, if at all. For instance ALT-D inserts the date, ALT-T inserts the time, MOD-ALT-D inserts time and date, MOD-ALT-C toggles code block. But I agree therre could be many more shortcuts including ALT-/ or ALT-? to show the current shortcuts.

Supposedly the package used for the editor has shortcuts, too although I'm not sure what they are. Certainly, by experimenting, I fidc that CTL-B toggles BOLD, CTL-I toggles italics

short-y avatar Sep 20 '22 17:09 short-y

I was also able to find the same shortcuts but trying out random combinations on my keyboard (yeah lol) and you make a good point about keyboard shortcuts, that should be explained somewhere like a help menu for example.

0scvr avatar Sep 20 '22 19:09 0scvr

https://tiptap.dev/api/keyboard-shortcuts#predefined-keyboard-shortcuts

Not all of the shortcuts explained above work in Notesnook but there are a few more shortcuts than I thought.

0scvr avatar Sep 20 '22 20:09 0scvr