5 ms·
So much fun in this editor. I'm surprised it is getting so much regular development. A breath of fresh air, it has helped edit many config files on remote shell
by fatcow 4y ago
So much fun in this editor. I'm surprised it is getting so much regular development. A breath of fresh air, it has helped edit many config files on remote shells.
- bombcar 4y agoFrom an editor that most people can exit to an actually powerful editor on its own right, nano has definitely evolved from just being a pico clone. It's really nice for config file editing if color-coding is enabled and supports the config file you're working on.
- waynecochran 4y agoDoesn't emacs have a nano mode?
- klodolph 4y agoMaybe you can get one. I don’t see a nano mode in MELPA or GNU, and it doesn’t ship with Emacs. Nano is also much more likely to be installed than Emacs, especially since Apple stopped shipping Emacs with macOS.
- jshier 4y agoApple also stopping shipping nano with macOS (as of 12.3) and went back to pico.
- klodolph 4y agoHuh, interesting. Nano is symlinked to pico. I never noticed, since I don’t use it.
- Fnoord 4y agoGNU Nano is GPLv3 which Apple boycots (its v3 since 2007 according to Wikipedia). Tells us GPLv3 works :-) not sure what the license of Pico is. My first text editor was Q&A on MSDOS, it relied on F-keys, and on Windows 9x I got used to ctrl as modifier. Pico/Pine and later Nano was a natural successor, easy to learn. I use Vim and ST now.
- assttoasstmgr 4y ago> not sure what the license of Pico is Apache 2.0. I've used pine as a mail reader for well over two decades at this point, mostly on big old UNIX boxes. GNU nano always felt like the knockoff version.
- Fnoord 4y agoRight,it got relicensed. Originally it was not available on e.g. Debian.
- sigzero 4y agoI don't even think Pico is in active development any more.
- sigzero 4y agoI wish they wouldn't do that. Nano is not Pico.
- klodolph 4y agoVim isn't vi, but vi is usually symlinked to vim. And sh is very often a symlink to something like dash or bash.
- gnulinux 4y agoRegardless emacs can take long to boot up (unless you invoke it with -Q) but nano is instant. So when I need to change one line of a file real quick, nano is the better tool imho.
- melling 4y agoI haven’t used Emacs in a few years and I don’t remember the startup time being a problem. Maybe because I always left it running? Anyway, I looked up what people are saying these days. Looks like maybe a second or two? https://www.reddit.com/r/emacs/comments/m8d55l/what_is_your_startup_time/ https://www.reddit.com/r/emacs/comments/m8d55l/what_is_your_...
- buescher 4y agoI like JED for that.
- nanomonkey 4y agoSetting up emacs server pretty much solves this problem as each subsequent launch uses the same running daemon. After that you just set up an alias that launches emacsclient like the following: alias editor='emacsclient -t' alias visual='emacsclient -c -a emacs'
- gnulinux 4y agoUnfortunately, I don't expect to have emacs server running in an EC2 instance intended to run a company service since it needs to be a copy of prod instance (for testing/development). In such instances nano is helpful.
- nanomonkey 4y agoAh, yes that is where tramp emacs package comes in handy, as it allows one to edit remote files within your local instance of emacs. Note there is also helm-aws [https://github.com/istib/helm-aws https://github.com/istib/helm-aws] for managing AWS EC2 server instances directly from Emacs.
- 4y ago
- distantsounds 4y agocan't you just... use nano?
- warvariuc 4y agoSince I discovered micro[1], it's my go to editor. [1] https://micro-editor.github.io/ https://micro-editor.github.io/
- smoldesu 4y agoAnother Micro advocate! I agree, it's also my go-to editor. It's a great halfway point between breaking out Emacs and resorting to Nano. Micro is dead-simple and gets work done without any complication.
- seanwilson 4y agoIn Micro, selecting text using shift with left/right arrow works (across lines too), but is there a way to make it work when you press up/down arrows? And how do you shift select to the end of the line?
- warvariuc 4y agoWorks as usual for me (I am on a Mac). shift+up/down selects lines. shift+fn+right -- selects till the end of the line.
- seanwilson 4y agoThanks, hmm, so shift up/down deselects anything that was selected for me. Shift left/right works and mouse select works. Shift+fn+left/right makes me switch tab. I'm guessing my keyboard shortcuts are different compared to your setup but I don't remember changing anything here (using the regular Terminal app for Mac).
- sph 4y agomicro > nano If it's not vim or emacs, a simple editor with CUA key binds should be the default everywhere, not nano. I love it.
- prmoustache 4y agoIs it that weird editor they tend to put on our distro these days were we end up having a lot of i x r R :s/foo/bar :w and :q embedded in the text and that we need to close quickly in fear of adding syntax error before doing an EDITOR=vi ?
- ______-_-______ 4y agoWho is "we"? You might be the only person out there who types out 7 full vim commands before opening your eyes to look at what app is running
- prmoustache 4y agoThat was tongue in cheek. I would say the problem is not to not know which app you are using but muscular reflexes. Sames happen to me if I open gedit, notepad.exe or even an text processor such as writer or word. I had to put vim binding to make vscode bareable otherwise I kept making errors.
- yjftsjthsd-h 4y agoThen `export EDITOR=vi` in your profile? Or in whichever global config file in /etc is appropriate, or possibly using your distro's alternatives system? This is an extremely solvable problem.
- prmoustache 4y agooh I didn't say it wasn't solvable, just that it catches me off guard every time I install a fresh new OS.
- yjftsjthsd-h 4y agoThat's fair:) I would say that you should automate it by using ansible or something like that, but I've done that and there's still a very jarring few minutes while you're running the initial install and getting enough of a system for ansible to run on.