Live data from Hacker News

Nano 5.7

lists.gnu.org

51–60 of 157 posts

Re: Nano 5.7

#51
Even nano can become a powerful programming editor if combined with fzf[0]. You can quickly navigate to files, tags and language server stuff and then open your files directly into the line of interest. It's a nice exercise for someone willing to get a feel of the Unix way (I'm not advocating it as your daily driver, though).

[0] https://github.com/junegunn/fzf

Re: Nano 5.7

#52

I don't understand the people who dislike nano as an editor for the *nix system. After spending in it for like 30 minutes - it becomes an indispensable tool for quickly touching up text files anywhere you go to! No matter where I SSH to (*nix systems) - I always had nano available.

I pretty much agree and share the love for Nano, but - just as a comment - it happened to me that it wasn't available in some Red Hat servers. Depending on your regular work and the type of servers you SSH into, you could expect Nano to be already installed or not

Ditto, on a fresh Arch Linux install I was using once.

Re: Nano 5.7

#53

CMD-F "micro" returned nothing, so here is a link to a modern nano replacement: https://micro-editor.github.io

I'm curious what the intended audience for micro is? It seems like if you want extensibility you use vi or emacs. If you want a very quick and dirty program where you use the same 4 or 5 commands every time you open it, you use nano since it's already installed. I don't know a lot of people in the middle, personally, so I'm curious what people who are using micro like about it in particular.

Re: Nano 5.7

#55
I use nano when writing short Python or bash scripts in Termux for my Android phone. Is there a different editor I should try? Note that this isn't a common activity, so I'm likely to forget key bindings. I like how nano always displays those at the bottom.

Re: Nano 5.7

#56
post #55

I use nano when writing short Python or bash scripts in Termux for my Android phone. Is there a different editor I should try? Note that this isn't a common activity, so I'm likely to forget key bindings. I like how nano always displays those at the bottom.

Nah, nano is probably fine for what you are doing. It excels at quick short edits.

Re: Nano 5.7

#57
post #45

Earlier quoted context omitted.

Its more like using the right tool for what you actually want to do. 0. Use cat and output to a file to really quickly make a new file from your clipboard or from the web 1. Nano is great for editing config / text files quickly and the learning curve is really low due to a more modern design. 2. vim can be reliably found everywhere on nearly any unix machine but the learning curve is much higher initial learning curv…

> due to a more modern design nano is a clone of pico, the text editor for the pine email client, so "modern" is definitely a matter of some interpretation here. :)

It’s more similar to modern text editors, but yes it’s definitely more of a precursor

Re: Nano 5.7

#58
post #31

As a vim and emacs user, I don't give nano any hate. I'm surprised when programmers use it, sure, but that's because if my profession was going to require editing text files for hours a day (which it does), I would be happy to trade a steeper learning curve now for a less unpleasant job experience later. I totally understand why non-programmers don't use it. If your job does not involve you editing text files for hou…

More than that, Benno Schulenberg, nano's main developer, is actively against changes turn nano into anything close to a mini-IDE. He rejected patches that could nano have code completion from external tools, multi-pane/screens, source code navigation and many others.

I respect his lead, but that discourages contribution.

Disclaimer: I'm a very sporadic nano contributor.

Re: Nano 5.7

#59
I love the release motto in Romanian and what it references!

On topic (sic!): Hardcore vim-user, loving and recommending nano to every new Unix user. Guess I'm schizophrenic according to current HN comments.

Re: Nano 5.7

#60
post #48

I never understood the hate Nano gets from vi users. Nano does many things quicker and easier than vi. For example, search & replace. Would I code in Nano? No. Do I use Nano to edit configuration files and make other small edits? Absolutely.

I'm intrigued. How do you search and replace in nano and how can it be better than `:%s/ / /gc`? I thought search and replacement was one of the killer features of vim.

Search replace in nano via "Where is" (^W), "Replace" (^R), "Regexp"(M-R).
Post reply on HN