I need to convert #HTML to #Markdown and I'm looking for a tool to do that.
The output should
• preserve line breaks in paragraphs
• not contain additional, unnecessary linebreaks (e.g. 4 empty lines between paragraphs)
• be configurable (e.g. whether to use * or _ for emphasis, or * vs - for unordered lists)
• if possible, allow me to hook into details (e.g. to convert <pre class="shell"> to ```sh)
#Python or #CLI. Alternatively, what's a really configurable prettifier?
Okay, so. I have a #PDF and a #DOCX file. And I’d like to compare them. And since I’m a programmer, I don’t want to compare them visually, but with a #diff. But how?
Like this.
alias pdfcat='gs -q -sDEVICE=txtwrite -o-'
alias doccat='pandoc -t plain'
pdfcat a.pdf > a.txt
doccat b.docx > b.txt
git diff --no-index --word-diff a.txt b.txt
And since we’re using --word-diff, it doesn’t matter that the two files use wildly different line wrapping.
Hot take: Modern #Unix#CLI tools should not have a one- or two-letter command name. Your tool is not that cool that it’ll be as ubiquitous as ls or cd, and it’ll just create conflicts down the line. Let me create the aliases myself if I really need to save the keystrokes.
If you're building a CLI tool that can churn on large amounts of data for hours and you don't implement any kind of progress output, we won't become friends.
(And no, it refuses to work with stdin, else I would've just used pv and be done.)
• provides a standard 16(! not 8!) set of ANSI colors that actually correspond to the standard colors (i.e. green looks green, blue looks blue etc.)
• has good contrast between most of these colors, so that if a CLI tool decides to use gray-on-blue status bars, it’s still readable (this is actually the most important feature)
• uses neutral or warm colors (no blue-ish tint)
• optionally: has a 256-color variant for #Vim or #Neovim
Templates can be downloaded as separate packages (usually with more than one template) or created by the user. Text & images can also be placed manually using coordinates.
Gnome c'était mieux avant (enfin...pour les inconditionnels de la GUI)
Pour passer toutes les apps GTK en thème dark...
Avant : un bouton switch dans une GUI d'ajustement de préférence
Now : gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
...
Bisous les débutant.e.s qui ne parlent pas CLI !
Anyone with a recommendation for a #TUI (aka #terminal) file manager with split (mc-style) or multiple window interface that supports #WebDAV and/or #SFTPon its own?
I know that I could just use FUSE to mount remote folders locally – except that I can’t use FUSE on one of the machines that I need this file manager on (because it’s running WSL1 – please refrain from commenting on that).
So, it needs to be able to talk to WebDAV or SFTP without FUSE.
Suppose I was thinking about writing #manpages for the command-line tools I build, but I don’t want to learn a 50 year old typesetting language (#troff) to do that.
What are my options? #Asciidoc? What would you use? What do you use?
I looked into #Pandoc Markdown to man conversion, and it seemed to suck.
#Linux#CLI users! I'm curious how many of us are using "modern", "enhanced", "reimagined" versions of classic command-line tools. Think bat instead of cat, rg instead of grep, exa instead of ls.
If you don't use them, why? Is the installation overhead too much, e.g. because you're using a lot of machines? Does your brain need to stay compatible with the standard tools for some reason?
Feel free to write a reply, the poll can't possibly cover everything :)
Before executing important commands and scripts over #SSH, use #screen in case of disconnect. If your connection drops or you close the terminal, you can SSH back in and enter screen -r to recover from where you left off. Being reunited with that hanging command prompt will be a relief! #tuesdaytip#gnu#linux#cli#admin
Before I go out and make it myself, I'll ask here if someone knows of an existing solution. I am looking for a cli time tracking solution with the following hard requirements:
conflict-resistant git-syncable plain text storage
tracking multiple simultaneous events
tags, notes
simple checkin/-out commands with some intelligence
data analysis tools built-in, at least data export
I'm using #timewarrior but it's lacking in most above regards.
Okay. I really wanted to love #nbhttps://xwmx.github.io/nb/ for personal knowledge management. While most of its design choices (especially: #Git, #Markdown & #CLI) are exactly what I’m looking for, its todo management features are severely lacking:
• no arbitrary nesting of tasks (only top-level “todos” with a single sublevel of ”tasks”), no dependencies
• due dates are attached to todos, not tasks, can’t be queried(!) or repeat
• priorities, contexts etc. would need to be modeled via hashtags