JunoLab / language-weave

Atom syntax highlighting for Weave.jl and Pweave documents. Currently supports markdown input formats.
https://atom.io/packages/language-weave
MIT License
21 stars 9 forks source link

Adding a Hotkey for Weaving to HTML #36

Open Sumidu opened 4 years ago

Sumidu commented 4 years ago

I was wondering why there is not hotkey for weaving to HTML such as CMD+J CMD+H or something similar. I've tried figuring out how to do this myself, but just started using Julia and Juno. Haven't found a solution yet.

aminya commented 4 years ago

There are many key-bindings here: https://github.com/JunoLab/language-weave/blob/master/keymaps/language-weave.cson

You can define your own by calling weave:weave-to-html callback. For example, Choose Edit -> Open Your Keymap to open the keymap.cson file, then paste

'atom-text-editor':
  'cmd-h: 'weave:weave-to-html'

However, I use this which adds a button for weaving to html: https://atom.io/packages/juno-toolbar-plus