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

Eager Eagle
link
fedilink
English
311M

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

How does micro compare to nano?

Eager Eagle
link
fedilink
English
5
edit-2
1M

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

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

Eager Eagle
link
fedilink
English
11M

ah the cope

Oh, the irony.

It’s 1,000 times larger.

Eager Eagle
link
fedilink
English
71M

oh, you…

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

“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

Eager Eagle
link
fedilink
English
21M

or maps your caps to Ctrl, like vim users map it to esc

Which is exactly where Sun Unix keyboards place it, in a same spot

Or build yourself a crkbd, yeah. That’s beside the point.

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

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

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.

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

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

Ephera
link
fedilink
21M

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…

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

But yeah, it buffers the lines.

clb92
link
fedilink
English
2
edit-2
1M

Doesn’t that just cut one line at a time?

Move the cursor to the start of what you want to cut, press ALT+A, then move the cursor with arrow keys (you’ll see text be highlighted from where the cursor was to where you move your cursor), then once you’ve moved the cusor to where you want, press CTRL+K to cut.

Vim doesn’t hate you. It loves who you could be.

I wish I could :q! you

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 149 users / day
  • 308 users / week
  • 697 users / month
  • 2.84K users / 6 months
  • 1 subscriber
  • 1.57K Posts
  • 34.8K Comments
  • Modlog