ctrlsf.vim icon indicating copy to clipboard operation
ctrlsf.vim copied to clipboard

Search in search results

Open Seybo opened this issue 6 years ago • 5 comments

Is there a way to do a new search inside the files from the current search results? For example, i want to find all the <imgs with a style passed to. They are not on the same line and the number of lines between them can vary so i'm thinking of doing one search for <img and then the style search inside the results. Can i do that?

Seybo avatar Apr 21 '19 01:04 Seybo

It's not yet possible but the feature you mentioned sounds amazing, I'll consider it.

dyng avatar Apr 21 '19 10:04 dyng

@Seybo I have implement a new command CtrlSFFilter, for solving your problem (I think it should), please checkout branch feature/filter and have a try. Any feedback is welcome.

dyng avatar Apr 21 '19 13:04 dyng

Great! Seems to work perfect

Seybo avatar Apr 22 '19 07:04 Seybo

Maybe a better way to implement it is to make CtrlSFPrompt command to work as CtrlSFFilter if it is fired from the search results buffer. That way it would be possible to use the same shortcut for both cases

Seybo avatar Apr 22 '19 07:04 Seybo

It makes CtrlSFPrompt ambiguous and I think it's not as useful as thought, but you remind me that I can map a key for CtrlSFFilter in ctrlsf pane.

dyng avatar Apr 24 '19 02:04 dyng