You are viewing a single thread.
View all comments View context
12 points

Why is Ctrl-X intuitive? Shouldn’t it be Ctrl-Q (for “quit”)?

permalink
report
parent
reply
5 points

CTRL+eXit

permalink
report
parent
reply
9 points

In most apps, Ctrl-X means “cut”, not “quit”. Especially when it’s a freakin’ text editor!

I will grant you that it’s more intuitive than vi, but that is a very, very low bar.

permalink
report
parent
reply
3 points

Ctrl-X in Nano is arguably more nonsensical, considering that vi was made in an era long (decades) before many of the conventions we know today came about. They were figuring it out in real time. And the criterium here is much simpler: it must be available on all keyboards so no fancy keys. That’s all.

On the other hand, when nano decided to use Ctrl+X for eXit, Apples Ctrl+X/C/V had already been brought over to Windows and Apple, and was also the de facto way for most Linux apps to handle these inputs although I do think it came before any “official” efforts to standardize these shortcuts in desktop environments.

permalink
report
parent
reply
-3 points
*

It doesn’t have to be X, just the fact that it uses modifier keys is enough. It could be Q or anything else, just please, for the love of god, we live in the 21st century now, all keyboards have modifier keys, please, add modifier keys shortcuts as well.

permalink
report
parent
reply
3 points

And it’s also an X, like any GUI app in any OS.

permalink
report
parent
reply
4 points

I know I always try GUI methods in console

permalink
report
parent
reply
4 points

Because it also sends the kill signal in every terminal I’ve witnessed yet… And you have it right on screen the second you start Nano.

permalink
report
parent
reply
12 points

I’m over here using Ctrl c all over the place to kill stuff…

permalink
report
parent
reply
2 points

Yeah, you could use that as well.

permalink
report
parent
reply
5 points

Can you please elaborate on the first part? It is not standard Linux terminal behavior to send the KILL signal on Ctrl+X.

permalink
report
parent
reply
1 point

Actually, you are right. I will stand by my point that Nano tells you what to press, but I wonder where I got the stuff about Ctrl+X… I am very positive that I have used it at some point (outside of Nano), but maybe my brain is playing tricks on me 🤔

permalink
report
parent
reply
2 points
*

Because nano just shows how to exit, as well as some other basic functions at bottom

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

Hint: :q!


Sister communities:

Community rules (click to expand)

1. Follow the site-wide rules
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, and wants to interject for a moment. You can stop now.

Please report posts and comments that break these rules!

Community stats

  • 6.6K

    Monthly active users

  • 1.3K

    Posts

  • 69K

    Comments