add vscode code-snippets for blowfish shortcodes #1001
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Not sure if you want these or not; but thought I'd share.
Here are some pseudo-opinionated code-snippets for vscode. they make using the shortcodes in blowfish a bit easier.
Alongside the shortcodes are Markdown versions of the vscode code-snippets documentation, and the textmate code-snippets documentation that vscode's implementation attempts to be compatible with.
One of the inherent downsides of the tool is there is not an 'optional' tabstop.
one is given two options with tab-iteratable parameters:
This makes it a little obtuse to enumerate all possible shortcode parameters for ease of recall.
My solution is to create a static list tabstop for optional parameters, with the options of
This allows the user to tab-through all available parameters and drop in the ones they wish to use, and changeup the values with as little hassle as possible.
Where it made sense to me, the code snippet will populate the shortcode
inner
with:inner
contentThese may be invoked from within vscode by typing
BFS-
(BlowFish Shortcode)HSC-
(Hugo ShortCode)the shortcode's name
This allows one to pull up a contextual list fairly easy of
BFS- (present a list to me consisting of all BlowFish Shortcodes)
HSC- (present a list to me consisting of all shortcodes relevant to hugo)
I'm not sure this philosophy works for everyone.
but I figured it wouldn't hurt to share in case it works for some.