all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#50845: Color capturing groups in query replace regexp
@ 2021-09-27 12:54 ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-09-27 13:03 ` Lars Ingebrigtsen
  2021-09-27 16:08 ` bug#50845: [External] : " Drew Adams
  0 siblings, 2 replies; 5+ messages in thread
From: ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-09-27 12:54 UTC (permalink / raw)
  To: 50845

When doing some complex capturing and replacing it could be helpful to see what each of the groups captured.

So instead of coloring the match with a single color when query replacing, the part captured by the first parens
has one color, the second capturing group a different color, etc. and after replacing if the user used a
comma to replace but not move point to the next match, the same colors indicate the replacement texts for the
corresponding groups.

And the matching parts outside of parens can have the same face which qrr currently uses.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-27 16:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-27 12:54 bug#50845: Color capturing groups in query replace regexp ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-27 13:03 ` Lars Ingebrigtsen
2021-09-27 13:12   ` ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-27 13:20     ` Lars Ingebrigtsen
2021-09-27 16:08 ` bug#50845: [External] : " Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.