Skip to main content
Remove unnecessary link
Source Link
Marlon Richert
  • 4.3k
  • 11
  • 38

I have zsh set up with Oh-My-Zsh. The z plugin allows me to jump to recently used directories.

When I type z name<TAB>, it autocompletes name from the list of recently visited dirs by matching name against the list.

https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250

Sometimes the result contains only a single entry, when I know there should be multiple. I have debugged the $reply variable and it happens if all entries have the same prefix, e.g. /path/to/dir, containing dirs with name In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting <TAB> again after expansion, triggers a new call to z script complete function now with the full common prefix instead of my search query , e.g. /path/to/dir

When I press <Shift+Tab> which is bound to reverse-menu-complete zsh properly selects the last item and shows the full list.

Is there a way to make Tab immediately show all completions, without first inserting the common prefix?

I have zsh set up with Oh-My-Zsh. The z plugin allows me to jump to recently used directories.

When I type z name<TAB>, it autocompletes name from the list of recently visited dirs by matching name against the list.

https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250

Sometimes the result contains only a single entry, when I know there should be multiple. I have debugged the $reply variable and it happens if all entries have the same prefix, e.g. /path/to/dir, containing dirs with name In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting <TAB> again after expansion, triggers a new call to z script complete function now with the full common prefix instead of my search query , e.g. /path/to/dir

When I press <Shift+Tab> which is bound to reverse-menu-complete zsh properly selects the last item and shows the full list.

Is there a way to make Tab immediately show all completions, without first inserting the common prefix?

I have zsh set up with Oh-My-Zsh. The z plugin allows me to jump to recently used directories.

When I type z name<TAB>, it autocompletes name from the list of recently visited dirs by matching name against the list.

Sometimes the result contains only a single entry, when I know there should be multiple. I have debugged the $reply variable and it happens if all entries have the same prefix, e.g. /path/to/dir, containing dirs with name In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting <TAB> again after expansion, triggers a new call to z script complete function now with the full common prefix instead of my search query , e.g. /path/to/dir

When I press <Shift+Tab> which is bound to reverse-menu-complete zsh properly selects the last item and shows the full list.

Is there a way to make Tab immediately show all completions, without first inserting the common prefix?

Copy edit
Source Link
Marlon Richert
  • 4.3k
  • 11
  • 38

How to expeand zsh compctlmake `zsh` immediately show all completions with same, without first inserting the common prefix (from z script)?

I have as zsh setup via .ohzsh set up with Oh-myMy-zshZsh. The zz plugin allows me to jump to last recently used directories.

When you pressI type z name<TAB>, it autocompletes name fronfrom the list of recently visited dirdirs by matching name against the list.

https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250

Sometimes the result containcontains only a single entry, when iI know there should be multiple. I have debugged the reply$reply variable and it happens if all entries have the same prefix, e.g. /path/to/dir, containing dirs with name In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting <TAB> again after expansion, triggers a new call to z script complete function now with the full common prefix instead of my search query , e.g. /path/to/dir

When iI press <Shift+Tab> which is bound to reverse-menu-complete zsh properly selects the last item and shows the full list.

Is there supposed to be a further keybindingway to expand the common prefix for compctl after it groupedmake Tab immediately show all entries with acompletions, without first inserting the common prefix?

How to expeand zsh compctl completions with same prefix (from z script)?

I have as zsh setup via .oh-my-zsh. The z plugin allows to jump to last recently used directories.

When you press z name<TAB> it autocompletes name fron the list of recently visited dir by matching name against the list.

https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250

Sometimes the result contain only a single entry, when i know there should be multiple. I have debugged the reply variable and it happens if all entries have the same prefix, e.g. /path/to/dir, containing dirs with name In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting <TAB> again after expansion, triggers a new call to z script complete function now with the full common prefix instead of my search query , e.g. /path/to/dir

When i press <Shift+Tab> which is bound to reverse-menu-complete zsh properly selects the last item and shows the full list.

Is there supposed to be a further keybinding to expand the common prefix for compctl after it grouped all entries with a common prefix?

How to make `zsh` immediately show all completions, without first inserting the common prefix?

I have zsh set up with Oh-My-Zsh. The z plugin allows me to jump to recently used directories.

When I type z name<TAB>, it autocompletes name from the list of recently visited dirs by matching name against the list.

https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250

Sometimes the result contains only a single entry, when I know there should be multiple. I have debugged the $reply variable and it happens if all entries have the same prefix, e.g. /path/to/dir, containing dirs with name In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting <TAB> again after expansion, triggers a new call to z script complete function now with the full common prefix instead of my search query , e.g. /path/to/dir

When I press <Shift+Tab> which is bound to reverse-menu-complete zsh properly selects the last item and shows the full list.

Is there a way to make Tab immediately show all completions, without first inserting the common prefix?

edited title
Source Link
dre-hh
  • 195
  • 8

Howe How to expeand zsh compctl completions with same prefix (from z script)?

I have as zsh setup via .oh-my-zsh. The z plugin allows to jump to last recently used directories.

When you press z name<TAB> it autocompletes name fron the list of recently visited dir by matching name against the list.

https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250

Sometimes the result contain only a single entry, when i know there should be multiple. I have debugged the reply variable and it happens if all entries have the same prefix, e.g. /path/to/dir, containing dirs with name In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting again<TAB> again after expansion, triggers a new call to z script complete function now with the full common prefix instead of my search query , e.g. /path/to/dir

When i press <Shift+Tab> which is bound to reverse-menu-complete zsh properly selects the last item and shows the full list.

Is there supposed to be a further keybinding to expand the common prefix for compctl after it grouped all entries with a common prefix?

Howe to expeand zsh compctl completions with same prefix (from z script)?

I have as zsh setup via .oh-my-zsh. The z plugin allows to jump to last recently used directories.

When you press z name<TAB> it autocompletes name fron the list of recently visited dir by matching name against the list.

https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250

Sometimes the result contain only a single entry, when i know there should be multiple. I have debugged the reply variable and it happens if all entries have the same prefix, e.g. /path/to/dir, containing dirs with name In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting again after expansion, triggers a new call to z script complete function now with the full common prefix instead of my search query , e.g. /path/to/dir

When i press <Shift+Tab> which is bound to reverse-menu-complete zsh properly selects the last item and shows the full list.

Is there supposed to be a further keybinding to expand the common prefix for compctl after it grouped all entries with a common prefix?

How to expeand zsh compctl completions with same prefix (from z script)?

I have as zsh setup via .oh-my-zsh. The z plugin allows to jump to last recently used directories.

When you press z name<TAB> it autocompletes name fron the list of recently visited dir by matching name against the list.

https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250

Sometimes the result contain only a single entry, when i know there should be multiple. I have debugged the reply variable and it happens if all entries have the same prefix, e.g. /path/to/dir, containing dirs with name In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting <TAB> again after expansion, triggers a new call to z script complete function now with the full common prefix instead of my search query , e.g. /path/to/dir

When i press <Shift+Tab> which is bound to reverse-menu-complete zsh properly selects the last item and shows the full list.

Is there supposed to be a further keybinding to expand the common prefix for compctl after it grouped all entries with a common prefix?

Source Link
dre-hh
  • 195
  • 8
Loading