Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion for cd
- X-seq: zsh-users 22566
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Completion for cd
- Date: Tue, 14 Mar 2017 12:07:15 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=2tVBgVQr41vYTR3/p7uK31wPMebCF86tqpq1DavcR3o=; b=gMLnlHaaWm3KRxq0l9clFIKMF2qnv4zNwnQ7FJChEB099txdlWfb8Ey4XTrTjYxlW5 jr2l6iLzvrc3qdJ0MoTgIkjRlREo6wpaCQbZcW7C6L0pM2NsUKokwAKTdaSsrfmLRiBH OJ6c5jCzIzYxMtkRkY6z7l0TeJtdZ3fG7O6nzu7RWiHZi80zueJliEt/0UU7BUadQpe/ Lcp7n2aVzIpPu9S4JyofSEE6UuywyMN0aZeLDRYVoQ2ZFQl0pDKxTGchbOWc1IlUPP0A PFUl0ZxGt8f34SgE15gNKG5YpvS5IEJooFTzzOGlg7CqhnbZpW3BKNkgE8C4pE/734W0 kRdQ==
- In-reply-to: <CABZhJg_McyYz8f_xyVN8c8g4xop+6J_EWj2=CUS3uu9A0SZPNA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABZhJg_McyYz8f_xyVN8c8g4xop+6J_EWj2=CUS3uu9A0SZPNA@mail.gmail.com>
On Mar 14, 6:38pm, Jesper Nygards wrote:
}
} I can't figure out why my configuration change has caused the
} 'ignore-parents' style to stop working.
I tried trivially to reproduce this in the current master from git,
by copy-pasting your example configuration (with suitable adjustment
to cdpath); ignore-parents seemed to be working for me.
The _complete_debug facility is provided to help with tracking down
this sort of thing. A typical process I would follow is:
1. Restore the original configuration where ignore-parents works
and start a new shell.
2. Do a sample completion where ignore-parents should be applied,
but instead of using TAB to complete, use ctrl-x question-mark
which invokes _complete_debug. Note the file name where it
says it stored the trace output (you may have to up-history to
see it).
3. Add your new tag-order configurations and start another new shell.
4. Repeat the same completion with _complete_debug and note the file
name again (it should be similar to the last one, except with the
PID of the new shell).
5. Invoke a side-by-side diff tool such as meld, or ediff (emacs),
etc., and compare the two files. This should give you some clues
about where the completion is going wrong.
The most likely explanation is that the local-directories tag-order
is causing the completion with ignore-parents to find nothing, so
the default is to show the result without ignore-parents ... but
why that happens for you and not when I try to reproduce may be
the detail that comparing debug traces reveals.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author