Live data from Hacker News

Customize Nano Text Editor (2022)

shafi.ddns.net

1–10 of 69 posts

Re: Customize Nano Text Editor (2022)

#3
Nano is my go-to whenever doing something quick in the terminal. It's quick, I don't need to learn how to use it, and now it's going to be slightly more convenient. I had no idea it had these options. Thank you!

Re: Customize Nano Text Editor (2022)

#4
I must have used nano for years at this point, and I'm shocked to find out how customisable nano actually is! I tend to use micro[0] on most of my systems now just because it comes with really lovely defaults and keybindings that are a bit more familiar, but this might make me take a second look at nano in future.

[0] https://micro-editor.github.io/

Re: Customize Nano Text Editor (2022)

#6
If you're on Mac and can't get .nanorc to work, check out https://stackoverflow.com/a/73373788/3876196

It's also possible that you simply do NOT have nano installed at all, and just have the simlink from nano to pico by default. That was my case. In this situation, install nano and it should work.

Re: Customize Nano Text Editor (2022)

#7
The line numbers and position bar are some real quality-of-life enhancements!

I don't regularly use nano anymore, but I have often thought that more programs should imitate the way it shows the command shortcuts on-screen as a kind of instant tutorial. I remember my physics major friends in college thinking it was pure snobbery for vi not to do that by default. Back then we were dialing in to an HP-UX server and using pico, which nano is an open-source clone of. For those who aren't aware, pico was originally the editor component of the Pine email client.

Re: Customize Nano Text Editor (2022)

#8
post #7

The line numbers and position bar are some real quality-of-life enhancements! I don't regularly use nano anymore, but I have often thought that more programs should imitate the way it shows the command shortcuts on-screen as a kind of instant tutorial. I remember my physics major friends in college thinking it was pure snobbery for vi not to do that by default. Back then we were dialing in to an HP-UX server and usin…

> physics major friends in college thinking it was pure snobbery for vi

I don't think it is snobbery, that approach would clutter the entire screen. Basically every single small/capital letter and symbol has a function in vim.

Re: Customize Nano Text Editor (2022)

#9
post #7

The line numbers and position bar are some real quality-of-life enhancements! I don't regularly use nano anymore, but I have often thought that more programs should imitate the way it shows the command shortcuts on-screen as a kind of instant tutorial. I remember my physics major friends in college thinking it was pure snobbery for vi not to do that by default. Back then we were dialing in to an HP-UX server and usin…

> physics major friends in college thinking it was pure snobbery for vi I don't think it is snobbery, that approach would clutter the entire screen. Basically every single small/capital letter and symbol has a function in vim.

To its credit, vim does show a help text with :q on it if you start it with no file. Back then, it was just vi opening to a blank screen.

Re: Customize Nano Text Editor (2022)

#10
post #9

Earlier quoted context omitted.

> physics major friends in college thinking it was pure snobbery for vi I don't think it is snobbery, that approach would clutter the entire screen. Basically every single small/capital letter and symbol has a function in vim.

To its credit, vim does show a help text with :q on it if you start it with no file. Back then, it was just vi opening to a blank screen.

set shortmess+=I
Post reply on HN