evershort icon indicating copy to clipboard operation
evershort copied to clipboard

Support `Ctrl-Alt-` mappings on macOS

Open kiryph opened this issue 7 years ago • 2 comments

I am on macOS Sierra 10.12.6 with Chrome Version 60.0.3112.113 (Official Build) (64-bit).

Evershort (v0.30) works great for navigating and managing Evernote, e.g. / to enter search field. However, the Ctrl-Alt- mappings in the note editor do not work for me:

  • Ctrl+Alt+a Attach file
  • Ctrl+Alt+b Bulleted list
  • Ctrl+Alt+c Checkbox
  • Ctrl+Alt+d Divider line (snippet --- triggers this as well)
  • Ctrl+Alt+e Align center
  • Ctrl+Alt+k Insert link
  • Ctrl+Alt+l Align left
  • Ctrl+Alt+n Numbered list
  • Ctrl+Alt+p Code block (snippet ```triggers this as well)
  • Ctrl+Alt+r Align right
  • Ctrl+Alt+s Strikethrough
  • Ctrl+Alt+x Remove formatting
  • Ctrl+Alt+= Subscript
  • Ctrl+Alt++ Superscript

I have marked in bold those which I am particularly interested in.

Following shortcuts work already without Evershort:

  • CMD+b bold
  • CMD+i italic
  • CMD+u underline
  • CMD+c copy
  • CMD+x cut
  • CMD+v paste
  • CMD+z undo
  • CMD+SHIFT+z redo
  • Tab indent
  • Shift+Tab unindent

macOS also provides Emacs style keybindings in text fields (https://jblevins.org/log/kbd) occupying certain Ctrl- mappings:

  • Ctrl-a/e go to beginning/end of line
  • Ctrl-n/p line up/down
  • Ctrl-b/f move one character backwards/forwards
  • Ctrl-Alt-b/f move one word backwards/forwards
  • Ctrl-k delete till end of line
  • Ctrl-d/h delete forwards/backwards
  • Ctrl-t transpose letters
  • Ctrl-v one page down (no shortcut for up)

If you consider to convert the Ctrl-Alt- to Cmd-Alt-, note that Chrome on macOS uses

  • Cmd+Alt-b for Bookmark manager
  • Cmd+Alt-p for Print using System Dialogue

Other letters which are already in use:

  • Cmd+Alt-f for Search the web
  • Cmd+Alt-w for Close all windows
  • Cmd+Alt-q for Quit and keep windows
  • Cmd+Alt-h for Hide others
  • Cmd+Alt-u for view source
  • Cmd+Alt-i for Developer Tools
  • Cmd+Alt-j for JavaScript Console

and macOS by default

  • Cmd+Alt-d for Toggle Dock

IMHO, the ctrl-alt- mappings are a good choice. I do not use the system shortcut ctrl-alt-b/f for wordwise jumping.

kiryph avatar Sep 19 '17 13:09 kiryph

Does evernote use tinymce as its editor component?

According to https://www.tinymce.com/docs/advanced/keyboard-shortcuts/ the action insert link should be by default Cmd+k but does not work on evernote. It works here on github.

kiryph avatar Sep 19 '17 13:09 kiryph

I'm also interested in this. Another conflict: Cmd-Alt-c opens up the developer tools in Chrome on macOS (as does cmd-alt-i for some reason). This was the main shortcut I wanted when I found this extension.

I have discovered that one can type [] (with a space) at the start of a line to get a checkbox, though!

phoenixeliot avatar Jan 04 '18 00:01 phoenixeliot