Our great sponsors
-
Clipboard
๐๐๏ธ๐ฌ Your new, ๐ง๐๐๐ค๐ฃ๐ ๐ช๐ก๐๐๐๐ค๐ช๐จ๐ก๐ฎ smart clipboard manager
-
wl-clipboard-x11
Discontinued A wrapper to use wl-clipboard as a drop-in replacement to X11 clipboard tools
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
remote-development-manager
tooling that makes development easier in remote environments like ssh and codespaces
I'm unaware of many programs that actually respect $NO_COLOR. Certainly `ls` and `grep`, the two programs I use the most which display colored output, don't respect that environment variable. `ag` doesn't respect it either. In fact, the only program I use on a semi-regular basis which respects $NO_COLOR is `fd`. All the rest expect a `--no-color` command line parameter to disable colorized output. Given that, I'm wondering why the authors chose to control output colorization with an environment variable, rather than a command line argument.
[1]: https://github.com/Slackadays/Clipboard/wiki/User-Experience...
Similar tool support Windows and OSX: https://github.com/b1tg/pickup
Though not exactly the same, I did create a project for easy sharing of clipboard https://github.com/krishnaraj/oneclipboard. Lost interest after background Clipboard access was restricted in Android 10 or something.
Yes OSC 52 is very handy for vim over SSH: instead of X11 forwarding - you can just yank text from remote vim into the local clipboard using OSC 52 [1].
Overall it's much quicker - as yanking in vim with X11 forwarding and '+clipboard' sometimes had a delay.
(ps: I think OSC 52 is implemented in xterm and URXVT, but not yet in gnome-terminal)
[1]: https://github.com/ojroques/vim-oscyank
I use https://github.com/BlakeWilliams/remote-development-manager for this. If youโre willing to add some aliases and editor config you can easily get a UX that feels like a unified clipboard across remote hosts.
Related posts
- how do you copy/paste stuff from/to vim?
- Why not tell people to โsimplyโ use pyenv, poetry or anaconda
- Ojroques/Vim-oscyank: A Vim plugin to copy text through SSH with OSC52
- Tmux + SSH + vim, mouse selection not copying to clipboard
- Clipboard integration between tmux, nvim, zsh, x11, across SSH sessions