defx-git icon indicating copy to clipboard operation
defx-git copied to clipboard

Could i show the default git short status on Defx

Open amikai opened this issue 6 years ago • 9 comments

It's mean can i show the head two column of git status --short --porcelain.

amikai avatar Dec 20 '18 03:12 amikai

You can simulate it by overriding https://github.com/kristijanhusak/defx-git#gdefx_gitindicators, but it's not 100% same. It's interesting idea though... I'll look into adding this.

kristijanhusak avatar Dec 20 '18 09:12 kristijanhusak

Maybe i create the new project which base on your project.

amikai avatar Dec 21 '18 04:12 amikai

I'll probably add it, it's good idea.

kristijanhusak avatar Dec 21 '18 10:12 kristijanhusak

@amikai i added it. Add this variable to your vimrc and let me know how it looks.

let g:defx_git#raw_mode = 1

kristijanhusak avatar Jan 01 '19 23:01 kristijanhusak

I like it! Just enabled it and I like it much better than the icons/symbols.

mhartington avatar Jan 15 '19 17:01 mhartington

It's great. Thanks!

roachsinai avatar Dec 17 '20 17:12 roachsinai

Hi, @kristijanhusak <Plug>(defx-git-prev) not work well when setting let g:defx_git#raw_mode = 1.

As code below:

https://github.com/kristijanhusak/defx-git/blob/319dd3bdc82705ab9a9a9b1a284b076579100eab/ftplugin/defx.vim#L17

set pattern for not raw mode.

roachsinai avatar Jan 01 '21 10:01 roachsinai

Like I have an untracked file and ?? will show on defx, if I run <Plug>(defx-git-next) cursor will on the sencond ? not the next file that has a stutas.

roachsinai avatar Jan 01 '21 10:01 roachsinai

@roachsinai yeah it's not working. Please open up a separate issue for that.

kristijanhusak avatar Jan 01 '21 11:01 kristijanhusak