From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9230 invoked by alias); 7 Jul 2015 16:32:56 -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: 35721 Received: (qmail 24774 invoked from network); 7 Jul 2015 16:32:55 -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_H3,RCVD_IN_MSPIKE_WL 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=7EXODPhjr6GQR4viaeTXf6vZshegyVDK7xKKnu4gthc=; b=PwDKDllDcXp0gJFFdcUiMNbs8+y1P3rXdq2mhw+0R35A3GbipZUiMLYUpTWrGb8zmy NASWVNjrKe+w6SGeK2iUobrS+0AdfmQksYcEyKHyf62Z4k/j71UVG5ExnnoHOVUcczX+ I2dw+APXqOxXCXKmJ4R7knjvjIQW9D4upf23+fDnWrsrwB6tEHo8gmZEKqkldJb5POpb 9LgieTwqmCIu5vjL1GBBWVCPoQvEIK2ugm8whcROtWkQK44G2QqV4UjGzgMNKOjDN4MN RavY8+miVw0KNYT/xdcHkJ+BRA1NlgFHZZQ6QQzqTYBLNOL7c8czlRMFuruLK5GRAb5L Xyow== X-Gm-Message-State: ALoCoQmLAn8r+/PTvqUjTgo+t8zuAezJklo8xWzYQzCz4yNQbfbT7jXzup8RfbkXaJv3LhTl5OhJ X-Received: by 10.182.103.231 with SMTP id fz7mr4976405obb.33.1436286771782; Tue, 07 Jul 2015 09:32:51 -0700 (PDT) From: Bart Schaefer Message-Id: <150707093248.ZM9971@torch.brasslantern.com> Date: Tue, 7 Jul 2015 09:32:48 -0700 In-Reply-To: <11523.1436283148@thecus.kiddle.eu> Comments: In reply to Oliver Kiddle "PATCH: completion of dates" (Jul 7, 5:32pm) References: <11523.1436283148@thecus.kiddle.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh workers Subject: Re: PATCH: completion of dates MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 7, 5:32pm, Oliver Kiddle wrote: } Subject: PATCH: completion of dates } } As far as I know, dummy matches are only used in _describe, _values and } _arguments to put matches with a common description together. I wanted } to experiment with it and came up with this. What it does is completion } of days laid out in the form of a calendar. Perhaps a bit of a gimmick } but I think it might be useful, especially in cases where a date is } specified in an obscure way such as for find's -mtime option. This is entertaining and probably quite useful; a few remarks: It would be nice if this only kicked in when menu-selection is active. I know that may not be possible, but the strange ordering of the matches is going to be baffling when only doing regular menu completion. If one menu-selects "before" or "since" and then immediately re-enters menu selection to choose the number of days, the +/- is removed from the line and you return to completing exact dates (with "sense" group available as before). [note 1] The only way to actually complete a before/since date is to type the +/- as a literal before entering the menu-selection, at which point the "sense" group disappears, or to begin normal completion after selecting before/since and then drop into menu-select from there. [1] Also in this state there's a space appended at the end of the word on the command line during the menu selection. Probably an issue with menu-selection in general rather than this in particular. In fact both behaviors may be specific to re-entering menu-select without going through normal completion at least once in between.