t9md / atom-keystroke

define multi keystroke commands easily
https://atom.io/packages/keystroke
MIT License
17 stars 2 forks source link

Working with other shortcuts #3

Open djmtype opened 8 years ago

djmtype commented 8 years ago

This doesn't seem to work with Emmet.
I want to create a shortcut for HTML formatting. For example, underline.

With Emmet, ctrl-w wraps text in an abbreviation.

So, the keystrokes that would make underline possible is, ctrl-w u enter

Here is my configuration which fails:

// config.cson
  "keystroke":
    commands: [
      {
        name: "underline-text"
        keystroke: "ctrl-w u enter"
      }
    ]
// keymap.cson
'atom-text-editor':
  'alt-cmd-u': 'keystroke:underline-text'