Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This AutoHotKey script was a game changer for me. It maps Ctrl + Shift + V to paste without formatting.

    ;; Text–only paste from ClipBoard
    ;; (https://autohotkey.com/board/topic/10412-paste-plain-text-and-copycut/)
    ;; ctrl + shit + v
    ^+v::
        Clip0 = %ClipBoardAll%
        ClipBoard = %ClipBoard%       ; Convert to text
        Send ^v                       ; For best compatibility: SendPlay
        Sleep 150                     ; Don't change clipboard while it is pasted! (Sleep > 0)
        ClipBoard = %Clip0%           ; Restore original ClipBoard
        VarSetCapacity(Clip0, 0)      ; Free memory
    Return

[Edit: tried to fix formatting]


For the record, it's also available without AutoHotKey, using Powertoys [1] or PureText [2]. Very useful.

[1] https://learn.microsoft.com/en-us/windows/powertoys/

[2] https://stevemiller.net/puretext/


That's great. I hadn't noticed it's has been added to PowerToys. I can now finally retire my 7 year old script. Hopefully one day it will be promoted to be included in Windows by default.


With AutoHotKey you can escalate to sending as-if-by-keyboard, for those frustrating scenarios where clipboard paste is ignored.

  SendInput {Raw}%ClipBoard%`


Can't understand why Powertoys don't come standard in Windows 11. They're too useful and too polished to be an optional add-on.


PowerToys can be iterated on much faster than the Windows release cycle, and without needing the same support commitment. Plus, some of the features do "graduate" in a sense, like Snap Assist https://www.windowscentral.com/how-use-snap-assist-windows-1..., which is basically a watered down version of Fancy Zones.


It is so strange that pasting with formatting is the default! I have so far never wanted to paste with formatting a single time. I dont even understand what use case it is addressing.


Copy image from one place to another. Copy entire powerpoint slide between presentation. Copy table from web to word.


How many times in a day you do that versus pasting with no formatting?


Honestly - Depends on the Job. When coding, I generally want ~no formatting by default. But When I'm pulling a code chunks into an email or similar; to preserve easier readability I can either copy from terminal with formatting or send a screenshot (which recipient then can't copy if they want to play with it). You could say "Use a different tool!" like Gist or similar; but that's often overkill.


On a daily basis, i paste into programs that aren't wysiwyg (terminal, reddit, browser omnibar, etc) much more often than stuff that is (google docs, powerpoint). for the former programs it doesn't matter if i paste with or without formatting.

for the latter programs having the default be paste with formatting seems fine. yes, i'll paste stuff from the web without formatting. But copying/cutting/pasting within the same document is also a pretty common interaction and if i'm cutting something non-trivial (eg. google docs table/nested lists), i don't want to paste it back into google docs as a bunch of regular, separate lines.


Exceptionally more, personally.


ctrl-shift-v is so nice. it should be an OS-standard keyboard shortcut for clipboards.

would also love to get a mult-value clipboard (e.g. my last 5 clips) but... that's asking a lot i guess. ;-)


Use WIN+V instead of CTRL+V to get a clipboard history pop-up in Windows 10.

https://support.microsoft.com/en-us/windows/clipboard-in-win...


Just why can't you search it? I used Alfred religiously on OSX for this functionality; and it's almost there.


My complaint is that I can't reorder the items so that an older clip is back "on deck" for a vanilla CTRL+V. Some programs (gVim) don't take too kindly to WIN+V.


In case you are not aware: https://ditto-cp.sourceforge.io/


This looks magical o.0 I try to not install third party; but I think this will do it. Thanks.


i've used Ditto for years. love it!


Wow, I feel like it's time to bring back the "Welcome to Windows" tips at login.

..is there a way to bring that back?


woah... This works in KDE too on linux.


I use it in Mac as part of my job duties. So far it mostly works in the place I need it most which is web forms on chrome. Some applications I wish it worked on do not recognize it such as notes app. I'll have to figure it out on Mac since ahk was my go to when I had pc


On Mac, I'd always open up alfred, Paste, then copy it again to strip formatting. Pita but it worked and was rote after years of use.

cmd-space, cmd-v,cmd-a,cmd-x (buffer is now stripped)


Slightly more cumbersome but try Option-Cmd-Shift-v


Opt-cmd-shift-v is the (rather unwieldy) macOS shortcut to paste without formatting.

I have cmd-shift-v mapped to my clipboard history which is fully searchable, I use Raycast on Mac but I would wager there are Linux and Windows alternatives.


Works out of the box on Xfce.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: