-
Notifications
You must be signed in to change notification settings - Fork 533
Description
When I use navi I often want to find not just one snippet but to chain some snippets in my database. E.g I have
find mypattern | ...
and want to find a snippet in navi where I can pipe data in. However navi will search for the whole line and wont find the correct snippet because find mypattern | is not part of what I search for.
Describe the solution you'd like
I would love to have some cli parameter taking a number and a character e.g. --prefix-pattern='1|'. Than navi would ignore everything up to the first |` for it's search pattern. But in it's output navi would add the prefix.
In the example above this would allow me to search some kind of e.g. grep in navi and end up with eg. find mypattern | grep myfilterpattern
Having the navi widget automatically search for special characters like | and > to create a prefix pattern automatically would make the usage even more convenient.
Describe alternatives you've considered
The alternative I currently use is searching with navi and then jumping to the beginning of the line line to paste in my previous command. But this is tedious.
Btw thanks for this great tool