Open lesonky opened 9 years ago
+1 Also having this issue.
+1
I'm not having this issue. (I guess that is useful info too?)
Emmet and the Markdown Preview plugins both use the keyboard shortcut "Ctl+Shift+M".
emmet: used for line merge markdown: preview the Markdown file in HTML
Not sure if the order of installation matters or not.
You can change it by going into "${ATOM_HOME}/packages/emmet/keymaps" and editing "emmet.cson". I simply changed mine to "ctrl-alt-m".
Markdown Preview is a core package that is enabled by default. Would it be a best practice for community packages not to duplicate keyboard shortcuts of core packages?
And a question:
You can change it by going into "${ATOM_HOME}/packages/emmet/keymaps" and editing "emmet.cson". I simply changed mine to "ctrl-alt-m".
Does this change get overridden when the Emmet package is updated?
@astanush, yep. It does get overridden.
You don’t have to change anything in plugin files, simply Atom > Open Your Keymap
instead
What line would I add to keymap.cson
to override Emmet's "merge lines" shortcut? I tried the following, but the ctrl-shift-m
Markdown Preview shortcut still isn't working:
'atom-text-editor:not([mini])':
'ctrl-alt-m': 'emmet:merge-lines'
You’re telling Atom to bind Emmet’s Merge Line action to ctrl-alt-m
. I think you need something like
'atom-text-editor:not([mini])':
'ctrl-alt-m': 'markdown-preview:toggle'
Gotcha. I looked at markdown-preview.cson to find the correct selector. The following is working for me:
'atom-workspace, atom-workspace atom-text-editor':
'ctrl-alt-m': 'markdown-preview:toggle'
:tada:
when enable this plugin ,markdown-preview can not work