dajva / rg.el

Emacs search tool based on ripgrep
https://rgel.readthedocs.io
GNU General Public License v3.0
465 stars 38 forks source link

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

Open Walheimat opened 4 months ago

Walheimat commented 4 months ago

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*).