this post was submitted on 25 Oct 2023
2245 points (99.2% liked)

Programmer Humor

35210 readers
31 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

I'm trying out Obsidian for taking notes, and this made me laugh.

you are viewing a single comment's thread
view the rest of the comments
[–] nautilus@lemmy.dbzer0.com 169 points 2 years ago (10 children)
[–] folkrav@lemmy.world 132 points 2 years ago* (last edited 2 years ago) (5 children)

It's hard to hate nano, but IMHO there also isn't anything to like in particular either. It's basically a TUI notepad. It's there, it lets people edit files... and that's pretty much all there is to it.

[–] killeronthecorner@lemmy.world 152 points 2 years ago (1 children)

You can use nano without having to read anything about nano. That might be the only thing that is better about it than vim, but it's a damn important thing.

[–] nautilus@lemmy.dbzer0.com 69 points 2 years ago (1 children)

I have zero patience when trying to make small adjustments to files, which is what my command line text editor should be for. Nano just has everything at the bottom in case you forget (I do, frequently) so the workflow is ridiculously streamlined for me

[–] killeronthecorner@lemmy.world 19 points 2 years ago (1 children)

Absolutely. It also has whole-line cut/uncut which is a godsend when working with config files

[–] indepndnt@lemmy.world 10 points 2 years ago (1 children)

Ironically, that's like the one thing I've learned to do in Vim.

[–] fushuan@lemm.ee 5 points 2 years ago* (last edited 2 years ago) (2 children)

Because it's easy, dd to delete a line and p to paste it somewhere else.

[–] DaPorkchop_@lemmy.ml 3 points 2 years ago (1 children)

Personally I'd be somewhat nervous using dd to edit parts of a text file, but you do you :)

[–] fushuan@lemm.ee 2 points 2 years ago

Well, if you dd+p you paste it back again, and then it's in the clipboard so you can p it in other places. In any case you can u(ndo) it without issues.

[–] bpm@lemmy.ml 2 points 2 years ago

yy to copy, dd to cut, p to paste. Need to move 5 lines at once? No problem, move to the first line and use d5d, and p to paste it. Vim gets a bad rap for being confusing, but it's so fast to move text around once you get the hang of it.

[–] reverendsteveii@lemm.ee 37 points 2 years ago

it's basically a TUI notepad. It's there, it does one job and that's all there is to it

That's what the people who like it like about it.

[–] ILikeBoobies@lemmy.ca 33 points 2 years ago (3 children)

That’s it’s job

What else is there for it to do?

[–] folkrav@lemmy.world 9 points 2 years ago* (last edited 2 years ago)

I mean, why compare it with vim at all then. Apples and oranges...

[–] Amends1782@lemmy.ca 8 points 2 years ago

Yeah it literally follows the UNIX philosophy

[–] Spider89@lemm.ee 8 points 2 years ago

Forget KISS, amirite.

[–] hemko@lemmy.dbzer0.com 18 points 2 years ago

nano is just... There when you need a text editor for something. Simple and purposeful

[–] MonkderZweite@feddit.ch 1 points 2 years ago

It has syntax highlighting and mouse support.

[–] marduk@lemmy.sdf.org 52 points 2 years ago* (last edited 2 years ago)

I like nano because it has worked any time I needed it. I don't dislike nano because I'm not good enough at Linux to have ever run into its limitations

[–] locuester@lemmy.zip 27 points 2 years ago (2 children)

nano gang checking in.

However, I’ve been forced over time to remember “:wq” to get unstuck should vim randomly appear.

[–] dukk@programming.dev 14 points 2 years ago

Alternatively, you can save a key and use :x (And :q! to quit without saving)

Yeah, that’s such a Vim user thing to say :P

[–] PoolloverNathan@programming.dev 1 points 2 years ago* (last edited 2 years ago) (1 children)

:up|cq to save a write cycle and signal an error to whatever opened Vim.

[–] locuester@lemmy.zip 3 points 2 years ago

How do u learn this voodoo

[–] ensignrick@startrek.website 8 points 2 years ago

I personally like nano but it's what I used first. So I learned the commands. Vim I still forget Everytime.

[–] habanhero@lemmy.ca 6 points 2 years ago

Pico gang reporting in.

[–] affiliate@lemmy.world 5 points 2 years ago

i’ve only ever used nano in the early stages of a gentoo install, when it’s too early to install vim and import my dot files 😈

[–] XEAL@lemm.ee 3 points 2 years ago

Here!

I hate terminal-based text editors

Nano seems quite user/idiot friendly

[–] nullpotential@lemmy.dbzer0.com 2 points 1 year ago (1 children)
[–] Troz@sh.itjust.works 2 points 7 months ago

I made that switch a few months ago just so I could cut, copy and paste without having to lookup how to do it. it's been great.

[–] FriendBesto@lemmy.ml 1 points 1 month ago* (last edited 3 weeks ago)

Proudly, first thing I install on Termux.