Parcourir la source

Add my-dired-git-ls-files

master
10sr il y a 6 ans
Parent
révision
fc5c75a630
Signé par: 10sr ID de la clé GPG: 7BEC428194130EB2
1 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. +8
    -2
      emacs.el

+ 8
- 2
emacs.el Voir le fichier

@@ -1983,10 +1983,16 @@ use for the buffer. It defaults to \"*recetf-show*\"."
;; It works!
;; (pop-to-buffer (dired-noselect '("." "shrc" "emacs.el")))

(defun my-dired-from-git-ls-files ()
(defun my-dired-git-ls-files ()
"Dired from git ls-files."
(interactive)
(dired "."))
(pop-to-buffer-same-window
(dired-noselect `(,default-directory
,@(split-string (shell-command-to-string "git ls-files -z")
"\0" t))
""))
)


;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)


Chargement…
Annuler
Enregistrer