emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18209: closed (Add ability to truncate long grep matches)


From: GNU bug Tracking System
Subject: bug#18209: closed (Add ability to truncate long grep matches)
Date: Wed, 12 Aug 2020 18:52:02 +0000

Your message dated Wed, 12 Aug 2020 20:50:42 +0200
with message-id 
<CADwFkmm1jZk-M1OXQ4M5+HrKRgkZ8FbXkubAXwh5OP6zV0ygNQ@mail.gmail.com>
and subject line Re: bug#18209: Add ability to truncate long grep matches
has caused the debbugs.gnu.org bug report #18209,
regarding Add ability to truncate long grep matches
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
18209: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18209
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Add ability to truncate long grep matches Date: Wed, 6 Aug 2014 12:52:46 +0100
In some files (e.g. in text files using newline as a paragraph delimiter) one can get matches in very long lines that can occupy several screenfuls. These are not always straightforward to avoid. There's no way to tell (GNU) grep to truncate its output; perhaps Emacs could help here, by being able to specify a maximum length of match to show? For bonus points, show part of the line that matches, with ellipses, rather than just truncating the line; but even without that it would be useful, provided that the truncation is clearly marked: the annoyance and slowness of navigating *grep* buffers full of enormous matches which are almost always not what one is looking for would be great!

(I just managed to work around one source, minified _javascript_ mixed in with non-minified files, by omitting *.min.js in the list of files grep should ignore, but this is not always easy either: sometimes one might only have the minified form to hand, and might want to grep it e.g. while debugging.)

--
http://rrt.sc3d.org

--- End Message ---
--- Begin Message --- Subject: Re: bug#18209: Add ability to truncate long grep matches Date: Wed, 12 Aug 2020 20:50:42 +0200
Reuben Thomas <rrt@sc3d.org> writes:

> That worked, thanks!

Thanks! Closing.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]