ctrlf icon indicating copy to clipboard operation
ctrlf copied to clipboard

regexp or literal ordering

Open rileyrg opened this issue 4 years ago • 2 comments

While I like the interface very much, I hadn't realised just how much I like orderless clauses eg "save hist " will match a line with "hist save". consult-line/helm-swoop and similar support this. Is this a goer?

rileyrg avatar Jan 11 '21 20:01 rileyrg

It's a little tricky; see my comment at https://github.com/raxod502/ctrlf/issues/70#issuecomment-751502529. Not necessarily impossible, but the architecture of CTRLF is more similar to Isearch than it is to Swiper/consult-line/helm-swoop/etc. The out-of-order matching implies some first-class concept of what a "line" is, because you have to split the buffer into chunks at some point in order to decide over what size of region each of the clauses should be matched. So some thought is required as to a good way to do this.

raxod502 avatar Jan 17 '21 18:01 raxod502

Just a thumbs up for ctrlf though. I set my default to fuzzy-regexp and it meets my needs.. Its just cleaner than most and aborts/restarts in a more consistent manner. I like it a lot.

On Sun, 17 Jan 2021 at 19:08, Radon Rosborough [email protected] wrote:

It's a little tricky; see my comment at #70 (comment) https://github.com/raxod502/ctrlf/issues/70#issuecomment-751502529. Not necessarily impossible, but the architecture of CTRLF is more similar to Isearch than it is to Swiper/consult-line/helm-swoop/etc. The out-of-order matching implies some first-class concept of what a "line" is, because you have to split the buffer into chunks at some point in order to decide over what size of region each of the clauses should be matched. So some thought is required as to a good way to do this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/raxod502/ctrlf/issues/76#issuecomment-761854343, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACYTC3AOQSR5RQ4M2AUIBLS2MRQLANCNFSM4V6EW7EQ .

rileyrg avatar Jan 17 '21 18:01 rileyrg