Completion doesn't work #100

Closed
SeanTAllen opened this Issue Jan 30, 2016 · 3 comments

2 participants

@SeanTAllen

Without zsh-autosuggestions activated

ls -<TAB> results in

ls -
-1  -- single column output
-A  -- list all except . and ..
-B  -- print octal escapes for control characters
-C  -- list entries in columns sorted vertically
-F  -- append file type indicators
-H  -- follow symlinks on the command line
-L  -- list referenced file for sym link
-P  -- do not follow symlinks
-R  -- list subdirectories recursively
-S  -- sort by size
-T  -- show complete time information
-a  -- list entries starting with .
-b  -- as -B, but use C escape codes whenever possible
-c  -- status change time
-d  -- list directory entries instead of contents
-f  -- output is not sorted
-g  -- long listing but without owner information
-h  -- print sizes in human readable form
-i  -- print file inode numbers
-k  -- print sizes of 1k
-l  -- long listing
-m  -- comma separated
-n  -- numeric uid, gid
-o  -- display file flags
-p  -- append file type indicators for directory
-q  -- hide control chars
-r  -- reverse sort order
-s  -- display size of each file in blocks
-t  -- sort by modification time
-u  -- access time
-w  -- print raw characters
-x  -- sort horizontally

with zsh-autosuggestions activated,

ls -<TAB> does nothing and it remains ls -

Also, command completion doesn't work. For example without this installed,

`git ' results in

git
add       -- add file contents to the index
bisect    -- find by binary search the change that introduced a bug
branch    -- list, create, or delete branches
checkout  -- checkout a branch or paths to the working tree
clone     -- clone a repository into a new directory
commit    -- record changes to the repository
diff      -- show changes between commits, commit and working tree, etc
fetch     -- download objects and refs from another repository
grep      -- print lines matching a pattern
init      -- create an empty Git repository or reinitialize an existing one
log       -- show commit logs
merge     -- join two or more development histories together
mv        -- move or rename a file, a directory, or a symlink
pull      -- fetch from and merge with another repository or a local branch
push      -- update remote refs along with associated objects
rebase    -- forward-port local commits to the updated upstream head
reset     -- reset current HEAD to the specified state
rm        -- remove files from the working tree and from the index
show      -- show various types of objects
status    -- show the working tree status
tag       -- create, list, delete or verify a tag object signed with GPG

with the plugin, no completion happens.

Bindkey reports that is bound the same whether autosuggestion is on or off:

➜  sean bindkey "^I"
"^I" expand-or-complete
@SeanTAllen SeanTAllen changed the title from Switch completion doesn't work to Completion doesn't work Jan 30, 2016
@ericfreese
zsh-users member

Can you confirm you have the most recent commit of the v0.1.x branch installed?

Also, what version of zsh? What operating system? What other plugins are you using? What is in your .zshrc?

If you can, please try temporarily removing all of your other plugins and verifying that the problem still exists. If you can isolate the problem it will be much easier to fix.

@ericfreese
zsh-users member

Sounds a lot like #73.

#73 (comment)

@SeanTAllen

Pulled and better. Indeed sounds like #73.

Thanks for your work fixing this @ericfreese!

@SeanTAllen SeanTAllen closed this Jan 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment