Skip to content

Enhancement: Type to Search for Snippets #440

@michaeltlombardi

Description

@michaeltlombardi

Is your feature request related to a problem? Please describe.

I've been adding the base Hugo snippets to my site in addition to my own custom snippets and the menu of available snippets is starting to get hard to navigate.

Describe the solution you'd like

I would like to be able to quickly search my snippets with either a fuzzy or simple match when trying to add a snippet to my content.

Describe alternatives you've considered

Perhaps an alternative, but more likely a separate feature request, I think it would be useful to have a command available to choose and insert a snippet from the command palette. Being able to type ctrl+shift+p -> insert snippet -> enter -> mermaid -> enter to go from my markdown to the insertion modal would be less disruptive for me, though I expect more users will benefit from the searchable snippet view on the dashboard.

Additional context

Screenshot showing the snippets overflowing out of view in the dashboard as well as empty space highlighted where search could fit.

I think the unused space below the dashboard tab headers and left of the Create new snippet button could potentially be used for this functionality without being too intrusive.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions