this post was submitted on 06 Jun 2024
87 points (95.8% liked)

Linux

47151 readers
1397 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 3 months ago

"modern" is a very loaded term here

[–] [email protected] 17 points 3 months ago (2 children)

After all that, no ^S to save 🥲

[–] [email protected] 25 points 3 months ago* (last edited 3 months ago) (2 children)

^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.

[–] [email protected] 5 points 3 months ago (1 children)

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

[–] [email protected] 2 points 3 months ago

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

[–] [email protected] 8 points 3 months ago

: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.

[–] [email protected] 2 points 3 months ago (1 children)

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

[–] [email protected] 6 points 3 months ago (1 children)

^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!

[–] [email protected] 2 points 3 months ago (1 children)

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.

[–] [email protected] 1 points 3 months ago

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

[–] [email protected] 6 points 3 months ago (1 children)

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

[–] [email protected] 13 points 3 months ago (1 children)

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

[–] [email protected] -3 points 3 months ago (2 children)

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).

[–] [email protected] 1 points 3 months ago

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.

[–] [email protected] 16 points 3 months ago* (last edited 3 months ago) (3 children)

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

[–] [email protected] -4 points 3 months ago (1 children)

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

[–] [email protected] 1 points 3 months ago (1 children)

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

[–] [email protected] 1 points 3 months ago (1 children)

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!!!!

[–] [email protected] 1 points 3 months ago (1 children)

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)

[–] [email protected] 1 points 3 months ago

Why on Earth would you use that thing?

[–] [email protected] 0 points 3 months ago (2 children)

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

[–] [email protected] 0 points 3 months ago* (last edited 3 months ago)

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.

[–] [email protected] 1 points 3 months ago (1 children)

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.

[–] [email protected] 4 points 3 months ago

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

[–] [email protected] 14 points 3 months ago (2 children)

There are now 15 standards

[–] [email protected] 3 points 3 months ago (1 children)
[–] [email protected] 2 points 3 months ago

There are 15 lights!

[–] [email protected] 5 points 3 months ago (1 children)

There are now 15 standards

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

[–] [email protected] 3 points 3 months ago

Magnetized needle + steady hand?

[–] [email protected] 2 points 3 months ago

creating an "enano" variant/copy

Do you also use vim with vi compatibility enabled?

Wait, you probably use emacs...