From c50666971cca6b54367e7e688556e76326db1bf0 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Mon, 3 Aug 2020 15:42:29 +0300 Subject: [PATCH] vifm: ++gitdiff --- etc/soft/vifm/commands | 3 +++ etc/soft/vifm/vifmrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/etc/soft/vifm/commands b/etc/soft/vifm/commands index 007da60..3676c6e 100644 --- a/etc/soft/vifm/commands +++ b/etc/soft/vifm/commands @@ -33,6 +33,9 @@ command log git ls -- %c 2>&1 %m " Список изменённых или добавленных файлов command git git status --porcelain %d | cut -c4- | sed -r "s#^.*$(basename $(pwd))/?##" %U +" Изменения в файле +command gitdiff git diff --color=always %f %q + command tig tig %d command ext ext %f diff --git a/etc/soft/vifm/vifmrc b/etc/soft/vifm/vifmrc index d0adadc..3423ffc 100644 --- a/etc/soft/vifm/vifmrc +++ b/etc/soft/vifm/vifmrc @@ -10,6 +10,9 @@ set vifminfo=bookmarks,tui,dhistory,state,savedirs,chistory,shistory,phistory " cp/mv/rm с прогрессом set syscalls +" Формат строки файла +windo set viewcolumns=-{name}..,6{size} + set rulerformat='%2l/%S %[(+%x)%]' set history=512