From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3811 invoked by alias); 24 Jul 2015 05:06:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35881 Received: (qmail 9553 invoked from network); 24 Jul 2015 05:06:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=30ARuWJjJ+o6XqQUn7fc+1ewaRtc+9YxLWEyeyUnvCo=; b=OeWbiig6J54HLbhZjr3/i+2ipxz5/UZToCkaxjxMy89Z3FEUsZUT+c5Lid8iZcgy5Y vexa2VG0+Bf/E6M9WisCWV3e3bTU9/fX2GzIlLeNfhNMQDSHhB/yDSwN8cxp4vCe+ovk pQcKUcIJ63Xk0oYLCEHk/1xzMeumQoGHlda1gcD+LsATsTs8Cwfwopi5Rh/iQaEqQvbl hXP5uMM+G7p71rjzzWCh4AGDohrsVR4NgzwW5KBcVE8WhqO3dokUyHntP6KNVd/DHKCq 8hYQMp0ubEhAWMdbBFwr4uqXHdsfu17ieU0cmFZrLuBslMyt3c9S5NHoBTMAM8VvXDEn GuSQ== X-Gm-Message-State: ALoCoQn+fz+SfwdkeQkS8uqUlYsj4xY4qzXDJn4dc3qAskAJ17TRk9mQU20Rci35BkHF9sw4qcUB X-Received: by 10.202.54.3 with SMTP id d3mr12551514oia.103.1437714406121; Thu, 23 Jul 2015 22:06:46 -0700 (PDT) From: Bart Schaefer Message-Id: <150723220642.ZM18235@torch.brasslantern.com> Date: Thu, 23 Jul 2015 22:06:42 -0700 In-Reply-To: <485.1437632598@thecus.kiddle.eu> Comments: In reply to Oliver Kiddle "Re: PATCH: highlight pasted text" (Jul 23, 8:23am) References: <7277.1437023995@thecus.kiddle.eu> <150716131504.ZM18155@torch.brasslantern.com> <150718110859.ZM4405@torch.brasslantern.com> <19088.1437274234@thecus.kiddle.eu> <485.1437632598@thecus.kiddle.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: PATCH: highlight pasted text MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 23, 8:23am, Oliver Kiddle wrote: } Subject: Re: PATCH: highlight pasted text } } Mikael Magnusson wrote: } > Is there any way to use any of this (the highlighting) if you wrap the } > widget to manipulate the text first? Like this: zle yank zle -R zle read-command && zle $REPLY } Apart from using a bindkey -s sequence that finishes with a widget that } has ZLE_YANK set. It could be enabled by poking into region_highlight if the yankb / yanke internal variables were exposed via zsh/zleparam.