chrisgrieser / nvim-scissors

Automagical editing and creation of snippets.
MIT License
377 stars 4 forks source link

Feature Request: Search for snippet via snippet body #7

Closed zolrath closed 9 months ago

zolrath commented 9 months ago

Feature Requested

Hi! Sometimes I know I have a snippet that adds a specific line of text but I can't remember what it uses as a prefix. It would be great to be able to search through the snippet edit popup using the contents of the snippets instead of just the prefix.

Relevant Screenshot

Given that I have snippets that say :noreply image

Imagine if instead of no results, all snippets containing the text noreply would appear in the list. image

Checklist

chrisgrieser commented 9 months ago

Good idea. Since it might be a bit unintuitive for new users, I disabled the feature by default.

Set telescope.alsoSearchSnippetBody = true to enable this.