scy, to webdev
@scy@chaos.social avatar

I need to convert to 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)

or . Alternatively, what's a really configurable prettifier?

:BoostOK:

awoodsnet, to Bash
@awoodsnet@phpc.social avatar

what do you wish was easier about Bash scripting?

scy, (edited ) to linux
@scy@chaos.social avatar

Okay, so. I have a and a 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 . 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.

RL_Dane, to random
@RL_Dane@fosstodon.org avatar

Dearest developers,

If you could just, like, ya know, like just NOT assume I'm running a white-on-black terminal, I'd be right chuffed.

Sincerely yours,
Monsieur Bloodshot.

scy, to linux
@scy@chaos.social avatar

Hot take: Modern 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.

Looking at you, ag, rg, nb, but even gs too.

kkarhan, to linux
@kkarhan@mstdn.social avatar

Good news everyone!

OS/1337 now finally boots to a [quite castrated] version of / in glorious 80x25.

Thanks a lot to @SweetAIBelle and also thanks to @landley for nudging me in the right directions...

https://github.com/OS-1337/OS1337/issues/2#issuecomment-1839511578

scy, to linux
@scy@chaos.social avatar

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.)

#Linux #CLI

scy, to vim
@scy@chaos.social avatar

Anyone got suggestions for a #CLI / #terminal #colorscheme that

• 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

scy, to memes
@scy@chaos.social avatar

Thing that I wish existed: A command-line meme generator. Something that you could call like

memgen --template tintin-wednesday bubble2="Captain, it's Monday"

or

memegen -t surprised-pikachu label=CEO

or

memegen -t 3-spider-men head1=file:tobey.jpg head2=file:andrew.jpg head3=file:tom.jpg

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.

kubikpixel, to workersrights
@kubikpixel@chaos.social avatar

These five #CLI tools are almost never mentioned to make your #work pleasant in the #terminal:

0️⃣ https://taskwarrior.org
1️⃣ https://timewarrior.net
2️⃣ https://taskell.app
3️⃣ https://jrnl.sh
4️⃣ https://github.com/sharkdp/fd

Bonus:
5️⃣ https://github.com/Peltoche/lsd

#foss #floss #oss #opensource #linux #bsd #shell #colors

brunus, to linux French
@brunus@mamot.fr avatar

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 !

scy, to linux
@scy@chaos.social avatar

Anyone with a recommendation for a (aka ) file manager with split (mc-style) or multiple window interface that supports and/or on 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.

Suggestions?

scy, to linux
@scy@chaos.social avatar

Pro tip: less can filter the lines it displays. Hit the “&” key and enter a search pattern. You’ll only see lines matching the pattern.

Want to only see lines that don’t match the pattern? Prefix the pattern with an exclamation mark.

Super useful when looking at logs, for example.

The man page is definitely worth a read, it can do a bunch more stuff you might find interesting.

scy, to linux
@scy@chaos.social avatar

Suppose I was thinking about writing ⁠s for the command-line tools I build, but I don’t want to learn a 50 year old typesetting language () to do that.

What are my options? ? What would you use? What do you use?

I looked into Markdown to man conversion, and it seemed to suck.

feoh, to random

OK a question for the junkies out there.

Are you OK using next/previous key shortcuts to move between tabs, or are you like me where it's random access or GTFO?

For me, being able to Ctrl/Cmd-F1,2,3,4,5 etc to switch between sessions is a huge productivity boost.

I know a lot of folks love , but is a single key chord to switch sessions even possible in it?

scy, (edited ) to linux
@scy@chaos.social avatar

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 :)

skinnylatte, to Help
@skinnylatte@hachyderm.io avatar

if i have a folder of .md text files that all have a date in this format: date: "2003-01-26T06:24:10Z"

in the front matter

but they are on different lines

and i want to delete the quotes from all of the files at once

what's my best approach?

(i don't know how to write regex properly)

i use sublime text, and vim, if it helps

aral, to random
@aral@mastodon.ar.al avatar

A couple of command-line tools I’ve recently switched to using:

  • yazi as file manager instead of lf (fast and, for me at least, more intuitive and better handles default editor)

https://terminaltrove.com/yazi/

  • ouch for compression/decompression from CLI instead of getting the fucking unintuitive flags wrong every fucking time

https://terminaltrove.com/ouch/

(Thanks to @orhun for the recent link to Terminal Trove for the new finds.)

5am, to linux
@5am@fosstodon.org avatar

Before executing important commands and scripts over , use 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!

nobodyinperson, to taskwarrior
@nobodyinperson@fosstodon.org avatar

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.

#boostswelcome #cli #git #timetracking

ramikrispin, (edited ) to vim
@ramikrispin@mstdn.social avatar

TIL about neovim, a code editor. Does anyone use it? Any feedback? What are the use cases? It seems to be somewhere between vim and VScode.

https://www.youtube.com/watch?v=c4OyfL5o7DU&

peterrenshaw, to webassembly
@peterrenshaw@ioc.exchange avatar

“WASI Preview 2: What WebAssembly Can and Can’t Do Yet”

light on technical details, worthy as a ‘heads-up’, quick read.

/ / / / <https://thenewstack.io/wasi-preview-2-what-webassembly-can-and-cant-do-yet/>

tantramar, to macos
@tantramar@nojack.easydns.ca avatar

Just picked up a copy of Joe Kissell’s Take Control of the Mac Command Line with Terminal, 3rd edition. @joekissell https://www.takecontrolbooks.com/command-line/?attribute_pa_format=ebook

RichiH, to random
@RichiH@chaos.social avatar

telnet mapscii.me is the coolest thing you'll see all day, maybe all week.

scy, (edited ) to markdown
@scy@chaos.social avatar

Okay. I really wanted to love https://xwmx.github.io/nb/ for personal knowledge management. While most of its design choices (especially: , & ) 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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • kavyap
  • thenastyranch
  • khanakhh
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • cubers
  • Durango
  • rosin
  • megavids
  • cisconetworking
  • mdbf
  • osvaldo12
  • tester
  • ethstaker
  • vwfavf
  • modclub
  • GTA5RPClips
  • Leos
  • provamag3
  • tacticalgear
  • normalnudes
  • JUstTest
  • All magazines