Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Time for an obscure completion question
- X-seq: zsh-workers 10663
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Time for an obscure completion question
- Date: Tue, 11 Apr 2000 16:21:58 +0000
- In-reply-to: <200004110936.LAA04342@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200004110936.LAA04342@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Apr 11, 11:36am, Sven Wischnowsky wrote:
} Subject: Re: Time for an obscure completion question
}
} Bart Schaefer wrote:
}
} > foodatthe/ *at/ba
}
} I changed the completion code to at least partly handle the mixture of
} pattern-matching and match-specs some time ago. The patch comments out
} the match-spec-number test in _match. With that you get `foodatthe/ba'
That'll be close enough; thanks.
} > but [after C-x h] if I hit TAB the argument
} > gets erased and I'm left with
} >
} > zsh% cd
} > ^ cursor here
This one is fixed now.
} > A similar thing happens here:
} >
} > zsh% cd *at/ba<TAB><C-e><TAB><TAB><TAB>
} > zsh% cd
} > ^cursor
} >
} > The first TAB gives "foodatthe/ba" and lists two completions; I hit C-e to
} > break out of menu completion (is there a better way?) and TAB again which
} > gives me the correction "foodatthe/Bar/" and again lists two completions.
} > Hit TAB again and there's a feep; hit TAB a third time and the argument
} > vanishes, replaced by a space. I would have expected it to just keep on
} > feeping at me for as long as I bang on tab.
}
} Both should be fixed now.
This second one still happens to me. I've set a few more styles; what I
get now is:
zagzig[72] cd *at/ba<TAB><TAB>
zagzig[72] cd foodatthe/Bar/
Completing `local directories', `directories in cdpath', or `corrections'
There are no completions beneath the verbose output there. At this point
if I hit TAB a third time, "foodatthe/Bar/" becomes " ". I tried unsetting
cdpath, but that just changes the message to:
Completing `directory' or `corrections'
Here's the entire list of styles again:
zstyle :completion::complete:cd:: tag-order local-directories path-directories
zstyle ':completion:*' completer _oldlist _expand _complete _match _ignored _approximate _prefix
zstyle ':completion:*' file-sort modification reverse
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' ignore-parents parent pwd ..
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' match-original both
zstyle ':completion:*' matcher-list '' 'r:|[._-,]=* r:|=*' 'm:{a-zA-Z}={A-Za-z} r:|[._-,]=* r:|=*' 'r:|[._-,]=* r:|=* l:|=*'
zstyle ':completion:*' max-errors 2 numeric
zstyle ':completion:*' menu 'select=6'
zstyle ':completion:*' original true
zstyle ':completion:*' verbose true
And completion-related options (kshoptionprint format):
noalwayslastprompt off
alwaystoend on
noautolist off
noautomenu off
noautoparamkeys off
noautoparamslash off
noautoremoveslash off
bashautolist off
nobeep off
chasedots off
chaselinks off
completealiases off
completeinword on
globcomplete off
nolistambiguous off
nolistbeep off
listpacked off
listrowsfirst off
nolisttypes off
magicequalsubst off
menucomplete off
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author