From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13967 invoked by alias); 3 Jan 2013 23:17:16 -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: 30938 Received: (qmail 717 invoked from network); 3 Jan 2013 23:17:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.174 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=9E4DbLRous3+x9pZiq5ZbTf1jFP8WA87Uuq0RnIKjTY=; b=cHB0JRLbpOn/XkcNZ2jDlQ8rX1giamqckHRa219T7kh7x5KCMO+HZWGcpkj590cRzZ GYYNjuRIOTWyaphWh7WMBjtKgqNjDBM5sN0aEh78itfHHtSvJSJaJl3K19oTLflecZjq a7P/j0cX4eymNBDpkQCuu+7l860+iINsvPjyZlrOYldOPds5X0MHn9GFbMHjNeHgVfBe x12hIO4wnKb+40w03adPBCBRoLcYBNV+m5H82drNsxtZPu9hf//8Uj25NDcHnQ0jzhtC Em9h2qNqQhRjmyYTEXpNMMDQhbePRjD9lRkeNz4YFUEW4aPWmlkXmHq0KkaXcZ7XNN67 VjZw== X-Received: by 10.58.143.12 with SMTP id sa12mr77669247veb.43.1357255028774; Thu, 03 Jan 2013 15:17:08 -0800 (PST) Date: Thu, 3 Jan 2013 21:17:02 -0200 From: Ivan Sichmann Freitas To: Dave Yost Cc: "zsh-workers@zsh.org" Subject: Re: A key to delete a history item would be nice Message-ID: <20130103231702.GB1901@mjolnir> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) On Sat, Dec 29, 2012 at 01:22:02PM -0800, Dave Yost did gyre and gimble: >I’m using up-arrow to look back in history. Some of those history items >are useless because they are mistakes. I would recommend using history-incremental-search-backward and history-incremental-pattern-search-backward (the former has the default binding of Control+r in emacs mode) even if you manage to delete items from your history. They are much faster and enable you to search history based in words or patterns. >It would be nice if there were a keystroke that would delete the current history item. AFAIK there's no default zle widget to delete a item from the history, but I think you can achieve it by creating a custom zle widget (se zshzle(1) manpage). However, there are ways to control what is recorded in history, see options HIST_IGNORE_DUPS, HIST_IGNORE_SPACE and others at zshoptions(1). -- Ivan Sichmann Freitas GNU/Linux user #509059 SDF Arpa Member http://isf.sdf.org/about.html