Sort files by namespace :)
This commit is contained in:
parent
275b470eec
commit
da5bf8d3fa
1 changed files with 4 additions and 3 deletions
|
@ -87,13 +87,14 @@
|
||||||
(-> file find-file-extension pred)))
|
(-> file find-file-extension pred)))
|
||||||
|
|
||||||
(defn find-processable-file-paths
|
(defn find-processable-file-paths
|
||||||
"Returns a seq of processable file paths (strings) in alphabetical order."
|
"Returns a seq of processable file paths (strings) in alphabetical order by
|
||||||
|
namespace."
|
||||||
[dir pred]
|
[dir pred]
|
||||||
(->> (io/file dir)
|
(->> (io/file dir)
|
||||||
(file-seq)
|
(file-seq)
|
||||||
(filter (partial processable-file? pred))
|
(filter (partial processable-file? pred))
|
||||||
(map #(.getCanonicalPath %))
|
(sort-by #(->> % read-file-ns-decl second))
|
||||||
(sort)))
|
(map #(.getCanonicalPath %))))
|
||||||
|
|
||||||
;; ## Project Info Parsing
|
;; ## Project Info Parsing
|
||||||
;; Marginalia will parse info out of your project.clj to display in
|
;; Marginalia will parse info out of your project.clj to display in
|
||||||
|
|
Loading…
Reference in a new issue