Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Raphael
@glepnir
image.png
when i open a vim file ..
image.png
execute 'syn match gitLogRef /\v((\*\||)\s)@<=[0-9A-Za-z]{7,13}(\s-\s)@=/ '
execute 'syn match gitLogTime /([^)]\{-}\sago)/'
execute 'syn match gitLogUser /\v\<[^<]+\>$/'

highlight default link gitLogRef Directory
highlight default link gitLogTime Exception
highlight default link gitLogUser Constant
i added this in syntax/magit.vim
Coc provide some api i think very useful .so i want use these apis in vimagit.vim
like coc-git
Jérôme Reybert
@jreybert
hm ok. how do you open vimagit? in its own buffer?
what command is behind mg?
Raphael
@glepnir
call magit#show_magit('r')
i used this r mean botright
Jérôme Reybert
@jreybert
do you open a new buffer?
Raphael
@glepnir
no ,not a new buffer
hmm cant make sure ..i add this
Jérôme Reybert
@jreybert
your highlight seems to be that your previous buffer has some highlight rules, more specific than the gitlog ones
Raphael
@glepnir
    elseif (a:display == 'r')
        silent execute "botright vnew " .buffer_name
        silent execute "buffer " . buffer_name
        let  b:magit_only = 0
Jérôme Reybert
@jreybert
yes, you have a new buffer
Raphael
@glepnir
ok thanks .what should i do to fixed this problem
Jérôme Reybert
@jreybert
don't know why, but it seems that some of the markdown highlight are still active
i donno
first, try to see what highlight rule is active on (3 days ago)
Raphael
@glepnir
when its have red color its gitLogTime
Jérôme Reybert
@jreybert
then, if this is a markdown rule, try to figure out why
Raphael
@glepnir
when its doesnt have color its empty syntax group
Jérôme Reybert
@jreybert
I did not debug highlight since a long time, no clue here
Raphael
@glepnir
all right..
Raphael
@glepnir
i rewrite the regex execute 'syn match gitLogTime /\s\(([0-9]+)\s[a-z]+\sago\)/‘.. cant get gitlogtime highlight… whats wrong? help sos
Jérôme Reybert
@jreybert
are you sure the / / enclosure is necessary for syn match?
Raphael
@glepnir
if i remove / / i got error
E402: Garbage after pattern: \s\(([0-9]+)\s([a-z]+)\sago\)
E475: Invalid argument: gitLogTime \s\(([0-9]+)\s([a-z]+)\sago\)
Jérôme Reybert
@jreybert
execute 'syn match gitLogTime "\s\(([0-9]+)\s[a-z]+\sago\)"
?
Raphael
@glepnir
execute 'syn match gitLogTime "\s\(([0-9]+)\s[a-z]+\sago\)"'
i am try to used this ..dont work T.T
Jérôme Reybert
@jreybert
no idea, sorry
Raphael
@glepnir
its ok thanks.
Raphael
@glepnir
works ..vim regex is different ...
Damn..
Raphael
@glepnir
@jreybert this is my git workflow now .
git.gif
Nelyah
@Nelyah
Hey, thanks for the plugin, it is truly amazing !
I wanted to know if there was a way to change the behaviour in commit mode. At the moment :w will commit if there isn’t an empty message. Is it possible to change that so I would only define a binding to use (like CC for instance)
I have this reflex of saving very often whenever I get to normal mode and that makes me commit when I’d rather not to. I can always amend, but a way to removing th
To remove this would be helpful
Jérôme Reybert
@jreybert
OK. Open an issue please, so I won't forget :)
Jérôme Reybert
@jreybert
Thanks
Sam Tozer
@samjtozer
Hello all. Is there a way I can import my template .gitmessage into vimagit for when making commits?
I can see it mentioned in the release notes but not sure how to activate it
Niklas Wallace
@nikewall
This message was deleted
Niklas Wallace
@nikewall
Opened a PR for #141. Changed UI a bit, but I enjoy it and think it 'feels' similar to staging mode.