diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-12 04:45:47 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-12 04:45:47 -0500 |
| commit | 2314015ae113b046222b98e76f155020a1408eda (patch) | |
| tree | ca7d5d9590b81c35c4836595746cd1e91c79884f /tests/test-coverage-core--changed-lines.el | |
| parent | c89234f42f33a8c9d681024179dbce0b24477b36 (diff) | |
| download | dotemacs-2314015ae113b046222b98e76f155020a1408eda.tar.gz dotemacs-2314015ae113b046222b98e76f155020a1408eda.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 'tests/test-coverage-core--changed-lines.el')
0 files changed, 0 insertions, 0 deletions
