Re: [PATCH 0/4] grep: add more information to hunk separators
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 26, 2012, 18:05 UTC
- Message-ID
- <7vk427p79z.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4F70966B.4050107@lsrfire.ath.cx>
René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
> Human readers can differentiate between contents and heading by color; > separators are cyan by default.
OK.
> A separate frontend would probably have to implement match > highlighting again. That's not too hard, but a bit sad.
Yeah, but at the same time, a separate front-end could do a lot more than just grep. Letting the user pick a function name from the current output and run grep again, letting the user highlight the line range and run blame (or "Linus's ultimate content tracking tool"), etc.
> ... But I think the idea to deduplicate the meta-information and give > found content more screen real estate is a good one in general.
Yeah, I found the "sound of one hand clapping" in your other message somewhat intriguing ;-).