737
Trust Rule (lemmy.blahaj.zone)
submitted 1 day ago by Zzyzx to c/onehundredninetysix
you are viewing a single comment's thread
view the rest of the comments
[-] sunset@reddthat.com 23 points 7 hours ago

Trying to copy some text in a Linux terminal and instead just ending a process 🆘

[-] PotatoesFall@discuss.tchncs.de 1 points 2 hours ago

For real how is there not a new standard for this yet

[-] toynbee@lemmy.world 10 points 5 hours ago

In many cases, perhaps most, you can use Ctrl+shift+c/v to get around this. This muscle memory has caused problems for me because Ctrl+shift+c in Firefox brings up the development console (IIRC) and I haven't found a way to close that without using the mouse.

Depending on your environment, you may also be able to highlight text, press no keys, and middle click elsewhere to paste.

[-] lapping6596@lemmy.world 5 points 5 hours ago

For this very reason I've disabled ctrl shift c in Firefox.

[-] toynbee@lemmy.world 5 points 5 hours ago

It never occurred to me to even check whether it can be disabled. I suspect you have improved my life and thank you for doing so!

[-] sunset@reddthat.com 3 points 5 hours ago

Yeah I know about Ctrl+Shift+C I was joking, I think we've can all relate to accidentally sending a interrupt signal every now and then!

Now tell me how to copy text from nano and paste it elsewhere! 😆

[-] CrazyLikeGollum@lemmy.world 1 points 2 hours ago* (last edited 2 hours ago)

Can't tell you about nano, but in Vi it's yy to copy (or yank) a line, insert a number between the y's to copy more than one line. I.e. y5y to yank 5 lines.

Then p to paste.

Can also just use your terminals method for copy paste, just remember to hit i for insert before you paste.

[-] toynbee@lemmy.world 2 points 5 hours ago

It did seem likely you would know, but if I can, I'd prefer giving someone redundant knowledge over hoarding information they could use.

I can definitely relate to accidentally ending a process, especially back when I used PuTTY. Very frustrating.

I use vim, but I've never had trouble copying text out of it the same way I would out of any other terminal process. Does nano introduce special challenges?

[-] sunset@reddthat.com 2 points 4 hours ago

If you highlight text in nano using your keyboard I think it uses nanos built-in highlighting and doesn't allow copying to the clipboard. It has it's own built in cut and paste system, and not on the keys you would expect.

If you highlight the text with your mouse it uses the terminals highlighting and copying to your clipboard works!

Just lot's of inconsistency is what I'm saying, similar to your Firefox experience!

[-] toynbee@lemmy.world 2 points 4 hours ago

Oh yeah - if you're using your keyboard, it's a different prospect. In vim, I would use the yank functionality, but that doesn't travel between windows. I wouldn't know how to do that without the mouse.

I'm afraid I can't help you with nano, either, but good luck in your search!

[-] antimidas@sopuli.xyz 1 points 4 hours ago* (last edited 4 hours ago)

Shouldn't F12 still close it, even if you opened it with another command?

[-] toynbee@lemmy.world 1 points 3 hours ago

Apparently so. Nice!

[-] user224@lemmy.sdf.org 1 points 5 hours ago

The middle click is pretty nice on a ThinkPad, since that's probably the only place where it's an actual separate key.

[-] toynbee@lemmy.world 2 points 5 hours ago

I almost exclusively use a trackball, specifically a Kensington Orbit. If you care to click the link, you'll see it has no physical middle click; instead, it emulates one if you simultaneously left and right click. I originally found this uncomfortable, especially because its functionality was less reliable when I discovered it; since then, though, it has improved with newer models and I've gotten much more practice using it. I now find it eminently usable - enough even to perform in games and such.

Now my only real issue is the actual scrolling. I don't use it to scroll documents very often, but once the ring starts spinning, it continues doing so pretty freely. When gaming, this can make it challenging to switch weapons with any precision. One of my friends described it not as a scroll wheel, but a selection randomizer.

[-] user224@lemmy.sdf.org 1 points 5 hours ago

At first I wanted a trackball mouse, now I just want a USB ThinkPad style keyboard instead, which I'd probably get if I had a desktop.

I basically don't have to move my arms, the mouse is in middle of the keyboard. After a while it feels not like a pointing device, but an extension of the finger.
Scrolling long pages is also pretty nice. Press down middle-click with thumb, push down/up TrackPoint with index finger. I can just keep scrolling without moving fingers, just varying pressure.

