<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Clipboard on WhyNotHugo</title><link>https://whynothugo.nl/tags/clipboard/</link><description>Recent content in Clipboard on WhyNotHugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Mon, 20 Nov 2023 14:12:11 +0800</lastBuildDate><atom:link href="https://whynothugo.nl/tags/clipboard/posts.xml" rel="self" type="application/rss+xml"/><item><title>Selection / clipboard cheatsheet</title><link>https://whynothugo.nl/journal/2022/12/03/selection-cheatsheet/</link><pubDate>Sat, 03 Dec 2022 00:00:00 +0000</pubDate><guid>https://whynothugo.nl/journal/2022/12/03/selection-cheatsheet/</guid><description>There&amp;rsquo;s multiple selections:[permalink] PRIMARY: is the old-school Unix one; select text to copy it. Middle-click to paste it. Three-finger tap on a touchpad also pastes it. CLIPBOARD: the well-known ctrl-c and ctrl-v (or Super+c). SECONDARY: historical, irrelevant, don&amp;rsquo;t worry about this one. Vim (&amp;amp; derivates)[permalink] Vim has registers. They are accessed by prefixing &amp;quot;X, where X is a register name. These extend the ones above:
&amp;quot;-: /dev/null &amp;quot;*: (see :h unnamed), the PRIMARY SELECTION &amp;quot;+: (see :h unnamedplus), the CLIPBOARD SELECTION There&amp;rsquo;s also a lot of other registers which are historical and exotic IMHO Neovim config example:[permalink] Copying to the PRIMARY selection:</description></item><item><title>Copying with Super+C</title><link>https://whynothugo.nl/journal/2022/11/04/copying-with-super-c/</link><pubDate>Fri, 04 Nov 2022 00:00:00 +0000</pubDate><guid>https://whynothugo.nl/journal/2022/11/04/copying-with-super-c/</guid><description>Historically, Ctrl+c has been used to interrupt a process on terminals. This applies on Linux, but also applied to BSDs and Unixes before it. This is still true, even today, on pretty much any terminal emulator.
When mice became a thing, one could simply select text and then click mouse2 to paste it. mouse2 was the right mouse button back when mice had two buttons, and became the middle mouse button now that mice typically have three buttons (or three-finger tap on touchpads).</description></item><item><title>How the clipboard works</title><link>https://whynothugo.nl/journal/2022/10/21/how-the-clipboard-works/</link><pubDate>Fri, 21 Oct 2022 00:00:00 +0000</pubDate><guid>https://whynothugo.nl/journal/2022/10/21/how-the-clipboard-works/</guid><description>Reading how copy-paste works from the Wayland specification is non-trivial unless you understand a lot of how desktop computing works and Wayland internal. It took me quite a while to figure it all out, though once you get there, it seems quite obvious.
Here&amp;rsquo;s my attempt at explaining how it works for mere mortals.
Terminology[permalink] Let me clarify that what we usually call &amp;ldquo;clipboard&amp;rdquo; is actually called a &amp;ldquo;selection&amp;rdquo;. I&amp;rsquo;ll use the term &amp;ldquo;clipboard&amp;rdquo; here anyway to keep this friendly, but keep in mind that it&amp;rsquo;s not the actual technical term.</description></item></channel></rss>