snippets
snippets copied to clipboard
Usability - snippet action
Hello.
This is the only extension that gives the user the possibility to order, reorder and collect its own snippets in a very handy way ! Thank you, for building such a nice tool.
I have some feature requests:
- It would be great, if the user start the snippet-action by a mouse-double-click. Currently it is just 1x click and it will be inserted imidiantly. This cause many times wrong inserts, because you click on the snippet to move it somewhere, or you click by accident 1x time on it. I would suggest to leave the user 2x options which he can turn on or off inside the extentions-options of snippets.
In addition to the double-click, you could also implement a small-button-icon on the left of the snippet. So instead by clicking on the snippet name, the user needs to click 1x time on the small-button-icon to perform the action. Just an idea.
- colorizing folders: we are able to create our own folders & subfolders. Therefore it would be a nice feature to colorize them (no need for a icon) to have a fast overview of some special folders defined by the user.
Thanks @weekendkoder for your wonderful feedback, 2x click option is a very good idea, I'll add that as option, but I'll keep the default one as 1x. We don't want to break everyone's habit by now :) Not sure about the icon on the left as that's probably now supported using the VS Code built-in features (but I'll check). Same for colorizing, I'll share updates after I do my research.
Hello.
I am happy, if you find some thoughts usefull. Sure, leave the users the option to use "1x click" or "2x clicks" to add a snippet. Thats perfect.
I just thought that a "icon", but lets say a area (dont need to be an icon) or call it a button, could be on the same height as the snippet folder / description, placed on the left or right. By this, the user can select the snippet and only when you press that area the action performs. But nevermind ... the mouse 2x double-click is more convenient.
Some kind of color could make the folders / snippets more distinguishable. So visually you could have a better overview of all your snippets. But this one is not super important. Just an idea.
I am glad, to hear about new updates from "snippets"
@weekendkoder action buttons added with option to enable/disable them. 2 for now, one to open snippet in text editor, and second to open it in terminal. Should show up in upcoming version 4.0
I starting drafting something for snippets coloring but it's not yet good looking, see screenshot for both features mentioned.
Snippet action added in release 4.0.0 https://github.com/tahabasri/snippets?tab=readme-ov-file#action-buttons. Folders coloring will stay alive in an open pull request until VSCode APIs are good enough to make something good with them. Thank you for the great suggestion.