It’s in emacs! Using alt instead of ctrl https://www.gnu.org/software/emacs/manual/html_node/emacs/Secondary-Selection.html
Will
- 1 Post
- 7 Comments
You’re describing the primary selection. The article’s about patching secondary selection back into gtk3 (c. 2015?). It’s ctrl+select followed by ctrl+middle to paste as yet another clipboard. This has the unique and useful property that neither selection nor paste changes the text cursor’s position.
A more in-depth look at secondary selection is in the embedded video which has it’s own write-up on https://www.cs.man.ac.uk/~lindsec/secondary.html
[I suspect primary-secondardy selection is not a confusion you have, but one a casual skip-the-article-direct-to-comments reader might have]
Will@lemmy.mlto
Linux@lemmy.ml•GNOME & Firefox Consider Disabling Middle Click Paste By Default: "An X11'ism...Dumpster Fire"English
2·4 days agoAnd the keyboard shortcut for primary clipboard paste (
Shift+Ins) is already gone from gtk.- https://gitlab.gnome.org/GNOME/gtk/-/issues/352 (closed)
- https://bugzilla.mozilla.org/show_bug.cgi?id=1070518 (open)
- There’s a nice Q/A on stackexchange: “Why does Shift+Insert paste from CLIPBOARD in some applications and PRIMARY in others?”
Will@lemmy.mlto
Linux@lemmy.ml•What are some of your most useful or favorite terminal commands?English
5·25 days agoFor interactive editing, the keybind
alt+.inserts the last argument from the previous command. Using this instead of $_ has the potential to make your shell history a little more explicit. (vim $_isn’t as likely to work a few commands later, butvim actual_file.shmight)
Will@lemmy.mlto
Linux@lemmy.ml•What are some of your most useful or favorite terminal commands?English
4·25 days agohttps://atuin.sh/ does one better. history with context: $PWD, $HOST, time. There’s a bunch of other bells and whistles, but they’re easy to ignore to get an noninvasive upgrade to ctrl+R
There are lots of ways to move data between or within graphical windows! But the list is shrinking
https://en.wikipedia.org/wiki/X_Window_System_selection