From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 8BEF41F8C6; Sun, 25 Jul 2021 12:29:50 +0000 (UTC) Date: Sun, 25 Jul 2021 12:29:50 +0000 From: Eric Wong To: meta@public-inbox.org Subject: lei rediff: add --dequote and --requote? Message-ID: <20210725122950.GA27749@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: I find "lei rediff" useful when writing replies to patch emails. Like any good *nix tool, my $EDITOR allows piping either the full or partial editor buffer into arbitrary commands. Besides typing text, the most important feature of my editor is the ability to run/pipe-to arbitrary commands (e.g. git-am, lei blob, git-show); and "lei rediff" is a new one. I barely customize my editor; however, I do have some editor macros for quickly stripping and adding quote prefixes (at least the standard "> " mail quoting style, along with '#' for sh/Perl). But maybe others do not have these macros, so I wonder if "rediff" should support --dequote and --requote switches to ease this usage pattern. Or/and if "lei dequote" and "lei quote" should exist as (slower) replacements for `sed 's/^[> ]\+//'` and `sed 's/^/> /'`, respectively.