zsh-autocomplete icon indicating copy to clipboard operation
zsh-autocomplete copied to clipboard

Complete all components of a path

Open marlonrichert opened this issue 5 months ago • 1 comments

Discussed in https://github.com/marlonrichert/zsh-autocomplete/discussions/676

Originally posted by op06072 December 16, 2023

What do you want?

Hi I want directory autocomplete like this (/ho/op -> /home/op06072).

Why do you want this?

I use this feature very often in terminal. Cause I can complete directory input with just one 'tap' click.

Who else would benefit from this?

Everyone inputting directory

How should it work?

Given the following situation:

  • Everytime when I know full directory and input the directory

When I perform the following steps:

  1. Input the incomplete directory (/ho/op)
  2. Input 'tab' key
  3. The directory is completed (/home/op06072)

Then I expect the following to happen:

  • pressing down 'tab' after input directory make directory completed

Thanks for making awsome zsh plugin

marlonrichert avatar Jan 09 '24 08:01 marlonrichert

Autocomplete disables this by default, because it used to be that, if you tried to complete a non-existing path this way, it could make completion hang for a very long time. However, I just tested it with the latest version of Autocomplete and this no longer appears to be the case. I will add it back.

marlonrichert avatar Jan 09 '24 08:01 marlonrichert