Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zsh autocompletion not work #641

Open
Alsan opened this issue May 14, 2024 · 2 comments
Open

zsh autocompletion not work #641

Alsan opened this issue May 14, 2024 · 2 comments

Comments

@Alsan
Copy link

Alsan commented May 14, 2024

I've try source <(procs --gen-completion-out zsh) under zsh and no any suggestion shown, and the same procedure works under bash. I'm using procs 0.14.5

@dalance
Copy link
Owner

dalance commented Jul 30, 2024

I checked the issue.
Do you mean that procs <TAB> don't show anything?
If so, this is expected behaviour because procs takes arbitrary string for process filtering as argument.

If you type procs -<TAB>, the available options will be shown like below:

$ procs -<TAB>
--and                 -a  -- AND  logic for multi-keyword
--color               -c  -- Color mode
--debug                   -- Show debug message
--gen-completion          -- Generate shell completion file
--gen-completion-out      -- Generate shell completion file and write to stdout
--gen-config              -- Generate configuration sample file
--help                -h  -- Print help (see more with '--help')
--insert              -i  -- Insert column to slot
--interval                -- Interval to calculate throughput
--list                -l  -- Show list of kind
--load-config             -- Load configuration from file
--nand                -d  -- NAND logic for multi-keyword
--no-header               -- Suppress header
--nor                 -r  -- NOR  logic for multi-keyword
--only                    -- Specified column only
--or                  -o  -- OR   logic for multi-keyword
--pager               -p  -- Pager mode
--sorta                   -- Sort column by ascending
--sortd                   -- Sort column by descending
--theme                   -- Theme mode
--thread                  -- Show thread
--tree                -t  -- Tree view
--use-config              -- Use built-in configuration
--version             -V  -- Print version
--watch               -w  -- Watch mode with default interval (1s)
--watch-interval      -W  -- Watch mode with custom interval

@skull-squadron
Copy link

procs[TAB] -> Adds a space to complete the command itself but then shows nothing

image

procs -[TAB] -> shows completions

image

Perhaps the author would consider git-like completions that do not require a leading - to complete, but completions do work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants