Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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

80%
+6 −0
Q&A 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 w...

1 answer  ·  posted 3y ago by samcarter‭  ·  edited 3y ago by Alexei‭

#5: Post edited by user avatar Alexei‭ · 2022-02-18T15:45:27Z (almost 3 years ago)
added relevant tags
#4: Post edited by user avatar samcarter‭ · 2022-02-10T17:42:21Z (almost 3 years ago)
  • 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 by user avatar samcarter‭ · 2022-02-10T17:37:57Z (almost 3 years ago)
  • 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 by user avatar samcarter‭ · 2022-02-10T17:37:40Z (almost 3 years ago)
  • 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 by user avatar samcarter‭ · 2022-02-10T17:35:07Z (almost 3 years ago)
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? 
zsh