There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

cumberboi ,

SO TRUE OMG, also why the hell does it have to use ctrl + shift for shortcuts aaaa

jw13 ,

CTRL-C has been the default key combination to terminate a running process, since forever. Reassigning it to “copy selection” would be very inconvenient.

I like the solution of the ElementaryOS terminal: when you press CTRL-C, it does “the right thing” depending on the context.

cumberboi ,

ohhh shoot thats cool! ty for the info :)

nayminlwin ,

What happens to me is the opposite. I got used to Ctrl+w to delete a word in terminal and accidentally closed browser tabs many times while typing in them.

nayminlwin ,

What happens to me is the opposite. I got used to Ctrl+w to delete a word in terminal and accidentally closed browser tabs many times while typing in them.

korthrun ,
@korthrun@lemmy.sdf.org avatar

✨🌈 R E A D L I N E 🌈✨

jordanlund ,

In any sane editor:

Save a file - CRTL-S

In VI:

  1. Switch to command mode by pressing the Esc key.
  2. Type : (colon). This will open the prompt bar in the bottom left corner of the window.
  3. Type w after the colon and hit Enter.

In Emacs:

www.gnu.org/software/emacs/…/Save-Commands.html

C-x C-s Save the current buffer to its file (save-buffer).

C-x s Save any or all buffers to their files (save-some-buffers).

M-~ Forget that the current buffer has been changed (not-modified). With prefix argument (C-u), mark the current buffer as changed.

C-x C-w Save the current buffer with a specified file name (write-file).

M-x set-visited-file-name Change the file name under which the current buffer will be saved.

When you wish to save the file and make your changes permanent, type C-x C-s (save-buffer). After saving is finished, C-x C-s displays a message like this:

Wrote /u/rms/gnu/gnu.tasks

If the current buffer is not modified (no changes have been made in it since the buffer was created or last saved), saving is not really done, because it would have no effect. Instead, C-x C-s displays a message like this in the echo area:

(No changes need to be saved) With a prefix argument, C-u C-x C-s, Emacs also marks the buffer to be backed up when the next save is done. See Backup Files.

The command C-x s (save-some-buffers) offers to save any or all modified buffers. It asks you what to do with each buffer. The possible responses are analogous to those of query-replace:

y SPC Save this buffer and ask about the rest of the buffers.

n DEL Don’t save this buffer, but ask about the rest of the buffers.

! Save this buffer and all the rest with no more questions.

q RET Terminate save-some-buffers without any more saving.

. Save this buffer, then exit save-some-buffers without even asking about other buffers.

C-r View the buffer that you are currently being asked about. When you exit View mode, you get back to save-some-buffers, which asks the question again.

C-f Exit save-some-buffers and visit the buffer that you are currently being asked about.

d Diff the buffer against its corresponding file, so you can see what changes you would be saving. This calls the command diff-buffer-with-file (see Comparing Files).

C-h Display a help message about these options.

RocksForBrains ,

wtf m8

Dohnakun ,

Depends on the terminal. xfce4-terminal it works.

WhiskyTangoFoxtrot ,

Works in the Cinnamon terminal, too.

Nemoder ,

And it works in QTerminal.

mawkler ,

b

debil ,

In a sane editor just press b.

nailbar ,

Is Ctrl + ⬅️ for typing ‘b’ then?

debil ,

No (although you can easily create such a key mapping if so inclined). To type b character one must first enter the so called Insert mode. Depending on where exactly you wish to type the character, you can enter the Insert mode by typing for example i, a, I, A, o or O.

nailbar ,

It wasn’t a serious question 🙂

Sounds like you’re talking about good old vi or vim.

s0phia ,
@s0phia@lemmy.world avatar

Idk about bash but at least in fish I can do alt + arrows to move the cursor by word, also alt + backspace works to delete whole words.

Ascend910 ,

Does anyone know how to fix it in bash?

Raphael ,
@Raphael@lemmy.world avatar

apt install fish

fishshell.com

maess ,
@maess@feddit.de avatar

so this is why I can’t relate to the meme

Ascend910 ,

You didn’t read my comment properly :(

iusearchbtw ,
@iusearchbtw@lemmy.sdf.org avatar

fish is nice but the nonstandard syntax gets really annoying after a while. I use ble.sh these days.

Raphael ,
@Raphael@lemmy.world avatar

I have no such weakness because I never learned bash syntax anyway.

xthexder ,
@xthexder@l.sw0.com avatar

Why is your user flagged as a bot account? You certainly aren’t behaving like a bot.

Ascend910 ,

Maybe it’s because I join and in a few day I create several communities and commented into too much. I am just trying to replace Reddit lol

xthexder ,
@xthexder@l.sw0.com avatar

There’s a “Bot Account” checkbox in your user profile settings. You should be able to just deselect it, and you’ll be a normal user.

iusearchbtw ,
@iusearchbtw@lemmy.sdf.org avatar

It works for me, which terminal are you using?

abraham_linksys ,

Ctrl+a - go to beginning of line (alpha? I dunno)

ctrl+e - go to (e)nd of the line

alt+f - (f)orward one word

alt+b - (b)ack one word

You might already know these but no one else has posted them on this thread yet. I work in both Linux and Mac a lot and this works for them. No idea about Windows I’m no longer forced to use it at work 🙂

dot20 ,

If you use WSL (which you should), you have a normal Bash, so it works

abraham_linksys ,

The best part of Windows is the part that isn’t Windows lmao lawd I’m glad I don’t work for the federal government (exclusively Microsoft) anymore

darcy ,
@darcy@sh.itjust.works avatar

fed detected

somedaysoon ,
@somedaysoon@lemmy.world avatar
NaiveBayesian , (edited )

Also Ctrl + w to delete one word backwards (which is what OP wants to do).

Edit: Nvm I misread the post, deleting is not what OP wants to do. Still gonna keep this because Ctrl + w is easily the readline shortcut I use the most.

FUsername ,

While we’re at it: Alt+d deletes the next word.

chaorace ,
@chaorace@lemmy.sdf.org avatar

That’s why my terminal is emacs

SanndyTheManndy ,

I think you mean OS

Rootiest ,
@Rootiest@lemmy.world avatar

That’s why my terminal is OS

grue ,

Emacs and bash use the same navigation shortcuts though, LOL.

chaorace ,
@chaorace@lemmy.sdf.org avatar

Bold of you to assume that an Emacs user will have anything remotely resembling the default keymap by the time they’re proud enough to brag about it

Vegoon ,

set -o vi

sLLiK ,

This. Esc, then b. Or if you’re a stickler for keeping you hands on home row, Ctrl [ does the trick as well. Bonus points for making that more comfortable via a remapping of Caps Lock to control (or swapping the two).

jbrains ,

Train yourself to use edit-and-execute and this problem disappears forever. Now I’m annoyed when I type “esc v v” and nothing happens.

priapus ,

I’ve never used a distro that didn’t come with a sane default shell config to avoid this

binwiederhier ,
@binwiederhier@discuss.ntfy.sh avatar

You can type reset to fix your terminal if it gets messed up like that.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines