From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12649 invoked by alias); 18 Jan 2016 09:47:25 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21161 Received: (qmail 17274 invoked from network); 18 Jan 2016 09:47:24 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=lvstT1212rKUSo09i1pIOSGR0xYZ1/ms0pbUYMgilac=; b=lMFJNbfrQLBd6d/cTxflcapdI85xyu+dvu4hlCFT3pgF00w/3TCt0IMnjVQGQTkwGM BZ896pNrj9Dsx5y1c5WaX6KvGb0cqZoscU1hoOswKKeXGkpPm8drM/PoHVcmdxLIDqqi P2uezVybGTwV/zesTh2prRl3N9sw/umTOpQSx7+K/rC8sKPB6fbQ5o9hBV4AePfRs2hp ZIedGZMaC79U+boyjIsM1LdA5oj4FmIX4bn6lDnpVU3edvH8J7unL9NkT07t8CacVsTI bjpFWL9ACXvlaTYI1Bnus236AQFp/rPLisIsUvrO2DvNgJk/cqrLwph1VwsuU0hTiEFe f2gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=lvstT1212rKUSo09i1pIOSGR0xYZ1/ms0pbUYMgilac=; b=bBoC9WjzyyvrHGQb04TqD8Dcc3xTFc12ea41i3lF7pEyNBLN7w5os13oT5hxQ3Ehe/ XoXFicYNVuLqVuUsugfxiwGcHxZvA1ofI/amtM2uRVw/S49BKmc7kpxgr/XDJu/YBv+C Ta3gLL3FGEr1hGaaag1+J+08f5ERkAlxvUo6PR/TScuXM3+mrlmxlbZmwIBrF8STjtza d4TXlBLdfZysGUXx5nXjrCuIYA/SrxioikxqkCCyeJgqTYMdbTURA5GBgxieYhSHEPwp dqDhLdnRZWYCt/rEvR2Vmdvu/T7+TayEOnWwbRfzQe/atB9jbdm+Px3zXXY45+gqO8qD apzw== X-Gm-Message-State: ALoCoQkUOe1VEJyH+6a3u75KYSZVlBSsdGp+3XJsKtSq2OzERYe014fLEqm0xNkwQXX4r4PgyfVbsunVLKPTqqOB+juK3mdrUQ== X-Received: by 10.112.199.41 with SMTP id jh9mr8074749lbc.125.1453110440329; Mon, 18 Jan 2016 01:47:20 -0800 (PST) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Mon, 18 Jan 2016 10:47:01 +0100 Message-ID: Subject: Cancel zle -M on a keypress, use cursor keys To: Zsh Users Content-Type: text/plain; charset=UTF-8 Hello, I've written a Zle completion widget that edits BUFFER and proposes matches via zle -M. I want to cancel the zle -M message when user does anything different than browsing completions (done with Alt-h and Alt-H). How to accomplish this? I guess I could somehow detect self-insert, but it's quite invasive approach, and I already have "zle -N self-insert url-quote-magic" in .zshrc. I would also want to catch cursor keys and use them for browsing the matches. How to do this, should I somehow use bindkey locally in the widget? Best regards, Sebastian Gniazdowski