GNU Nano gains optional modern keybindings – OSnews (www.osnews.com)
from Alphane_Moon@lemmy.ml to linux@lemmy.ml on 06 Jun 07:03
https://lemmy.ml/post/16529627

I almost feel like this a somewhat pointless feature. It’s almost easier to just learn the default ones as opposed to adding “-modernbindings” or creating an “enano” variant/copy.

#linux

threaded - newest

GravitySpoiled@lemmy.ml on 06 Jun 07:11 next collapse

That’s your opinion.

I like updating it to modern conventions. One day they become default and on another day you get rid of the old ones. The people of the future don’t have to learn two sets of keybindings.

Alphane_Moon@lemmy.ml on 06 Jun 07:36 next collapse

It’s definitely just my opinion. Honestly did not mean to imply otherwise.

I would almost prefer them to just switch to the new keybindings by default in version 8.0.

Chewy7324@discuss.tchncs.de on 06 Jun 10:35 collapse

It’s definitely just my opinion. Honestly did not mean to imply otherwise.

For my opinion I usually create a comment below my post to seperate my opinion and the post itself.

On-topic: I do believe it’s useful to have this switch and there’s nothing stopping distros to change their default. Completely replacing the default keybindings might be surprising to long time users, but I also believe it should be done at some point. For the meantime this switch can be simply added as an alias.

Alphane_Moon@lemmy.ml on 06 Jun 11:46 collapse

Fair point. I guess this was more of a casual post, so I didn’t think too much about it.

I would have preferred if they switched to new keyboard model in version 8.x by default.

I am a relatively light Linux user. Raspberry Pi headless via DietPi/Debian for NAS/Media server/torrents/PiHole and some experiments with self hosted services on major cloud services. I prefer to stick to defaults whenever possible.

Chewy7324@discuss.tchncs.de on 06 Jun 16:48 collapse

I prefer to stick to defaults whenever possible.

Same goes for me.
E.g. changing vim keybindings on my local system to better suit my non-QWERTY keyboard would be annoying since they don’t transfer to remote systems. That’s a reason I like fish, because it’s defaults are modern and useable, compared to zsh/bash which benefits strongly from plugins.

CarbonScored@hexbear.net on 06 Jun 10:29 next collapse

While I am usually resistant to change, I remain ever vigilant to try not be that XKCD guy

acockworkorange@mander.xyz on 06 Jun 11:50 collapse

<img alt="" src="http://www.quickmeme.com/img/c9/c9e1095062393a24dab581243efc2de1caad68a4a78377fcb4a8fe54472060f1.jpg">

thingsiplay@beehaw.org on 06 Jun 07:17 next collapse

creating an “enano” variant/copy

What’s wrong with that?

Providing optional alternative keybindings for people who know a set of bindings from other tools makes lot of sense. I always appreciate that some tools provide these. This shows that the devs think about newcomers who are used to other set of bindings. It’s optional.

BTW the blog post you posted has only 4 sentences (excluding the quote). I often dislike articles that short, but on the other hand, at least its not blown up with crap. So there is that.

acockworkorange@mander.xyz on 06 Jun 11:52 next collapse

I’m pretty sure enano means dwarf in Spanish. Not that it’s an issue.

jonne@infosec.pub on 06 Jun 16:22 collapse

My issue is that the only time I use vim or nano it’s because I’m logged into some server where you’re going to be stuck with the defaults anyway. I guess it’s nice on your home machine, but customising a bunch of servers with your personal preferences isn’t really something you can do in most work situations.

thingsiplay@beehaw.org on 06 Jun 16:33 collapse

Yes, that’s why I still need to learn how vi and vim in their default config work (in fact I started like that, so I know already). I wanted to get into finding as solution to this problem. Years ago I read in Reddit someone setup a keyboard macro (outside of Vim) to execute bunch of commands to setup the environment in the live session, while in Vim. At least some of the configuration can be used like that.

Otherwise, yeah this really sucks. That is not a unique problem to editors, but any software that you run with a customized local setup and with bare naked server version. If you often switch back and forth, it makes sense to just use one set of keybindings. That also is the point: For people using other tools, it makes sense to provide these alternative keybindings, so they don’t need to relearn the nano specific setup.

Edit: Too many Buts reduced.

[deleted] on 06 Jun 08:28 next collapse

.

grue@lemmy.world on 06 Jun 09:19 next collapse

What does “modern” mean? Emacs-like? Vim-like? Some other bastard system?

Majestix@lemmy.world on 06 Jun 09:39 collapse

Read the Article. Modern like what most Graphical Editors Ship.

grue@lemmy.world on 06 Jun 09:46 collapse

So “some other bastard system” it is, then.

That’s a shame; a GNU project should be consistently GNU-like (i.e. adopt Emacs key bindings).

velox_vulnus@lemmy.ml on 06 Jun 10:05 next collapse

