I love markdown and I love writing in it - but wit...
# random
a
I love markdown and I love writing in it - but with long-form responses in GitHub, I often opt for 'Ctr+Enter' to save my comment rather than 'Preview' because hitting preview requires using the mouse and/or scrolling up away from where I currently am on the page. 1. Does anyone know of a keyboard shortcut to quickly toggle back and forth between 'edit' and 'preview' in GitHub comments and issues? 2. Any other clever ideas, like a WYSIWIG extension or side-by-side preview extension for comments editing?
e
I use Cmd+F, Esc and Return to navigate GitHub’s UI with the keyboard, but that doesn’t solve the problem of scrolling away
a
Cmd+F for "find"?
c
Definitely not github-specific, but I use vimium (I use Vivaldi so I can use that chrome extenion, but I think there's a firefox extension as well). Just press
f
on any webpage and every link on the page gets a keystroke(s) assigned to it that you just press to go to that link:
e
Cmd+F for “find”?
Yup, I search for
Preview
, press Esc which focuses on that html element and then press Return
c
(Also gives you vim keybindings for navigation:
gg
for start of page,
G
for end of page,
j
and
k
for scrolling, etc)
e
@cody_hanson vimium is much better than what I’ve been doing 😅. Thanks for sharing!
r
IIRC it's Cmd-Shift-P, we copied it to GitLab. Problem is it's overwritten by the Print hotkey in Firefox
a
Amazing! Thanks @robert_speicher! Worked great in Edge (Chromium-based) on my Mac!!