Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom snippets and templates #666

Closed
1001QAdotNET opened this issue Oct 13, 2022 · 7 comments · Fixed by #667
Closed

Custom snippets and templates #666

1001QAdotNET opened this issue Oct 13, 2022 · 7 comments · Fixed by #667
Assignees
Labels
feature-request New feature or request released Available in a released installer

Comments

@1001QAdotNET
Copy link

Is it possible to make the snippets (including the custom ones) to work as some of the formatting features do?
By that I mean that the selected text or content should be included (embedded) in the snippet when the respective snippet button is clicked and there is selected text.

@stevencohn
Copy link
Owner

Some of them do already. For example, Code Block and Text Box can both wrap selected text. It would be simple enough to enhance custom snippets like this: If it contains a known placeholder, say something like {CONTENT}, then it will replace that with any selected content on the page.

Any others you're referring to?

@stevencohn
Copy link
Owner

re my comment on "it would be simple enough..." I may regret saying that! :-)

@1001QAdotNET
Copy link
Author

1001QAdotNET commented Oct 13, 2022

I used the info snippet as template to create a terminal output snippet. That one does not work as mentioned above
Where do I add the {CONTENT} markup you are mentioning above?

@stevencohn
Copy link
Owner

I was suggesting that could be a future enhancement. It's not implemented.

@1001QAdotNET
Copy link
Author

Got it, ok then I guess that is what I am asking for,

@stevencohn
Copy link
Owner

So it gets real complicated real fast. But what I can do in relatively short order is to enhance the Info and Warning block snippets to wrap selected text if there is any, just like Code Block and Text Box do.

@stevencohn stevencohn added the feature-request New feature or request label Oct 13, 2022
@stevencohn stevencohn self-assigned this Oct 13, 2022
@stevencohn stevencohn linked a pull request Oct 13, 2022 that will close this issue
@stevencohn stevencohn added next-release Addressed but not yet released released Available in a released installer and removed next-release Addressed but not yet released labels Oct 13, 2022
@1001QAdotNET
Copy link
Author

thanks for implementing this! I will test it in the coming days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request released Available in a released installer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants