folke / flash.nvim

Navigate your code with search labels, enhanced character motions and Treesitter integration
Apache License 2.0
2.47k stars 33 forks source link

feature: add function or pattern to exclude labels when searching. #318

Closed dirichy closed 2 months ago

dirichy commented 7 months ago

Did you check the docs?

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

I use this plugin to jump in chinese file. I use pinyin(a method to use some alphabet to represent chinese) to match chinese and jump(with custom mode function to convert pinyin to regular formula contains chinese). When I search english, this plugin will disable the next char of every match. but when I searching chinese, since the next char of every match is still chinese, it will not disable the alphabet that representing this chinese word.

Describe the solution you'd like

I want to let this plugin exclude labels smartly that support the custom “mode” function.

Describe alternatives you've considered

I want to have an api to define a custom function to dicide which label should be exclude. The input should be all of next char of matches, the out put is a table contains all of labels should be excluded.

Additional context

No response

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 7 days with no activity.