Zsh completion doesn't follow zstyle-set substring matching behavior
**Describe the bug**
With a certain completion configuration for Zsh, files can be completed by their partial names, even when the substring doesn't include the first characters of the filename. But the completions for `trash` don't do this.
**trash-cli version**
0.24.5.26
**Are you using the latest version of trash-cli?**
Yes
**Have you tried if the bug is present in the latest version of trash-cli?**
Yes
**Please, install the latest version of trash-cli and try again before submitting the bug**
Done
**Operating system:**
-
- OS: Arch Linux
**To Reproduce**
Zsh, with trash completion properly set up:
```console
$ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' '+l:|=* r:|=*'
$ touch abc
$ trash bc # hit tab after 'c'. Then hit ctrl-c to give up.
$ rm bc # hit tab after 'c'. Then hit enter to delete abc
```
It will work if trash-generated completion is removed and not used.
**Expected behavior**
'bc' gets completed to 'abc'
**Volumes detail**
Irrelevant
1 条评论