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=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 a34af367 for ; Sun, 29 Sep 2019 15:30:17 +0000 (UTC) Received: (qmail 3523 invoked by alias); 29 Sep 2019 15:30:10 -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: 24310 Received: (qmail 22269 invoked by uid 1010); 29 Sep 2019 15:30:10 -0000 X-Qmail-Scanner-Diagnostics: from mta01.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25580. spamassassin: 3.4.2. Clear:RC:0(24.224.136.30):SA:0(-2.6/5.0):. Processed in 0.777072 secs); 29 Sep 2019 15:30:10 -0000 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.30 as permitted sender) X-Authority-Analysis: v=2.3 cv=QqQgIm6d c=1 sm=1 tr=0 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=FP58Ms26AAAA:8 a=XtJo8Z_lIGWbXnkGs14A:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=QEXdDO2ut3YA:10 a=p7r3zv9oHMgA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrgedtgdelvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucffohhmrghinhepshhouhhrtggvfhhorhhgvgdrnhgvthenucfkphepvdegrddvtdejrdeltddrudelgeenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: completion is over thinking things. To: zsh-users@zsh.org References: <306325bb-395d-a16b-a771-0786c23cb46e@eastlink.ca> <8ef96620-e762-d52c-207f-c3ac5620879f@eastlink.ca> <9EEEB6F5-9B9C-4C8E-8593-4917F8AF79DF@dana.is> From: Ray Andrews Message-id: <486df91b-8c6c-b129-2538-15e4d6126eb9@eastlink.ca> Date: Sun, 29 Sep 2019 08:29:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-version: 1.0 In-reply-to: <9EEEB6F5-9B9C-4C8E-8593-4917F8AF79DF@dana.is> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-CA On 2019-09-28 9:47 p.m., dana wrote: > > http://zsh.sourceforge.net/FAQ/zshfaq04.html#l53 > [quote] If you simply want to try filename completion as a default when other completions fail, add it to the `|completer|' style for normal completion, for example: zstyle ':completion:*' completer _complete _ignored _files This adds filename completion to the end of the default types of completion. Your actual completer style may include other actions, such as expansion or approximate completion. ---------------------------------------- Thanks Dana, that's exactly what I'm thinking.  However I dare not cast such spells without some hand-holding.  Here's what I have now, and I have no idea how any of it works: ==================================== # allow approximate # Original: zstyle ':completion:*' completer _complete _match _approximate zstyle ':completion:*' completer _expand _complete #Tab completion should be case-insensitive. # Original: zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' zstyle ':completion:*' auto-description 'specify: %d' zstyle ':completion:*' format 'Completing %d' zstyle ':completion:*' group-name '' zstyle ':completion:*' list-colors '' zstyle ':completion:*' list-prompt %SAt %p: Hit TAB 'for more', or the char to insert%s ###zstyle ':completion:*' menu select=2 ### zstyle ':completion:*' menu select=long zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s zstyle ':completion:*' use-compctl false zstyle ':completion:*' verbose true zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*:match:*' original only zstyle ':completion:*:approximate:*' max-errors 1 numeric zstyle ':completion:*:expand:*' tag-order all-expansions # cd not select parent dir: zstyle ':completion:*:cd:*' ignore-parents parent pwd #Better completion for killall. Original: zstyle ':completion:*:killall:*' command 'ps -u $USER -o cmd' # tab completion for PID :D zstyle ':completion:*:kill:*' force-list always zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' zstyle ':completion:*:*:kill:*' menu yes select zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' ========================================= ... probably half of that stuff is redundant or useless or harmful or whatever and I don't even know where it came from.  I'll take your edit on faith if you would be so kind.  Is there any way a mortal can get any sort of handle on any of that?  Genius borders on insanity.