notesnook icon indicating copy to clipboard operation
notesnook copied to clipboard

Add keyboard shortcuts for desktop apps

Open 0scvr opened this issue 3 years 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

I'd love to see something like this in Notesnook! Especially like that command search in Notion or VS Code where you can search anything. My suggestion would be a simple command editor or presets for like "selecting the current color" where I select text with the keyboard for example and then "Alt+P" and it gets set to the current color.

McBaumwolle avatar Jan 11 '23 16:01 McBaumwolle

Yeah, I can't use this kind of app with mouse. This is a deal-breaker for me. Writing notes is a keyboard based activity, my hands should always be on the keyboard. Reaching for the mouse disturbs the flow of thought. The more I work with computers the less I use the mouse. While I am doing my thing I should be able to jot down a note quickly almost without thinking about it, without switching context and making the note taking my primary task.

ahusby avatar Feb 09 '23 14:02 ahusby

+1 I second this. We need keyboard shortcuts, using mouse for everything is annoying and breaks my workflow. Even simple things like creating a new note, entering focus mode or aligning text can only be done with mouse.

Gahwa-Gahwa avatar Feb 11 '24 10:02 Gahwa-Gahwa

Some essentials for me:

  • cmd-n, new note (maybe with a cmd-t alias)
  • cmd-o, open existing note (dialog, typeahead, box shows recent notes, sorted by mdate, descending, up/down nav)
  • cmd-w, close tab
  • cmd-del, remove active note

Down the road would love to see cmd-k trigger a command palette which would allow me to typeahead common actions (eg. a box pops up where I can type things like "publish", "lock", etc)

dep avatar Apr 29 '24 17:04 dep

I'd also propose a shortcut to lock the app manually

Havock94 avatar May 31 '24 15:05 Havock94