this post was submitted on 26 Oct 2024
378 points (97.0% liked)

Programmer Humor

32305 readers
510 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 16 points 7 hours ago (3 children)

Ctrl-K and Ctrl-U in nano, a sane editor that does not hate you

[–] [email protected] 14 points 6 hours ago (3 children)

Ctrl-X Ctrl-V in micro, if you appreciate a sane editor with sane keybindings.

[–] [email protected] 1 points 3 minutes ago

"Sane" keybindings are questionable given Ctrl's location (painful to press with both pinky and thumb fingers). It's standard, I'll give it that, but those in helix or vim are mostly (I'm looking at you, navigation between splits) much saner all things considered

[–] [email protected] 4 points 5 hours ago

That's cool, and I can't wait for it to gain widespread adoption, but nano is already more commonly installed by default.

[–] Blisterexe 3 points 6 hours ago (2 children)

How does micro compare to nano?

[–] [email protected] 15 points 4 hours ago (1 children)
[–] [email protected] 4 points 3 hours ago
[–] [email protected] 2 points 3 hours ago* (last edited 3 hours ago) (1 children)

better ootb experience with syntax highlighting, sane keybindings, plugin system, and other little things nano lacks.

[–] [email protected] 1 points 1 hour ago* (last edited 30 minutes ago)

Nano has had syntax highlighting for quite a while.

Its keybindings also make sense if your brain is still stuck in the '90s. If not, they're literally printed at the bottom of the terminal.

If I need plugins, I'm not gonna be fucking around with a terminal text editor.

What are these "other little things?" Certainly not "probably already installed on your system."

[–] [email protected] 3 points 6 hours ago (1 children)

How do I do regex or connect to an LSP with nano?

[–] [email protected] 3 points 5 hours ago (1 children)

That's the neat part: you don't.

[–] [email protected] 3 points 4 hours ago (1 children)

Fair enough. Those are things that I like to be able to use, however. Which makes nano/pico/micro a non-starter for me. Different strokes for different folks.

[–] [email protected] 2 points 4 hours ago (1 children)

Well, they're not necessary for 99.999% of what you need a quick CLI text editor for.

[–] [email protected] 1 points 13 minutes ago

The use-cases for unquick GUI text editors are merely a subset of those solved by quick TUI text editors :P

[–] [email protected] 2 points 6 hours ago (1 children)

Doesn't that just cut one line at a time? Or is this Emacs-like, where it buffers the lines?

That host doesn't have internet access, though, so installing a different editor wasn't really an option to begin with...

[–] [email protected] 5 points 5 hours ago

If the host doesn't already have nano, you fucked up super early

But yeah, it buffers the lines.