News for hackers. Stuff that matters.

noseratio

See my above comments. Ctrl+Shift+V is not a standard Windows feature. Sometimes it works, but often it doesn't, even in Chromium-based apps.
The app is open-source and you'd actually need to compile it on your own to run it. The repo has simple instructions on how to do that. Thus, you could assess the risk.
This typically only works in Chrome and Chromium-based apps, like MSEdge or Electron-based apps.

Even then, it is not consistent. E.g., in VSCode, Ctrl+Shift+V is a shortcut for markdown preview.

Re:Would you prefer Ctrl+V to paste without formatting by default? on Saturday September 05, 2020 @09:15AM (#24383286)
Same thinking, tks. IMO, this should have been the default behavior for any OS, with another dedicated hotkey to paste with formatting.

I'm going to implement this for Windows at least, as a part of the tool I maintain (https://github.com/postprintum/devcomrade). I plan to use Windows Clipboard API to strip the rich formatting in-place, as it gets copied into the clipboard. Then it can be pasted using whatever the default hotkey or UI is.

Does it sound reasonable?

Re:Ask HN: How do you manage backup 2FA codes? on Monday August 10, 2020 @08:12PM (#24115791)
I use Microsoft Authenticator App, which has an option to backup secrets to OneDrive. I now use it for all services which support 2FA setup via QR code, including Google accounts.

Previously it was Google Authenticator, which didn't seem to have a backup option.

asking for a friend of course :)

Ask HN: Does any part of your LOB web app still require IE11?

For example, you might have clients with tons of legacy HTML/XML templates which are only rendered correctly in IE11 (with all its quirks)?And so these clients insist they will continue using IE11 for your web app, because they rightfully want their documents to look 100% the same as they did 10yrs ago.If this sounds familiar, how do you plan to eventually retire IE11 support?

( Read More... | 1 comment | on HN )
Very cool! How frequently does it index the HN content? I've just tried searching for DevComrade which I submitted 14hrs ago and nothing shows up.
That's a good question. I've been a long-time user of PureText, but somehow I've only become aware of Ditto's existence last week, when DevComrade was already in the works :)

I've got a quick look and Ditto seem to be capable of doing much more than I personally need, like maintaining the clipboard history (I use Windows' Win+V for that), sharing clipboard over the network and using its own scripting language ChaiScript. OTOH, I'd like to keep the useful functionality of DevComrade at the very bare minimum.

I'm also not sure yet about how exactly they do pasting, i.e., if they use Win32 SendInput. That may affects how well Ditto works with terminals and shells. Conveniently, they provide the source code (looks like it is a C++/MFC project), so at some point I'll come up with a better comparison and update the Readme in my repro.

Thanks! I've added "Insert Guid" merely as an example of how to bind a custom C# script to a menu item or hotkey:

<hotkey name="InsertGuid" menuItem="Insert &amp;Guid" isScript="true"> <!-- this is an example of a C# scriptlet handler --> <![CDATA[ await Host.FeedTextAsync(Guid.NewGuid().ToString("B").ToUpper(), Token); ]]> </hotkey>

> I guess that Win+Ins is doing something similar on Windows?

By default Win+Ins does nothing on Windows. I had to implemented this feature in DevComrade. I wish it was all part of Windows so I didn't have to maintain it :) Happy if they take the source, it's an Apache 2.0 license.

I used to hit Alt+D or Win+R for that. But now I can do Win+Ins and it pastes a single unformatted line without line breaks anywhere. Works very well for me in the command line, especially when remoting with SSH.
Also, DevComarade already has a shortcut for Presentation Mode, which just launches Presentationsettings.exe, but that should too keep you PC awake and without locking the screen, if that's what your want.
Thanks! Prevent Sleep Mode is on my TODO list, same as publishing to Windows Store. I'm not sure if there's a similar tool for MacOS. If there isn't, that'd be a bit of a learning curve for me to implement it :)
My bad, but I can't find how to edit it. Long-time lurker with only a few submissions.
DevComrade is different from many similar utilities (e.g., from Puretext) in how it uses Win32 simulated input API to feed the text into the currently active window, as though it was typed by a person. For example, it works well with Google's Secure Shell App for Chrome.