Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Reading difficult directory name correctly:
- X-seq: zsh-users 26221
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: Reading difficult directory name correctly:
- Date: Thu, 10 Dec 2020 14:32:10 -0800
- Archived-at: <https://zsh.org/users/26221>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-12/CAH%2Bw%3D7YCQRKwNdzP5oj0pfHk4oTAwPyhXw2HQud0o1-ANnzrjQ%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-ot1-f50.google.com) smtp.remote-ip=209.85.210.50; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=U/ZKkTOSHxUQtsmhTdnFVWkHkqSwEuoryrbC/GxgQJk=; b=tvbIukm2a8Igcu5d47wctlIA8g23+pB9xWXxmEjxLaoHpjFKNwgin+Fe0EjzMLd4hJ DcKkOtiGXdKLStoD9RCjA/vuQq/d8VjBBrDoeZ85kU+ABT0ow2tZB99dnBBVgZv/Nxws QdvnVZxFatfQ+2fZ4QwjfSE1qItx8Ea/CzoYFjMs7+45KIivFYj4jVR/7/hjiuNk6s2x AfiVebHc1vqKrUD6e9yKuL22SSzfKOVeW2R9uDlSqRIZjkEVbdclmY18+whbrmYddHC0 yrms8CUJsdxQgDHEjWl9RrIpNrvIbw33bqcMT484v4sv//fTqJeirXquid1KTxuht8+G epFA==
- In-reply-to: <5323a95a-3ae6-427d-f0b1-37364484ec6f@eastlink.ca>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <ce571bad-2815-c08a-7064-350ec79f8a82@eastlink.ca> <CAH+w=7a_t5yM18dFYiHoLcOtSStVDOD39HzJ_z-uF4fA4nEsow@mail.gmail.com> <5323a95a-3ae6-427d-f0b1-37364484ec6f@eastlink.ca>
- Sender: zsh-users-request@xxxxxxx
On Thu, Dec 10, 2020 at 2:23 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> Right you are there's a file:
>
> Sky above 49°30'N 123°30'W at Sat 2020 Oct 3 5:35.html
>
> But shouldn't it go into into it's selection mode? I keep pressing tab
> until I get the completion I want?
If I make the directory and file you mentioned, then press TAB twice,
I get this (pardon likely gmail line wrapping):
ubuntu% rm -f 19:58:13\ Sky\ above\ 49°30\'N\ 123°30\'W\ at\ Sat\
2020\ Oct\ 3\ 5:35
file
19:58:13\ Sky\ above\ 49°30\'N\ 123°30\'W\ at\ Sat\ 2020\ Oct\ 3\ 5:35_files/
19:58:13\ Sky\ above\ 49°30\'N\ 123°30\'W\ at\ Sat\ 2020\ Oct\ 3\ 5:35.html
(That's with zsh -f with compinit -D plus zstyle '*' format %d)
> Mind ... the command is "
> rm -r " thus expecting a directory and the other item is a file.
I don't think completion for "rm -f" introduces any expectation of directory.
> >
> > Running _complete_debug with ctrl-x? may provide some insight here.
> >
> Pardon Bart, exactly how do I do that?
Instead of pressing TAB, hold down the ctrl key, type x, then release
that, hold down shift, and type question mark.
A file will be written with a backtrace of what the completion system
did. An entry is made in the shell history providing the name of the
file.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author