Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Post History
I'm using a zsh shell with zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' autoload -Uz compinit && compinit to allow tab completion regardless of capitalisation, e.g. cd desk w...
#4: Post edited
- I'm using a zsh shell with
- ```
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
- autoload -Uz compinit && compinit
- ```
- to allow tab completion regardless of capitalisation, e.g. `cd desk` will be completed to `cd Desktop`
- However using `autoload -Uz compinit && compinit` has a strange side effect. Let's assume I have a folder with the two files
- ```
- test.dtx
- test.tex
- ```
If I start to write `latex te` and press tab, it will automatically complete to `latex test.tex` instead of suggesting me both files. For other commands, e.g. `ls te`, the tab completion will suggest both files.- Is there any way to make the tab completion independent of capitalisation while still getting suggested all files?
- I'm using a zsh shell with
- ```
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
- autoload -Uz compinit && compinit
- ```
- to allow tab completion regardless of capitalisation, e.g. `cd desk` will be completed to `cd Desktop`
- However using `autoload -Uz compinit && compinit` has a strange side effect. Let's assume I have a folder with the two files
- ```
- test.dtx
- test.tex
- ```
- If I start to write `latex te` and press tab, it will automatically complete to `latex test.tex` instead of suggesting me both files. For other commands, e.g. `ls te`, the tab completion will complete to `ls test` and suggest both files.
- Is there any way to make the tab completion independent of capitalisation while still getting suggested all files?
#3: Post edited
- I'm using a zsh shell with
- ```
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
- autoload -Uz compinit && compinit
- ```
- to allow tab completion regardless of capitalisation, e.g. `cd desk` will be completed to `cd Desktop`
- However using `autoload -Uz compinit && compinit` has a strange side effect. Let's assume I have a folder with the two files
- ```
- test.dtx
- test.tex
- ```
If I start to write `latex te` and press tab, it will automatically complete to `latex test.tex` instead of suggesting me both files. For other commands, e.g. `ls te` the tab completion will suggest both files.- Is there any way to make the tab completion independent of capitalisation while still getting suggested all files?
- I'm using a zsh shell with
- ```
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
- autoload -Uz compinit && compinit
- ```
- to allow tab completion regardless of capitalisation, e.g. `cd desk` will be completed to `cd Desktop`
- However using `autoload -Uz compinit && compinit` has a strange side effect. Let's assume I have a folder with the two files
- ```
- test.dtx
- test.tex
- ```
- If I start to write `latex te` and press tab, it will automatically complete to `latex test.tex` instead of suggesting me both files. For other commands, e.g. `ls te`, the tab completion will suggest both files.
- Is there any way to make the tab completion independent of capitalisation while still getting suggested all files?
#2: Post edited
- I'm using a zsh shell with
- ```
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
- autoload -Uz compinit && compinit
- ```
- to allow tab completion regardless of capitalisation, e.g. `cd desk` will be completed to `cd Desktop`
- However using `autoload -Uz compinit && compinit` has a strange side effect. Let's assume I have a folder with the two files
- ```
- test.dtx
- test.tex
- ```
If I start to write `latex te` and press tab, it will automatically complete to `latex test.tex` instead of showing me both files. For other commands, e.g. `ls te` the tab completion will suggest both files.- Is there any way to make the tab completion independent of capitalisation while still getting suggested all files?
- I'm using a zsh shell with
- ```
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
- autoload -Uz compinit && compinit
- ```
- to allow tab completion regardless of capitalisation, e.g. `cd desk` will be completed to `cd Desktop`
- However using `autoload -Uz compinit && compinit` has a strange side effect. Let's assume I have a folder with the two files
- ```
- test.dtx
- test.tex
- ```
- If I start to write `latex te` and press tab, it will automatically complete to `latex test.tex` instead of suggesting me both files. For other commands, e.g. `ls te` the tab completion will suggest both files.
- Is there any way to make the tab completion independent of capitalisation while still getting suggested all files?
#1: Initial revision
Case independent tab completion in zsh shell
I'm using a zsh shell with ``` zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' autoload -Uz compinit && compinit ``` to allow tab completion regardless of capitalisation, e.g. `cd desk` will be completed to `cd Desktop` However using `autoload -Uz compinit && compinit` has a strange side effect. Let's assume I have a folder with the two files ``` test.dtx test.tex ``` If I start to write `latex te` and press tab, it will automatically complete to `latex test.tex` instead of showing me both files. For other commands, e.g. `ls te` the tab completion will suggest both files. Is there any way to make the tab completion independent of capitalisation while still getting suggested all files?