dired-hacks
dired-hacks copied to clipboard
Adding -F to dired-listing-switches breaks ignored subtree files
Reproduce
(setq dired-ls-sorting-switches "-alF")
Then try dired-subtree-toggle
on, say, any directory. You should see ./
and ../
listed under it, when the expectation is that they are excluded.
I suspect this has something to do with the trailing forward slash that ls -F
appends to file names.
Version information
;;; dired-subtree.el --- Insert subdirectories in a tree-like fashion
;; Package-Version: 20210105.1127
;; Package-Commit: d1a2bda6aa8f890cb367297ed93aee6d3b5ba388
;; Version: 0.0.1
;; Package-requires: ((dash "2.5.0") (dired-hacks-utils "0.0.1"))
GNU Emacs 28.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-03