How to search for whole words (or case-insensitive) in current buffer? #2591
|
The It's difficult to remember different syntax across different finders. It would be much more user-friendly if I could use the same regex syntax (such as (?i) for case-insensitive or \b for word boundaries) consistently across all finders for more specific searches. |
Replies: 3 comments 3 replies
|
You need to understand the difference between Related: Internals: snacks.nvim/lua/snacks/picker/config/sources.lua Lines 616 to 637 in fe7cfe9 snacks.nvim/lua/snacks/picker/source/lines.lua Lines 3 to 22 in fe7cfe9 snacks.nvim/lua/snacks/picker/format.lua Lines 370 to 392 in fe7cfe9 |
|
Thank you for getting back to me. Actually, before asking the question, I already had some preliminary understanding of components like finder, but your further mention of live and non-live modes has indeed helped me better understand picker. My question is actually this: it appears that |
|
For example, if I want to search full word |
A slightly modified version of @dpetka2001 solution: