Skip to content

Commit

Permalink
🛠 (dirvish) eza をプレビューに使う
Browse files Browse the repository at this point in the history
  • Loading branch information
yewton committed Jan 25, 2024
1 parent c17de22 commit 5595a37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lisp/toncs-config-dired.org
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@
(general-def
"<f12>" #'dirvish)

(dirvish-define-preview eza (file)
"Use `exa' to generate directory preview."
:require ("eza") ; tell Dirvish to check if we have the executable
(when (file-directory-p file) ; we only interest in directories here
`(shell . ("eza" "-al" "--color=always" "--icons"
"--group-directories-first" ,file))))

(add-to-list 'dirvish-preview-dispatchers 'eza)

(add-hook 'dired-mode-hook #'org-download-enable))
#+end_src
Expand Down

0 comments on commit 5595a37

Please sign in to comment.