rg.el icon indicating copy to clipboard operation
rg.el copied to clipboard

Feature request: Option to runcate long search terms in header line

Open Walheimat opened this issue 1 year ago • 1 comments

This is an edge case but it happens every now and again.

For example, I have the following search term to find various TODO keyword variants:

(HOLD|TODO|NEXT|THEM|PROG|OKAY|DONT|FAIL|DONE|NOTE|MAYBE|KLUDGE|HACK|TEMP|FIXME|XXXX*)

In the results buffer the search term now pushes all other items of the header line out of view.

Would be nice if such cases could be (optionally?) truncated. Maybe the full value would still show up in the help echo that currently says "Change search string"?

So It would say (HOLD|TODO... and the help echo Change search string (HOLD|TODO|NEXT|THEM|PROG|OKAY|DONT|FAIL|DONE|NOTE|MAYBE|KLUDGE|HACK|TEMP|FIXME|XXXX*).

Walheimat avatar Mar 17 '24 09:03 Walheimat

Good suggestion. I don't work actively on new features though so unlikely I'd do something about it. PR:s are welcome though. :)

dajva avatar Sep 07 '24 17:09 dajva