Dear Geany-team,
I have **_added functionality_** to `print_external`. More specific, I have included/aligned most of the replacements that are present in the build dialog box:
- replace `%d` with the absolute path - replace `%e` with the filename (excluding extension) - replace `%f` with the filename (including extension) - replace `%p` with the absolute path/filename (including extension)
This would permit to use external print commands like:
`cat "%p" | prt1403 -e -y -u PYNCKELS -j %e -o "%p".pdf -`
which would create an output as shown in the joined file.
During development, I have noticed a file `config~`. I have **_added this name_** to `.gitignore`
I would be much obliged if you could accept this PR.
[hellowrl.f08.pdf](https://github.com/user-attachments/files/18974393/hellowrl.f08.pdf)
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/4250
-- Commit Summary --
* Add print_external macros %e %d * Add config~ to files to ignore * Add %d %e %p to print_external, align meaning of %f with build
-- File Changes --
M .gitignore (1) M src/printing.c (25)
-- Patch Links --
https://github.com/geany/geany/pull/4250.patch https://github.com/geany/geany/pull/4250.diff
github-comments@lists.geany.org