There’s already Emacs, Vim, Kakoune, etc for that. Nano is supposed to be the system default for non-advanced users.

lemming741@lemmy.world on 06 Jun 10:12 next collapse

There are now 15 standards

airbreather@lemmy.world on 06 Jun 10:49 next collapse

There are now 15 standards

No, there is and always has been just the one standard text editor.

Hupf@feddit.de on 06 Jun 12:09 collapse

Magnetized needle + steady hand?

INeedMana@lemmy.world on 06 Jun 10:57 collapse

I got that reference!

PseudoSpock@lemmy.dbzer0.com on 06 Jun 16:00 collapse

There are 15 lights!

grue@lemmy.world on 06 Jun 12:01 next collapse

If Emacs keybindings are good enough to be the system default for Mac users, they should be good enough for anybody.

velox_vulnus@lemmy.ml on 06 Jun 12:40 next collapse

That’s a subjective take. GNU Nano has always been the default editor for so long alongside vi. But when you say that Emacs keybindings are good for Mac user - I can’t help but wonder - what type of generalization is that? Do you have a source to back this claim?

Now, don’t get me wrong - I love Kakoune. But no one outside of the developer community will make an effort to learn atypical text editors with chords and modes.

crmsnbleyd@sopuli.xyz on 06 Jun 12:57 collapse

Every text field in MacOs supports Emacs keybindings, like Ctrl-a to go to beginning, ctrl-k to delete to end of line, etc

RavuAlHemio@lemmy.world on 06 Jun 14:22 collapse

Given that Mac keybindings for “common special functions” (Open/Save/Cut/Copy/Paste/Find/etc.) use Command instead of Ctrl, leaving Ctrl effectively unused unless in combination with Command, this argument doesn’t hold much water.

Sure, some Emacs fan at Apple decided to add Emacs shortcuts to Cocoa controls, but that was a pretty arbitrary decision since people coming from Mac OS 9 didn’t use the Ctrl key, well, ever.

PseudoSpock@lemmy.dbzer0.com on 06 Jun 15:58 collapse

There should be no such thing as non-advanced users.

LunarLoony@lemmy.sdf.org on 07 Jun 15:37 collapse

How are you supposed to become an advanced user, then?

PseudoSpock@lemmy.dbzer0.com on 07 Jun 19:58 collapse

Books, periodicals, internet searches, practicing everything at home on a personal equipment until you’ve got it all mastered. If one can’t learn that way, take courses. The way the rest of us did it. Once you’ve got that, you have the ability to learn anything new coming… and can hit internet forums with well formed questions, complete with context. Staying on nano/pico, there is just no excuse if you’ve already been heavily using linux for 3 years or more. It’s an editor for those who are still in the beginning of the SELF learning phase. It should never be included in any distro’s default install except for school classroom centered distros. Just because something is easy to use doesn’t mean it’s installed as a standard everywhere. Folks learning this as their craft need to learn how to sit in front of any Linux or Unix and use standard tools to achieve what they need to do. That means learn your Vi. Learn your Posix shells like Ksh, Bash, Zsh, Dash, not the nano of shells, fish! Learn your Python, your Perl. Learn your SysV ‘isms in addition to your SystemD. Learn your csh (tcsh will do). Learn your terminal control codes. Learn your SysRq funtions. Learn your tmux, your gnu screen. Learn with and keep handy your books for awk, sed, patterns, perl. Learn your mkfs’, the different filesystems and their benefits, their options and tools, how to resize. Learn your MD raid. Learn your LVM. Learn various encrypt at rest options. Learn containers. Study and remember the differences between gnu, bsd, and sysv tools like tar, cpio, find, and even ps. Books books books! Practice practice practice! Study study study!

And when you got that done, look up and see what you’ve missed while you were doing all that, and start in on all that new stuff. Wash, Rinse, Repeat. Never stop reading, studying, practicing, learning.

That’s how. Oh, and delete nano!!!

LunarLoony@lemmy.sdf.org on 07 Jun 21:12 collapse

My point was that you can’t be an advanced user without first being a non-advanced user

(and side note, I’ve been using Linux for over 20 years on and off… still use Nano)

PseudoSpock@lemmy.dbzer0.com on 07 Jun 23:29 collapse

Why on Earth would you use that thing?

Chewy7324@discuss.tchncs.de on 06 Jun 10:38 collapse

I like all editors to have as many diverse sets of keybindings as possible. Sadly most apps don’t, which is a main reason why I never bothered to properly learn emacs bindings, as I wouldn’t be able to use them anywhere else.

Scio@lemmy.world on 06 Jun 09:21 next collapse

After all that, no ^S to save 🥲

Alphane_Moon@lemmy.ml on 06 Jun 09:26 next collapse

True, I remember the first time I used nano, I was like “Ctrl + O to save, huh?”

Scio@lemmy.world on 06 Jun 11:00 collapse

