diff options
1 files changed, 4 insertions, 4 deletions
| -rw-r--r-- | src/blog/plan9-in-linux-mouse-menus/index.du | 8 |
diff --git a/src/blog/plan9-in-linux-mouse-menus/index.du b/src/blog/plan9-in-linux-mouse-menus/index.du index 79f391e..b22d1c3 100644 --- a/src/blog/plan9-in-linux-mouse-menus/index.du +++ b/src/blog/plan9-in-linux-mouse-menus/index.du @@ -47,10 +47,10 @@ Finally, the middle mouse button (button 2), shows text-control options, which c {img ./img/plan9-mouse2-menu.png} -You'll recognise {` cut}, {` paste} and {` snarf} {fn It's hard to deduce why exactly it was named like this, but the most probable explanation comes from {url unix.stackexchange;https://unix.stackexchange.com/questions/308943/why-does-plan-9-use-snarf-instead-of-copy/309350}: copying might've been seen as a two step action, obtain the contents you want to copy and paste them somewhere. So to copy something you need a duplicate of itself to be created, and either putting it in the "clipboard" isn't considered duplicating, or an optimization makes "the clipboard" store some sort of reference to what you snarfed, but not the exact thing itself. \n On an unrelated note, this might have played a part in the reasoning behind vim using the word "yank" for copy.}, the latter being just another word for copy. -Since every modern window manager supports those in some form, I'll concentrate on the others.\n +You'll recognise {` cut}, {` paste} and {` snarf} {fn It's hard to deduce why exactly it was named like this, but the most probable explanation comes from {url unix.stackexchange;https://unix.stackexchange.com/questions/308943/why-does-plan-9-use-snarf-instead-of-copy/309350}: copying might've been seen as a two step action, obtain the contents you want to copy and paste them somewhere. So to copy something you need a duplicate of itself to be created, and either putting it in the "clipboard" isn't considered duplicating, or an optimization makes "the clipboard" store some sort of reference to what you snarfed, but not the exact thing itself.{br}On an unrelated note, this might have played a part in the reasoning behind vim using the word "yank" for copy.}, the latter being just another word for copy. +Since every modern window manager supports those in some form, I'll concentrate on the others.{br} {` plumb} is the most interesting: it sends the selection to a "plumber" application, which practically{fn Technically, a plumber just passes messages between applications, so you can configure it to not open a URL but do something else with it in a certain application. However, the aforementioned way is how it works most of the time.} tries to open or execute it. -For example, a selected URL will open in the browser, but a selected image file will open in an image viewer.\n +For example, a selected URL will open in the browser, but a selected image file will open in an image viewer.{br} {` send} enters the selected text as a command in the current shell. ### Usefulness in Linux @@ -290,7 +290,7 @@ Pressing and releasing the mouse button will stop resizing (that's why {` keyup Though it work, it's kind of clunky and the normal Alt+RightClick is arguably simpler and easier to work with. -<br/> +{br} With this our script if finished. You can find the whole thing (including some personal modifications) in my {url dotfiles;https://gitlab.com/Syndamia/dotfiles/-/blob/main/.a/plumb.sh}. |