Skip to content

Single Session (or buffer) snippets #259

@mraaroncruz

Description

@mraaroncruz

I looked through the issues to see if this was possible and couldn't find anything. I found a blog post with a similar idea.

The problem is that sometimes I have one off repetitive things I have to do that would work wonderfully with a snippet but not so great with q. These things are very specific to a buffer, session or project so I wouldn't want them globally, and most of the time not even session or project local.
For example, I have a template that has a helper function that takes a string and it is used over and over again. I could save a process in q and make it mostly work, but it's super tedious and snippets would be a much nicer solution.

Is there a way to define a snippet in the : menu? Can you point me to the docs if yes.

Thank you!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions