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

git tab completion is not coloured #97

Closed
tekumara opened this issue Jun 6, 2020 · 3 comments
Closed

git tab completion is not coloured #97

tekumara opened this issue Jun 6, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@tekumara
Copy link

tekumara commented Jun 6, 2020

Describe the bug
Colours are not rendered

To Reproduce
Steps to reproduce the behavior:

  1. Type 'git'
  2. Press Tab
 git
>
  21/21
   %F{yellow}-- common commands --%f
  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

Expected behavior
-- common commands -- should be in coloured yellow, an example without fzf-tab:

git-tab-with-colour

Environment (please complete the following information):

  • OS: macOS
  • zsh 5.7.1 (x86_64-apple-darwin18.2.0)
  • d92299b

zshrc
If applicable, add a minimal zshrc to help us analyze.

@tekumara tekumara added the bug Something isn't working label Jun 6, 2020
@Aloxaf
Copy link
Owner

Aloxaf commented Jun 6, 2020

This is expected behavior, see #24.

@tekumara
Copy link
Author

tekumara commented Jun 7, 2020

I'm not exactly sure how to fix this...

@Aloxaf
Copy link
Owner

Aloxaf commented Jun 7, 2020

I'm not exactly sure how to fix this...

Just add zstyle ':completion:*' format '[%d]' to your zshrc.

@Aloxaf Aloxaf closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants