Skip to content

[Feature Request] Make search marks independent of hlslens #5

@tbung

Description

@tbung

I think it would be quite possible to implement showing search results right in this plugin without requiring installing another plugin (that also overwrites n mappings). The only requirements I could imagine to do this would be plenary.nvim for async stuff (a plugin most people should have installed anyway, since a lot of plugins require it including telescope) and an external search program, preferably ripgrep but grep should do.

An example implementation could be how todo-comments.nvim does it: https://github.com/folke/todo-comments.nvim/blob/main/lua/todo-comments/search.lua

One could then use the / register to get the last searched pattern. Since this works asynchronously and potentially uses rg it should be reasonably fast without touching the native search functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions