GNU ELPA - dired-git-info


Show git info in dired
dired-git-info-0.3.1.el, 2019-Dec-14, 7.85 KiB
Home page
Browse ELPA's repository
CGit or Gitweb

To install this package, run in Emacs:

M-x package-install RET dired-git-info RET

Full description

<a href=""><img alt="GNU ELPA" src=""/></a>

* Description

This Emacs packages provides a minor mode which shows git information inside
the dired buffer:


* Installation


This package is available on [[][GNU ELPA]]. You can install it via =M-x package-install RET dired-git-info RET=

** Manual

For manual installation, clone the repository and call:

#+BEGIN_SRC elisp
(package-install-file "/path/to/dired-git-info.el")

* Config

** Bind the minor mode command in dired

#+BEGIN_SRC elisp
(with-eval-after-load 'dired
  (define-key dired-mode-map ")" 'dired-git-info-mode))

** Don't hide normal Dired file info

By default, toggling =dired-git-info-mode= also toggles the built-in
=dired-hide-details-mode=, which hides file details such as ownership,
permissions and size. This behaviour can be disabled by overriding

#+BEGIN_SRC elisp
(setq dgi-auto-hide-details-p nil)

** Enable automatically in every Dired buffer (if in Git repository)

To enable =dired-git-info-mode= whenever you navigate to a Git repository, use
the following (if you want to use this you have to install from source as long
this change is not picked up by ELPA):
#+BEGIN_SRC elisp
(add-hook 'dired-after-readin-hook 'dired-git-info-auto-enable)

Old versions

dired-git-info-0.3.el2019-Dec-127.81 KiB
dired-git-info-0.2.el2019-Feb-217.00 KiB
dired-git-info-0.1.el2019-Feb-206.80 KiB