^S works!! …As revealed by our kind palindromic friend on the other sibling comment! Why they don’t just list it on the statusbar we would never know!

lemmyvore@feddit.nl on 06 Jun 14:03 collapse

Probably because Ctrl+S is the shortcut for scroll lock on the terminal so it can be a bit problematic if you start using it when not in nano. It freezes the output and you have to use Ctrl+Q to unlock.

Scio@lemmy.world on 06 Jun 18:15 collapse

Makes sense! I should go check what my Zellijn configs are set to on the servers 🤔

palordrolap@kbin.run on 06 Jun 09:54 collapse

^S for unprompted save is in the default keybinds, not that I could say when it was added. (Pretty sure it wasn't a pico thing, but that leaves quite a bit of time unaccounted for.)

Muscle memory for other editors kicked in when I was editing something and did a literal slow realisation and double-take when it worked.

Now if only I could stop pressing ^W in Firefox to use nano's "whereis" to find something that'd be great.

For those unaware, it closes the current tab. Or the whole browser. Ugh.

Scio@lemmy.world on 06 Jun 10:58 next collapse

:GASP: ^S does save! I have played myself for a fool all these years!!

Now I just have to unlearn ^X, Y, enter. . . :thisisfine:

Firefox desperately needs a way to customize keyboard shortcuts, especially to disable them. Shortkeys isn’t really enough.

RaumEnde@feddit.de on 07 Jun 00:05 collapse

FYI: ctrl + shift + t brings back closed tabs.

palordrolap@kbin.run on 07 Jun 09:50 collapse

True. Other tools include: Ctrl+Shift+N to bring back a closed window if there's another window of the same browser instance still open, and when there isn't, there's Restore Previous Session which is accessible a couple of ways.

Neither bring back the comment that was being typed in a textbox on the page though. Guess when I usually ^W

7uWqKj@lemmy.world on 06 Jun 09:45 next collapse

Wait, people are still using nano?

GolfNovemberUniform@lemmy.ml on 06 Jun 10:21 next collapse

Yes

penquin@lemm.ee on 06 Jun 10:28 next collapse

I’ve never used anything else since I met Linux in 2018

Chewy7324@discuss.tchncs.de on 06 Jun 10:30 next collapse

People who only use the terminal to edit a few config files are usually fine with nano. Even more so with these new keybindings.

For more involved edits an editor like VSCode is usually more useful anyway.

For me vim works well, but I’ve already taken the time to learn its basic usage.

ColdWater@lemmy.ca on 06 Jun 10:34 next collapse

Nano rock!!!, it get the jobs done and doesn’t make everything difficult for no reason

ikidd@lemmy.world on 06 Jun 13:45 next collapse

I started with vi, and I still prefer to use nano.

GustavoM@lemmy.world on 06 Jun 13:48 next collapse

I use both nano and vim, so eh

nyan@sh.itjust.works on 06 Jun 14:26 next collapse

Ships with Gentoo by default, since you actually need a nongraphical editor there and nano is easier to learn than vi or emacs.

[deleted] on 06 Jun 16:03 next collapse

.

PseudoSpock@lemmy.dbzer0.com on 06 Jun 16:04 collapse

Well yeah, for computers in kindergarten schools.

ssm@lemmy.sdf.org on 06 Jun 18:28 next collapse

“modern” is a very loaded term here

PseudoSpock@lemmy.dbzer0.com on 17 Jun 19:56 collapse

I got a temporary ban from, I suspect, the only mod in here to have personally blocked me. The mod log accuses me of breaking the rules 1 & 2. Based on the timing, it aligns with my comments in this post. They neither broke the community bulleted rules (about Linux, no misinformation), nor did they break rules of 1 & 2 of lemmy.ml. There was no bigotry, no racism, sexism, ableism, homophobia, transphobia nor xenophobia. TThere were no individuals disrespected. I seek clarification of how my posts broke the rules, in DM’s please. I am not seeking further ban, just clarification of how those rules cover the opinion that one editor is less than another, lacks necessary features when compared with editors more standard across POSIX compliant systems, and that relying upon its existence could lead to situations where one could be ill equipped for systems where it is not installed, due to it not being such a standard.

I post this as a comment, as I cannot seem to message the entire group of moderators for this community all together, especially where one appears to be unreachable to me… something I don’t think mods of a community should do or even be capable of if they are to carry out their duties properly.

I ask the mods (preferably the mod who took the action, since no mod username is in the modlog… that’s a separate issue) to DM me and delete this or message me here, which ever is preferred. Can’t go navigating safely in here if the alleged offense wasn’t clearly communicated and explained how it violated said rules. I’m not even sure which comment, specifically, was at issue. Right now it feels like something I said was just deeply unpopular with one or more mods, and summarily punished and random rules tossed out.

I’ll delete this in a few days if no mods respond. But clarification without further punishment would be appreciated.

Thank you.