aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 04:45:47 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 04:45:47 -0500
commit1f27d95a71d2689e78bbc452ea13a86b2f4791e4 (patch)
tree03270390c2932d34437b2579b70aafd664b9442f /scripts
parent528f2005cd6213549eef6a29a5d808919fd4482a (diff)
downloaddotemacs-1f27d95a71d2689e78bbc452ea13a86b2f4791e4.tar.gz
dotemacs-1f27d95a71d2689e78bbc452ea13a86b2f4791e4.zip
feat(dirvish): print the file at point with P
`P' in dirvish/dired now runs `cj/dirvish-print-file': it sends the file at point to the default printer via CUPS (`lp', falling back to `lpr'), after a confirmation prompt. It refuses directories and file types outside `cj/dirvish-print-extensions' (pdf, txt, org, images, source files, ...). CUPS filters handle PDFs directly, so `lp <file>' covers everything in the list, and no separate print dialog is needed. `P' was the project/home-relative variant of `cj/dired-copy-path-as-kill', now dropped (the `p' absolute-path and `l' org-link bindings stay, and `M-x cj/dired-copy-path-as-kill' still works). Plain dired's built-in `P' was `dired-do-print', which `dirvish-mode-map' had already shadowed, so this just replaces it with a type-aware version. Tests cover the predicates and the command's confirm / decline / no-file / directory / non-printable / no-printer / print-failure paths.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions