aboutsummaryrefslogtreecommitdiff
path: root/docs/design
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 13:44:40 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 13:44:40 -0500
commitb361e35aa2a33a6050bd42678a7e520b2c44395e (patch)
tree9beb7545eb65385b13246e561e764844ba49eb70 /docs/design
parentff07ee56927d368c733e368be23adef7ed24964b (diff)
downloaddotemacs-b361e35aa2a33a6050bd42678a7e520b2c44395e.tar.gz
dotemacs-b361e35aa2a33a6050bd42678a7e520b2c44395e.zip
refactor(dirvish): extract cj/--dired-line-is-directory-p
`cj/dired-mark-all-visible-files' classified the current line as a directory via `(looking-at "^. d")' inline. Lift the classification into `cj/--dired-line-is-directory-p', a string predicate that takes a line and returns non-nil when it's a directory listing. The wrapper still walks the dired buffer line by line and calls `dired-mark' -- that iteration is dired-coupled and stays untested -- but the format-aware predicate is now isolated and verified. Six Normal/Boundary tests cover unmarked directories, marked directories (`*' prefix), regular files (`-' instead of `d'), symlinks (`l'), empty lines, and dired header lines (` /path:' and ` total N').
Diffstat (limited to 'docs/design')
0 files changed, 0 insertions, 0 deletions