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

Single Session (or buffer) snippets #259

Open
mraaroncruz opened this issue Sep 2, 2017 · 3 comments
Open

Single Session (or buffer) snippets #259

mraaroncruz opened this issue Sep 2, 2017 · 3 comments
Assignees

Comments

@mraaroncruz
Copy link

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!

@ajzafar
Copy link
Collaborator

ajzafar commented Sep 2, 2017

This sounds like the anonymous snippets that UltiSnips provides. I think it's a good idea. It's just a matter of me finding time, unfortunately. There are a few bigger, more impactful ideas I'd like to implement first though.

@mraaroncruz
Copy link
Author

Cool. I'll take a look. I've been using snipmate for years, probably 100 times a day. Thank you very much for maintaining this. And for the super quick response!

@ajzafar
Copy link
Collaborator

ajzafar commented Sep 2, 2017

I'd actually prefer to leave this open to remind me to work on this later.

@ajzafar ajzafar reopened this Sep 2, 2017
@ajzafar ajzafar self-assigned this Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants