• 1 Post
  • 7 Comments
Joined 3 years ago
cake
Cake day: June 4th, 2023

help-circle
  • Will@lemmy.mlOPtoLinux@lemmy.mlX11 Secondary Selection
    link
    fedilink
    English
    arrow-up
    2
    ·
    24 hours ago

    There are lots of ways to move data between or within graphical windows! But the list is shrinking

    • clipboard - cltr-c / ctrl-v
    • drag and drop - mouse selection, mouse drag
    • primary - mouse selection -> middle click (or shift+ins); moves text cursor
    • secondary - ctrl+select (alt+select in emacs); secondary doesn’t move text cursor. largely forgoten. motif, patched gtk; not in qt, tk, mainline gtk, etc
    • cut-buffer - deprecated everywhere. set by application using X11 window property for state

    https://en.wikipedia.org/wiki/X_Window_System_selection




  • Will@lemmy.mlOPtoLinux@lemmy.mlX11 Secondary Selection
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    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]