But it's not perfect either. There's often some drifting. As far as I know, it continually calibrates itself, to prevent drift in most cases. Well, if you've just been scrolling down for a while and let go, the mouse pointer will drift upwards for a bit. Similar to if you've been resting a finger on it without doing anything. It got recalibrated as your finger literally being a part of it.
You just have to... wait a few seconds. Annoying but not too bad.

[-] toynbee@lemmy.world 1 points 3 hours ago

That seems achievable.

macOS does this right with copy and paste using the command key.

[-] toynbee@lemmy.world 1 points 5 hours ago

One of the few times I've been able to appreciate their eccentricities was when using Ctrl+w to delete a word in a shell environment in a remote desktop environment inside a web browser. I pressed the key combination out of habit, cringed as I realized I'd just closed the tab and would have to reauthenticate several times to get back to it, then was delighted to realize I hadn't closed the tab because I hadn't passed command+w.

Putting all keyboard shortcuts on ctrl is pretty brain dead when there are so many other modifiers available.

This isn’t even a new idea or anything. The Amiga had its own key for that purpose and lots of Unix machines did as well like “meta”.

[-] toynbee@lemmy.world 1 points 3 hours ago

Just the kind of insight I would expect from the best boyfriend in the world.

this post was submitted on 12 Mar 2025
737 points (100.0% liked)

196

2553 readers
3049 users here now

Community Rules

You must post before you leave

Be nice. Assume others have good intent (within reason).

Block or ignore posts, comments, and users that irritate you in some way rather than engaging. Report if they are actually breaking community rules.

Use content warnings and/or mark as NSFW when appropriate. Most posts with content warnings likely need to be marked NSFW.

Most 196 posts are memes, shitposts, cute images, or even just recent things that happened, etc. There is no real theme, but try to avoid posts that are very inflammatory, offensive, very low quality, or very "off topic".

Bigotry is not allowed, this includes (but is not limited to): Homophobia, Transphobia, Racism, Sexism, Abelism, Classism, or discrimination based on things like Ethnicity, Nationality, Language, or Religion.

Avoid shilling for corporations, posting advertisements, or promoting exploitation of workers.

Proselytization, support, or defense of authoritarianism is not welcome. This includes but is not limited to: imperialism, nationalism, genocide denial, ethnic or racial supremacy, fascism, Nazism, Marxism-Leninism, Maoism, etc.

Avoid AI generated content.

Avoid misinformation.

Avoid incomprehensible posts.

No threats or personal attacks.

No spam.

Moderator Guidelines

Moderator Guidelines

  • Don’t be mean to users. Be gentle or neutral.
  • Most moderator actions which have a modlog message should include your username.
  • When in doubt about whether or not a user is problematic, send them a DM.
  • Don’t waste time debating/arguing with problematic users.
  • Assume the best, but don’t tolerate sealioning/just asking questions/concern trolling.
  • Ask another mod to take over cases you struggle with, if you get tired, or when things get personal.
  • Ask the other mods for advice when things get complicated.
  • Share everything you do in the mod matrix, both so several mods aren't unknowingly handling the same issues, but also so you can receive feedback on what you intend to do.
  • Don't rush mod actions. If a case doesn't need to be handled right away, consider taking a short break before getting to it. This is to say, cool down and make room for feedback.
  • Don’t perform too much moderation in the comments, except if you want a verdict to be public or to ask people to dial a convo down/stop. Single comment warnings are okay.
  • Send users concise DMs about verdicts about them, such as bans etc, except in cases where it is clear we don’t want them at all, such as obvious transphobes. No need to notify someone they haven’t been banned of course.
  • Explain to a user why their behavior is problematic and how it is distressing others rather than engage with whatever they are saying. Ask them to avoid this in the future and send them packing if they do not comply.
  • First warn users, then temp ban them, then finally perma ban them when they break the rules or act inappropriately. Skip steps if necessary.
  • Use neutral statements like “this statement can be considered transphobic” rather than “you are being transphobic”.
  • No large decisions or actions without community input (polls or meta posts f.ex.).
  • Large internal decisions (such as ousting a mod) might require a vote, needing more than 50% of the votes to pass. Also consider asking the community for feedback.
  • Remember you are a voluntary moderator. You don’t get paid. Take a break when you need one. Perhaps ask another moderator to step in if necessary.

founded 1 month ago
MODERATORS