Shortcut to open / hide preview
Opened this issue ยท 13 comments
Is there a keyboard shortcut to open and hide the preview?
used to be Ctrl+Alt+Y I believe. you can set your own binding if you wanted. the action is preview:toggle
Ok, thank you. This should definitely be displayed when I press Command + Shift + P and search for Preview
๐ All other commands shows there their keyboard shortcuts.
I agree. Not sure why that is not the case. Could you inquire with the Atom team at https://github.com/atom/atom what the criteria is for being shown there? Thank you.
Applicable code: https://github.com/Glavin001/atom-preview/blob/master/lib/preview.coffee#L29-L34
I've made an issue for that: atom/atom#9758
is Ctrl+shift+Y really reserved though? in our keymap cson file, it's commented out.
Looks like it might be disabled / keymap not setup by default.
Well I am not sure if we want to reserve a keymapping or simple let Users create their own. I usually search for preview
in the Atom command palette instead.
For new users that are using preview a lot it's more comfortable to have a keyboard shortcut ๐
Sure. I am open to suggestions for what the key mapping should be, and that does not collide with other packages.
I am happy to review and merge a Pull Request enabling a keyboard shortcut.
โ Shift P
is unfortunately occupied ๐
What about โP
โR
(PReview)?
Is there a website to search for existing keyboard shortcuts across all packages for Atom? That would be helpful to make sure we avoid collisions.
โP
+ โR
sounds good so far. Doubt anyone has taken that already.
I am ready and willing to receive any Pull Requests on this matter ๐. Thanks!
Is there a website to search for existing keyboard shortcuts across all packages for Atom? That would be helpful to make sure we avoid collisions.
That would be a great feature. But I don't believe that something exist that can do that.
Sorry I can't make a pull request. I don't know how to write packages for Atom and how to modify atom-preview
for that ๐