joaopcm / snipshare

Revolutionize your coding experience with Snipshare - the all-in-one platform for creating, executing, and sharing Node.js code snippets! Join the coding revolution today at www.snipshare.co 🚀🌟
https://www.snipshare.co
MIT License
61 stars 3 forks source link

Command to open the command palette #17

Closed miroswd closed 1 year ago

miroswd commented 1 year ago

Is your feature request related to a problem? Please describe. I use linux so I don't have the command key

Describe the solution you'd like Change command key to forward slash /

Describe alternatives you've considered Could create a right click box to use commands

Additional context image

joaopcm commented 1 year ago

Hey, @miroswd! Thanks for your contribution!

One thing I'd like to let y'all know: you can use control + K to open the command palette as well

The simple solution for this case: we can identify what's the OS the user is using and then render different shortcut labels in the placeholder. Does it sound good to you?

miroswd commented 1 year ago

In my case when I press ctrl+k it has no effect. I tried using various combinations like ctrl+alt, alt gr, etc. But the solution you proposed seems fine to me.

joaopcm commented 1 year ago

You are probably trying to use the shortcut (control + K) while having your courses focused on a text or code. To use shortcuts, you need to focus on elements that are not part of the note.

I tested it on other computers and was able to use the shortcuts. Can you verify that the problem is that your cursor is focused on some text block or code snippet?

danielsitnik commented 1 year ago

Hmmm this is currently very unintuitive in my opinion. I'm used to Atlassian Confluence, so I was under the impression that I had to press cmd+K and then select the code snippet widget from some kind of library to insert it into the document.

After some fiddling I realized I only needed to type ``` to get a code block.

joaopcm commented 1 year ago

Hmmm this is currently very unintuitive in my opinion. I'm used to Atlassian Confluence, so I was under the impression that I had to press cmd+K and then select the code snippet widget from some kind of library to insert it into the document.

After some fiddling I realized I only needed to type ``` to get a code block.

@danielsitnik, thank you for your input! I believe that this is another problem. This issue is regarding the shortcuts not being accessible when typing. I just opened a PR ⬆️ fixing it.

If you have an idea of how to improve and make Nodepad more intuitive, please one a new issue 😃 Nodepad is based on Markdown, so there's no code snippet widget from some kind of library to insert into the document. It's just the ``` to open a code block section, as you'd do using Markdown.

It'd be great if we had some shortcuts in the command palette to insert some blocks into the document. Please feel free to create an issue so that someone can work on that :)

joaopcm commented 1 year ago

@miroswd, just opened this PR to fix your problems. After it gets merged, it must work for you ;)

joaopcm commented 1 year ago

:tada: This issue has been resolved in version 1.8.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: