4 ms·
I agree with the maddening UI and library inconsistency on Windows. I disagree with the non-composable software comparison. Comparing Windows GUI composition w
by jug 5y ago
I agree with the maddening UI and library inconsistency on Windows.
I disagree with the non-composable software comparison. Comparing Windows GUI composition with CLI composition is apples and oranges.
Let's leave GUI tools out of this and compare the Windows apples to the Linux apples. Windows has PowerShell and what's even better: it's about robust object-oriented composition rather compisition by fragile text parsing. In PowerShell, you can pipe well-formed command output (objects) as well as tell which information you want to see and in which format. List, tabular, JSON... You can also use this shell on Linux because Powershell Core is cross-platform.
Sure, there are strong arguments in favor of the more Unix-like shells too but I strongly disagree that Windows commands lack composition. It did for a long time, but that's many years ago now.
Environment Variables: I honestly find I'm updating env vars mid-session and wanting them refreshed immediately pretty rare these days. But if you must have this, I hear Chocolatey installs a helper utility to re-read them (refreshenv) that can also be grabbed "stand-alone".
Bad Terminal: The much improved Windows Terminal is preinstalled with the latest versions of Windows and can be set as the default terminal.
Clipboards: Try Microsoft PowerToys for multiple clipboards and much more. No computer enthusiast should honestly be on Windows without PowerToys.
SSH: So this is no issue as Windows has Powershell, in turn with a normal SSH client. I don't really understand this one. I'm confused over which Windows version he is comparing to.
Map Win+Enter to open Windows Terminal impossible?? Interesting one, because the Windows key is normally off limits due to being reserved for system shortcuts. But that just makes for a fun challenge. Two tools involved to achieve this: Windows enumerates shortcuts via the task bar area. The first icon activates with Win+1, the next Win+2 and so on. The aforementioned PowerToys allows reassigning existing shortcuts to new shortcuts. See where I'm going here? Put the Windows Terminal icon somewhere in your task bar. Assign Win+(position) to Win+Enter in PowerToys. Done!
---
This article really highlighted to me how deep the Windows ecosystem in fact is, and how it matters to stay on top of things. Especially since Satya Nadella took Windows out of its slumber and straightened out past misdirections since the Ballmer era, things have moved pretty quickly forward. Today, I find Windows to be a pretty strong development platform with the mature Powershell, as well as the smoothly integrated WSL2.
- majkinetor 5y agoThe choco script is called Update-SessionEnvironment (alias refreshenv). It works for both cmd and Powershell. > Clipboards Or use CopyQ wich is FOSS, the best and x-platform
- dflock 5y agoThanks! I've has a look at CopyQ and I don't think it can do what I want on Windows: https://copyq.readthedocs.io/en/latest/scripting-api.html#linux-mouse-selection https://copyq.readthedocs.io/en/latest/scripting-api.html#li... I don't want multiple clipboards or history or a clipboard manager, I just want the Primary Selection thing from Linux. I just want any text selection anywhere to be automatically kept somewhere and allow me to paste it in on a middle mouse click. I would _love_ to be wrong, but I don't think that's a thing on Windows?
- majkinetor 5y agoYou can do that with Auothotkey easily: This is PoC of the top of my head ~LButton Up:: If ( A_Cursor="IBeam") { Send, ^c Tooltip, Copy Selection`n%Clipboard%, 0, 0 } Return CopyQ will save your history and everything you select will go there automatically. EDIT: Found this, you might want to check it out: https://www.autohotkey.com/board/topic/5139-auto-copy-selected-text-to-clipboard https://www.autohotkey.com/board/topic/5139-auto-copy-select...
- dflock 5y agoI will be checking out AutoHotkey based solutions, thank you!
- dflock 5y ago> Clipboards: Try Microsoft PowerToys for multiple clipboards and much more. I have that installed, I think? Are you talking about this: https://docs.microsoft.com/en-us/windows/powertoys/ https://docs.microsoft.com/en-us/windows/powertoys/ ? As far as I can see, there are no clipboard things in PowerToys, currently? Either way - I don't want multiple clipboards or history or a clipboard manager, though, I just want the Primary Selection thing from Linux. I just want any text selection anywhere to be automatically kept somewhere and allow me to paste it in on a middle mouse click. I would _love_ to be wrong, but I don't think that's a thing on Windows?