Fix navi behavior when path doesn't exist and autoloads
This commit is contained in:
parent
a9ea6b4b2f
commit
81c2ad6963
@ -5,6 +5,14 @@
|
|||||||
:ensure nil
|
:ensure nil
|
||||||
:load-path "packages/navi"
|
:load-path "packages/navi"
|
||||||
:defer t
|
:defer t
|
||||||
|
:commands (navi
|
||||||
|
navi-by-tags
|
||||||
|
navi-matching-current-directory
|
||||||
|
navi-visit-cheat-file
|
||||||
|
navi-all-cheats
|
||||||
|
navi-cheats-for-tags
|
||||||
|
navi-cheats-matching-filename
|
||||||
|
navi-cheat-summary)
|
||||||
:init
|
:init
|
||||||
(defvar-keymap embark-navi-map
|
(defvar-keymap embark-navi-map
|
||||||
:doc "Keymap for actions on Navi cheats"
|
:doc "Keymap for actions on Navi cheats"
|
||||||
|
@ -227,6 +227,7 @@
|
|||||||
(dirs (when navi-path (split-string navi-path ":" t " "))))
|
(dirs (when navi-path (split-string navi-path ":" t " "))))
|
||||||
(when dirs
|
(when dirs
|
||||||
(dolist (file (->> dirs
|
(dolist (file (->> dirs
|
||||||
|
(-filter #'file-directory-p)
|
||||||
(-map (lambda (dir) (directory-files dir t ".*\\.cheat$")))
|
(-map (lambda (dir) (directory-files dir t ".*\\.cheat$")))
|
||||||
(-flatten)
|
(-flatten)
|
||||||
(-map (lambda (file) (navi-parse-cheat-file file registry)))))
|
(-map (lambda (file) (navi-parse-cheat-file file registry)))))
|
||||||
|
Loading…
Reference in New Issue
Block a user