by TeMPOraL · 8y ago · 0 comments
I do that too! In fact, I do that so often that on Windows, I have the following workflow in my muscle memory:
CTRL+C ;; copy
Win+R ;; open "Run"
CTRL+V ;; paste
CTRL+A ;; select what I just pasted
CTRL+X ;; cut it out (disappearing text serves
;; as a visual proof of operation completion)
ESC ;; close the "Run" box, restoring focus
;; to original application
CTRL+V ;; paste cleaned-up text
I do that without thinking in under 2 seconds.On Linux, I usually abuse the address bar of the browser.
Then I discovered this handy little utility, PureText:
https://stevemiller.net/puretext/
Now all you gotta do is press Win-V to paste the pure text representation of your clipboard. It's a 43k download and unobtrusive. Great program.
CMD+A,C,T,V,A,X,W,V
I don't even release the CMD key between presses and it's all done with one hand extremely quickly. I've often wondered if Chrome collects usage statistics on this and what it looks like from their perspective. "This user opens a lot of tabs, pastes stuff in the address bar, then gives up before the new tab page is even done loading."
This is one reason why old-school, keyboard-shortcut-driven UI can feel so good to use (and why animations that block interaction are so frustrating).
No, seriously. I try to port all my workflow to Emacs, because with all the power and consistency of that keyboard-driven platform, I can finally put my muscle memory to use.
Beyond that, I finally developed a habit of automating annoyances away. Today, if I do something frequently and find it annoying, I fix it with a script. Be it elisp (Emacs), CL (Linux - I use StumpWM as my WM), or AutoHotkey (Windows).
--
Actually, some random recent examples:
- I frequently deal with Lisp code that outputs large structured or semistructured blobs of text; at some point I decided I need a quick way to pipe such output to a separate Emacs buffer: https://gist.github.com/TeMPOraL/8715c9dd9837e0b601d1cdce059....
- At my previous workplace, I found myself pasting some strings to various communications channels quickly. Since I already used AutoHotkey to remap Caps Lock to CTRL, this is what I came with (and later expanded): https://gist.github.com/TeMPOraL/d330edccf8ba9a2b13d01b4e7f1....
- Speaking of whipping up ad-hoc UIs on the fly, the Hydra package (https://github.com/abo-abo/hydra) is perfect for that in Emacs. My config becomes increasingly full of ad-hoc popup menus like these: https://gist.github.com/TeMPOraL/d3a0b3065c43d41526bcb3fe2c9....
- StumpWM - https://github.com/TeMPOraL/conffiles/blob/master/stumpwm/.s... - unlike my Emacs config, most of this was written by me, on the fly, to fix some annoyances.
The point of giving those examples, beyond obviously showing off :), is that this is what IMO good software enables. Improving your life on the fly, one simple binding or one simple script at a time. Scripting isn't only for shell commands. It's definitely useful for UI experience as well. I regret it took me that long to figure this out.
This is also why I try to port as much of my workflow as I can to Emacs. It's because Emacs makes such modifications seem trivial. If you need something to interoperate more, you can glue it with together with a little bit of Elisp. If you need something new, you can probably add it with a little bit of Elisp in no time. Emacs, being a runtime-modifiable, introspectable and tremendously well documented system with a decent REPL, makes this quick and relatively painless.
Same here. I used to disable “search suggestions” so I wouldn’t be sending all of that stuff to Google but at the same time search suggestions can actually be useful sometimes so now I have it enabled anyway, meaning that I send a lot of random stuff to Google.
However mostly it’s no big deal. The primary reason that I disabled search suggestions was that I used to type out the passwords for new accounts in the address bar first and copy them and then paste them twice into the password and confirm password fields respectively. Since then I’ve written a pass-phrase generator command line program that I named pgen [1] which I use instead, so because I no longer use the address bar for passwords there is rarely anything sensitive that I am typing.
If a website has password requirements that are incompatible with the passwords generated by pgen I have the terminal I just ran pgen in open already anyways so I paste back into it and modify the password to suit the requirements.
But keep almost all formatting (except font size) if pasted into a new empty paragraph.
But under no circumstances have the formatting under the cursor after the operation changed.
I know that breaks all convention and would probably cause more problems, but boy would I be happy.
That's the place I use to "unformat" copied text. Would save you pressing R and ESC...
What the video doesn't show, you can also make the taskbar higher and place the address bar underneath the icons.
[1]https://autohotkey.com/board/topic/10412-paste-plain-text-an...
function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end
My Firefox doesn't show such option under right-click menu. But even if it's common in other browsers now, it wasn't when I needed it first, so I found an alternative and put the problem out of my mind. Thanks for pointing out that there is a solution in (some) browsers, though. Maybe it's time to abandon the alternative habits.
Setting up a shortcut to "paste as plain text" is a handy secondary capability. Being able to see/select your last n copied items is very helpful indeed. (Ctrl-Alt-H is my shortcut, and whenever I'm on a system that doesn't have it installed I become sad when that shortcut doesn't work...)
CTRL+A, CTRL+C, Alt + Tab, CTRL+T (new tab), CTRL + V, CTRL + A, CTRL + C, CTRL + W (close tab)
Or, CTRL + TVACW in that order does it <1 sec.
An obscure keyboard shortcut (vs 4-5 common ones), finding your option, and switching to the mouse doesn't seem like a better solution. Plus it's not universal.
Ctrl+V, Ctrl, T
To paste then remove formatting.
Personally I still use notepad or the address bar.
gcb | scb
or, if you like using your mechanical keyboard .. Get-Clipboard | Set-ClipboardHN strips formatting, but many forums don't.