quokka
quokka copied to clipboard
Atom: quokka-panel not respecting cmd-±
Issue description
Click inside the "Quokka" panel.
⌘⎻+
should increase the font size, but does not
⌘⎻﹣
should decrease the font size, but does not
Quokka.js file
any
Quokka.js Console Output
any console output visible in the .quokka-panel-view
/ .quokka-results-view
Code editor version
Atom 1.19.3
OS name and version
OSX Sierra 10.12.3
Tried - Does not work
Since this is clearly a keybinding-related issue, I tried adding the following to my keymap.cson file, but it didn't have any effect.
'.platform-darwin .quokka-results-view':
'cmd--': 'window:decrease-font-size'
'cmd-+': 'window:increase-font-size'
Interestingly, I have several plug-ins that add panels, some require an additional keymap, and some don't.
-
PlatformIO IDE Terminal does not have any special keymapping and
⌘⎻+
/⌘⎻﹣
work out of the box -
Markdown Preview does have special keymappings to get
⌘⎻+
/⌘⎻﹣
to work as expected, but they're referencing custom 'markdown-preview:zoom-x' commands, (re: Flightmanual's Keymap Command) which leads to a rabbithole that I don't have time to explore :-(
'.platform-darwin .markdown-preview':
'cmd-+': 'markdown-preview:zoom-in'
'cmd-=': 'markdown-preview:zoom-in'
'cmd--': 'markdown-preview:zoom-out'
'cmd-_': 'markdown-preview:zoom-out'
'cmd-0': 'markdown-preview:reset-zoom'
Stop-gap work-around for end users
In your Atom stylesheet, "styles.less", add:
.quokka-results-view {
font-size: 120%; // modify value as appropriate
}