6 ms·
In Linux it's pretty easy to create such things with cups. A while ago I did a cups backend for my Fujitsu Quaderno A4 [1]. It is super useful to be able to jus
by tapia 25d ago
In Linux it's pretty easy to create such things with cups. A while ago I did a cups backend for my Fujitsu Quaderno A4 [1]. It is super useful to be able to just open any document, in any program that supports printing, and then just "print" it to my device.
[1] https://github.com/cristobaltapia/dpt-rp1-cups https://github.com/cristobaltapia/dpt-rp1-cups
- IdiotSavage 25d ago> any program that supports printing Unfortunately printing support seems to go out of fashion, at least in macOS land. Lately I needed a quick printout of a markdown document. I could have used TextEdit for the raw text, but I wanted the styling too. Learned that neither VSCode, Xcode nor Obsidian can print. (There is a community plugin for Obsidian.)
- rrr_oh_man 25d agoLOL. TIL you can’t print from VSCode.
- simonjgreen 25d agoOr Obsidian
- maybewhenthesun 25d agoprinting has never really been a thing from text editors I think. Used to be that printing a text file was just `cat myfile.txt > /dev/lp0` . It has been a while since I printed a plain text file, but I guess there's still a similar command available with some research.
- ptman 25d agovim/nvim at least have :print
- voidUpdate 25d agoI've done the same from a raspberry pi to a receipt printer, just piping to lp0
- deleted 25d ago[deleted]
- IdiotSavage 25d agoTextEdit.app supports printing, so does Notepad.exe (unless they removed that recently).
- namibj 25d agoI think back in the days before office workers that happened to do their work on a computer had access to the ancient relatives of "Microsoft Word"/"Libreoffice Writer", it was pretty normal for printers to take care of plain text files, with about as much fidelity as manual operation of a classic purely mechanical Typewriter. Since then printers progressively forgot how to cope with such "documents", though IIRC good-old HP "PCL" should only require about a bare minimum of framing/job control to get a modern printer to handle ASCII plain text.
- geocar 25d ago> printing has never really been a thing from text editors I think. It's always been a thing: We programmed on paper before we had screen editors, and so early screen editors have always had a way to murder trees on demand: In vi it's :ha In emacs it's M-x print-buffer > It has been a while since I printed a plain text file, but I guess there's still a similar command available with some research. `lp myfile.txt` I still prefer using hardcopy for reading/debugging.
- NooneAtAll3 25d ago> printing has never really been a thing from text editors I think. there's literally ctrl+p shortcut for printing
- trashb 24d agoI used to print a lot of code from Geany, that has some nice support for printing line numbers and code highlights that I have a hard time replicating in other tools.
- jimmythefish 24d agoFairly sure you can netcat asci on port 9100 to HP Jet Direct printers still.
- rrr_oh_man 24d agoEdit: This one seems to work well: pdconsec.vscode-print Link: https://marketplace.visualstudio.com/items?itemName=pdconsec.vscode-print https://marketplace.visualstudio.com/items?itemName=pdconsec...
- nacs 24d agoAnd of course it just renders an HTML document (applies some CSS to the text content) and then uses the embedded browser's printing.
- tpmoney 24d agoXcode should have printing capabilities. 26.6 does on my system anyway.
- IdiotSavage 24d agoYou're right. I mis-remembered it. I see that it applies styles to markdown documents, but keeps all formatting characters visible (e.g. # for titles). I guess I wasn't happy with that and looked for another solution.
- flippingheck 24d agoThat is much fewer LoC than I expected. How is "offline e-reader" handled? Does CUPS retry? Do you do this outside of your LAN?