Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in completion with curly braces?
- X-seq: zsh-workers 48617
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Bug in completion with curly braces?
- Date: Sun, 18 Apr 2021 14:43:51 -0700
- Archived-at: <https://zsh.org/workers/48617>
- In-reply-to: <CAH+w=7bo=71h4eF7KLhsAZajJ4ZvpakdgoHeUv1fO_QB6Ua3FQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAMP44s1suGkR83v82+C8xUUG3J8fwyuwPamujvRUPLcNyQdeJw@mail.gmail.com> <69b1ff42-3e60-4b40-8514-9bb0690eb250@www.fastmail.com> <CAMP44s1B8sv5Xe-Mvm8peiJ7H4e2oMgTPd8Si4QxcLD5PyaPnQ@mail.gmail.com> <CAH+w=7ZcJ67eq1cKuSDtb_XxOmcyuk2Esw1ebVSgGhXSAx1V9g@mail.gmail.com> <CAMP44s3MSx6_Zkz-vwy4ayPr-9Zdg1M6xfcmALzVyqb01w2zBA@mail.gmail.com> <CAH+w=7a0ArrzE-ct510rS=L7b2EryyuAYSM+vtMg02a-yFd3KQ@mail.gmail.com> <CAMP44s3yz60cAo5xwn_oJjZvvhVY5H9go+KXZ9WT5J_37pe2Dg@mail.gmail.com> <CAH+w=7af7n8NH5b-8Vi2MUWAzbC7-=RQDLX1kCh1R58oMgTLUw@mail.gmail.com> <CAMP44s1AOsnpqvVF2FAb7XRx3E4sfFV3-=xDfvk1WTMgWGcdYg@mail.gmail.com> <CAH+w=7bo=71h4eF7KLhsAZajJ4ZvpakdgoHeUv1fO_QB6Ua3FQ@mail.gmail.com>
On Sun, Nov 22, 2020 at 11:17 PM Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Nov 22, 2020 at 10:46 PM Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
> >
> > So, in theory if the user has ignorebraces set, there would be no need
> > to use quotes for the curly braces?
>
> As far as I can tell, that should be how it works, yes.
Reviving this thread because it ended without resolution, but I do
have a patch for _complete_debug that makes the situation a little
less confusing:
diff --git a/Completion/Base/Widget/_complete_debug
b/Completion/Base/Widget/_complete_debug
index 85a0f372a..94fd4accd 100644
--- a/Completion/Base/Widget/_complete_debug
+++ b/Completion/Base/Widget/_complete_debug
@@ -14,7 +14,11 @@ integer debug_fd=-1
exec {debug_fd}>&2 2>| $tmp
fi
- local -a debug_indent; debug_indent=( '%'{3..20}'(e. .)' )
+ local -a debug_indent
+ () {
+ setopt localoptions no_ignorebraces
+ debug_indent=( '%'{3..20}'(e. .)' )
+ }
local PROMPT4 PS4="${(j::)debug_indent}+%N:%i> "
setopt xtrace
: $ZSH_NAME $ZSH_VERSION
Messages sorted by:
Reverse Date,
Date,
Thread,
Author