From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id b8a77d37 for ; Thu, 2 Jan 2020 21:05:08 +0000 (UTC) Received: (qmail 20887 invoked by alias); 2 Jan 2020 17:15:29 -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: List-Unsubscribe: X-Seq: 24592 Received: (qmail 12796 invoked by uid 1010); 2 Jan 2020 17:15:28 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf1-f43.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25677. spamassassin: 3.4.2. Clear:RC:0(209.85.167.43):SA:0(-2.0/5.0):. Processed in 2.087621 secs); 02 Jan 2020 17:15:28 -0000 X-Envelope-From: pierspowlesland@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.167.43 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=O3b58sKpdgFnUOdLFE2roVS6BTyhtXpeX/p5fBxes9I=; b=WkTdS55QhwbiOJK7u5557I2comiioPWAQBX1jrUK3M1afEANikIvt8Y9MyFiAdiazu 62rrFFeXS1+hHL02vLjT5kszKouSyMBSQp5qnf4Hs5Xj1yH9sVmOg2fX+KdrtiCgbAz3 CThHI4aU/OcLrubioMrVpr2tGnq8bPQuR1lS+fRHmjckSxjovhNpDxIrlo/A7Seh7drC MHyPSjSNInj3WfiOsvsEg4yDpit1LMMJTjWfaCvCm9gYWzxQzwWnSEZ2cCRxEXEKaCb+ 8dgLEhWJ5SKm6kvnL1aHTAmDtPQEYwi2y/L1I/eVMuzlSxpJtWYkIZgx89ByM3STNwIj nOQg== X-Gm-Message-State: APjAAAU4pTHdWJ6XIdkaF5h7khVcUo3U3UwhlCePhROriBFpO49BEXfx /PzCdcxI75XkcWvz32PigNsEY+FZz5G/FVBKm1SfQDll X-Google-Smtp-Source: APXvYqw92zZQJlVe/a7O0IBpzhsdKDGzOQ8RQIosf661eNChz4AjjQpD8F5M57cNtvMVDdO9iG6dhZICmJqVr0RSEME= X-Received: by 2002:a19:5013:: with SMTP id e19mr48042992lfb.8.1577985291672; Thu, 02 Jan 2020 09:14:51 -0800 (PST) MIME-Version: 1.0 From: Piers Powlesland Date: Thu, 2 Jan 2020 17:14:41 +0000 Message-ID: Subject: Adding to the history from within a widget To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="000000000000c55f81059b2b540e" --000000000000c55f81059b2b540e Content-Type: text/plain; charset="UTF-8" Hi, I tried to use "print -s xxxxx" to add entries to the history from within a widget but it doesn't seem to work, although executing the function not as a widget does allow me to add entries to the history. Is there any way to add an entry to the history from within a widget. For now I have resorted to setting hist_ignore_space and then binding the function using "bindkey -s" and providing a preceding space, but this feels a bit hacky. Thanks, Piers --000000000000c55f81059b2b540e--