3 ms·
The problem here is that all of these tools are really unintuitive to use because you can't just discover them on your own, or I wouldn't have thought to make C
by netr0ute 4y ago
The problem here is that all of these tools are really unintuitive to use because you can't just discover them on your own, or I wouldn't have thought to make Clipboard. You also have to use stdin/stdout/redirection which is a huge pain if you just want to specify some random file. I also can't figure out how to use xclip. If even I on Hacker News can't figure it out, new users to the terminal never will. Also, none of these tools offer cutting.
- dredmorbius 4y agoFor what it's worth, I discovered them on my own. And, no criticism at creating your own implementation, but it's very, very far from the first CLI-clipboard integration. If it makes you feel any better, I've coded up my own solutions to several problems, only to discover existing, and better, solutions myself. Multiple times.
- netr0ute 4y agoThe other problem here is that if an average user can't easily discover those other options, then they might as well not exist. In comparison, "Clipboard" is exactly what you'd search for and is exactly what you think it is.
- dredmorbius 4y agoSearching "command line clipboard for ...": MacOS: <https://duckduckgo.com/?t=ffab&q=command+line+clipboard+macos&ia=web https://duckduckgo.com/?t=ffab&q=command+line+clipboard+maco...> First result, pbcopy/pbpaste: <https://osxdaily.com/2009/12/09/access-the-clipboard-from-the-command-line/ https://osxdaily.com/2009/12/09/access-the-clipboard-from-th...> Linux: <https://duckduckgo.com/?q=command+line+clipboard+linux&t=ffab&ia=web https://duckduckgo.com/?q=command+line+clipboard+linux&t=ffa...> First result, several, including xclip: <https://www.baeldung.com/linux/clipboard https://www.baeldung.com/linux/clipboard> Android: <https://duckduckgo.com/?q=command+line+clipboard+android&t=ffab&ia=web https://duckduckgo.com/?q=command+line+clipboard+android&t=f...> This does worse, though there are, again, several options listed. If you think to substitute "Termux" for "Android", this becomes the first result: <https://wiki.termux.com/wiki/Termux-clipboard-set https://wiki.termux.com/wiki/Termux-clipboard-set> Again: it's fine to produce tools, even redundant ones. But you'd be more credible with greater accuracy in your claims and statements.
- g105b 4y agoFor what it's worth, I love working with stdin/stdout/redirection.
- dredmorbius 4y agoNB, no, you don't have to use stdin/stdout, but rather you have the option to use those. What pbcopy/pbpaste, xclip, and the Termux commands offer is an alternative to pasting via mouse actions. You can still interact with mouse-based controls. I'll typically do that, for example, when case-normalising titles using a shell utility I'd created. Since 'xc' will overwrite the clipboard if invoked in the same pipeline, this command fails to deliver expected results: xp | titlecase | xc Instead, I can paste in some ALL CAPS TITLE, say: echo 'ALL CAPS TITLE' | titlecase | xc # Where 'ALL CAPS TITLE' has been pasted via mouse Running 'xp' alone, we see the result: $ xp All Caps Title So, again, you seem not to understand either the problem space or the available tools.