Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Cannot toggle modified if [color "status"] is set in .gitconfig #175

Open
LkeMitchll opened this issue Aug 13, 2018 · 1 comment
Open

Cannot toggle modified if [color "status"] is set in .gitconfig #175

LkeMitchll opened this issue Aug 13, 2018 · 1 comment

Comments

@LkeMitchll
Copy link

I cannot toggle files in the full version of :Gina status when [color "status"] is set in ~/.gitconfig. But it works fine for :Gina status -s. This only occurs in Modified files also If I try to toggle a new file it works fine in either mode.

I have to remove the entire [color "status"] section for it to work correctly. I suspect that adding colours adds characters to format the text.

.gitconfig

[alias]
  ch = checkout
  co = commit
  ca = commit --all
  caa = commit --all --amend
  sh = push
  sho = push origin
  ll = pull --rebase
  a = add
  aa = add --all
  s = status -sbu
  f = fetch
  fo = fetch origin
  d = diff
  ri = rebase --interactive
  rc = rebase --continue
  lg = log --graph --date=relative -10
  shom = push origin master
  reset-last-soft = reset --soft HEAD~1
  reset-last-hard = reset --hard HEAD~1
[core]
  excludesfile = ~/.config/git/gitignore
  autocrlf = input
  editor=nvim
  whitespace = space-before-tab,tab-in-indent,trailing-space
  pager = diff-so-fancy | less --tabs=4 -RFX
[color]
  ui = auto
[color "status"]
  header = cyan
  branch = white
  changed = yellow
  added = green
  untracked = cyan
[format]
  pretty = %Cred%h%Creset %aN -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset
[difftool]
  prompt = true
[merge]
  tool = nvimdiff
  conflictstyle = diff3
  ff = only
[diff]
  tool = vimdiff
  algorithm = histogram
[mergetool "nvimdiff"]
  prompt = false
  keepBackup = false
  cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[filter "media"]
  clean = git-media-clean %f
  smudge = git-media-smudge %f
[apply]
  whitespace = fix
[push]
  default = current
[branch]
  autosetuprebase = always
[commit]
  template = ~/.config/git/gitmessage
[fetch]
  prune = true
[rebase]
  autosquash = true

Thanks!

@lambdalisue
Copy link
Owner

I didn't know the [color "status"] section thanks. I need to think the way to fix the issue.

ykpythemind added a commit to ykpythemind/gina.vim that referenced this issue Nov 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants