-
Hi. I use dirvish for a while and doesn't have any issue. But after some time. I get this error: ;; -*- lexical-binding: t; -*-
(use-package dirvish
:straight t
:after dired camp-loaded
:init
(dirvish-override-dired-mode)
:custom
(dirvish-quick-access-entries
'(("h" "~/" "Home")
("p" "~/project/" "Project")
("l" "~/playground/" "Playgound")
("o" "~/office/" "Office")
("t" "~/tmp/" "Temp")
("T" "/tmp" "/tmp")))
(dirvish-attributes '(subtree-state nerd-icons file-size vc-state git-msg))
(dirvish-cache-dir (expand-file-name "dirvish" camp-cache-dir))
(dirvish-mode-line-format '(:left (sort file-time symlink) :right (omit yank index)))
(dirvish-fd-default-dir "~/")
(dirvish-use-header-line t) ; 'global make header line span all panes
(dirvish-use-mode-line t)
:init
(+map!
;; Open
"o-" '(dirvish :wk "Dired"))
:config
(+nvmap! :keymaps 'dirvish-mode-map
"?" '(dirvish-dispatch :wk "Dispatch")
"a" '(dirvish-quick-access :wk "Quick Access")
"f" '(dirvish-file-info-menu :wk "File info menu")
"q" '(dirvish-quit :wk "Quit")
"s" '(dirvish-subtree-toggle :wk "Toggle subtree")
"TAB" '(dirvish-subtree-toggle :wk "Toggle subtree")
"X" '(dired-do-flagged-delete :wk "Flagged delete")
"x" '(dired-do-delete :wk "Delete")
"y" '(dirvish-yank-menu :wk "Yank menu")
;; I need to simple copy file in place with different name
;; [remap dired-do-copy] '(dirvish-yank-menu :wk "Copy menu")
[remap dired-do-redisplay] '(dirvish-ls-switches-menu :wk "LS switches menu"))
(+map-local! :keymaps 'dirvish-mode-map
"d" '(+dired-copy-dirpath-as-kill :wk "Yank dir path")
"f" '(dirvish-copy-file-name :wk "Yank filename")
"F" '(dirvish-copy-file-path :wk "Yank file path")
"h" '(dired-omit-mode :wk "Omit uninteresting files")
"o" '(dirvish-quicksort :wk "Toggle or edit sort order")))
(use-package dirvish-extras
:ensure nil
:after dirvish)
How to debug this issue? Thanks ❤️ |
Beta Was this translation helpful? Give feedback.
Answered by
azzamsa
Jul 21, 2023
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
azzamsa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is because I use fish shell
Setting back the default shell to bash solves the issue.