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

Question/Feature Request - Snippet Customization #1760

Open
dwillis77 opened this issue Jan 23, 2025 · 2 comments
Open

Question/Feature Request - Snippet Customization #1760

dwillis77 opened this issue Jan 23, 2025 · 2 comments
Labels
feature-request New feature or request

Comments

@dwillis77
Copy link

Hello,

Just wondering if there is a way to customize snippets that involve applying a static formatting template to selected text (as opposed to just creating a snippet from existing text and re-applying that same exact text elsewhere). For example, similar to what is done with the Info, Warning, Notes and Code boxes, but with some different background colors and perhaps different symbols depending on use case.

The one I have in mind currently is a "caution" box (something between "info" and "warning" in severity, with a yellow background instead of red), as I write up notes for a lot of technical processes (some of which eventually turn into "official how-to's") and having this would be very helpful.

If the customization ability noted above is not currently available and would be difficult to add, if there's any way we could add a predefined "caution" box in the meantime to the default snippets list, that would be great!

But, to support all use cases (not just my own) I think it would be even better if we could somehow add this customization ability (assuming it is not already available) to those predefined "formatted snippets". I see a similar idea was mentioned on #666 (where the idea of a {CONTENT} placeholder was brought up) but never came to fruition. It is also mentioned on that thread that this may be more complicated than it initially seems to implement, which I totally understand if that's the case.

Thanks in advance for the consideration.

Best regards

@dwillis77 dwillis77 added feature-request New feature or request unread I have seen it or had time to refine it yet labels Jan 23, 2025
@stevencohn stevencohn removed the unread I have seen it or had time to refine it yet label Jan 24, 2025
@stevencohn
Copy link
Owner

So, a "wrapper snippet"? Let me think...

@dwillis77
Copy link
Author

Yes, exactly - a configurable wrapper snippet, or perhaps just adding the ability to customize the built-in wrapper/"box" snippets?

Because something else that came up today I realized (which is somewhat on the topic of my other post #1761 ) it might be useful to be able to customize the default width of those default box snippets. To be more similar to whatever outline width the user uses for most of their notes (as opposed to having to resize the outline to match the box every time).

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
Projects
None yet
Development

No branches or pull requests

2 participants