Skip to content

note create, note delete, toggle view, focus search keybinds#212

Merged
Davy-c merged 9 commits intomasterfrom
keybinds
Dec 27, 2019
Merged

note create, note delete, toggle view, focus search keybinds#212
Davy-c merged 9 commits intomasterfrom
keybinds

Conversation

@ButteryCrumpet
Copy link
Copy Markdown
Contributor

@ButteryCrumpet ButteryCrumpet commented Dec 23, 2019

On Mac - ctrl = cmd and alt = opt

Added keybinds:

  • ctrl + p -> focus search input
  • ctrl + enter -> new note
  • ctrl + shift + backspace -> trash note
  • ctrl + alt + e -> editor view
  • ctrl + alt + s -> split view
  • ctrl + alt + p -> preview view

Moved NoteList navigation keybinds to global hook

  • alt + arrow up Navigate up
  • alt + arrow down Navigate down

@Flexo013
Copy link
Copy Markdown
Contributor

I think we should keep these consistent with the keyboard shortcuts from Boostnote.

Comment thread src/components/NotePage/NoteList/NoteList.tsx Outdated
@kazup01 kazup01 mentioned this pull request Dec 25, 2019
@Davy-c
Copy link
Copy Markdown
Contributor

Davy-c commented Dec 26, 2019

Foregoing browser compatibility for now

For mac:

  • New note => cmd + n
  • Trash/purge note => cmd + del
  • Focus search => cmd + s
  • Note above => cmd + k
  • Note below => cmd + j
  • Toggle view => cmd + shift + t

For windows/Linux:

  • New note => ctrl + n
  • Trash/purge note => ctrl + del
  • Focus search => ctrl + s
  • Note above => ctrl + k
  • Note below => ctrl + j
  • Toggle view => ctrl + shift + t

Comment thread src/lib/keyboard.ts Outdated
@Davy-c Davy-c merged commit 3a85228 into master Dec 27, 2019
@Davy-c Davy-c deleted the keybinds branch December 27, 2019 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants