mirror of
https://github.com/nushell/nushell.git
synced 2026-12-03 02:27:37 +08:00
## Release notes summary - What our users need to know ### Cross-platform clipboard command This PR integrates [nu_plugin_clipboard](https://github.com/fmotalleb/nu_plugin_clipboard) into Nushell as a built-in internal command. Migrating from an external plugin required several changes across the codebase and internal APIs. Because of this, the current implementation may not be completely stable and will likely need further testing and debugging. This PR prioritizes integration over stability, and additional fixes are expected in follow-up work. Examples: ``` # Copy data to the clipboard ~> "data" | clip copy # Pass through the copied data ~> "data" | clip copy --show | save out.txt # Retrieve data from the clipboard ~> clip paste ``` Like the original plugin, it can automatically convert objects and arrays to and from JSON. This behavior can be disabled using the `--raw` flag on the `paste` subcommand. However, to copy a raw value, you must explicitly cast it to a string. Note: this feature could be removed to keep the command simpler and aligned with a single-responsibility design, but it's a nice-to-have thing. Closes: #16242 ## Tasks after merging - [ ] Update the documentation: https://github.com/nushell/nushell.github.io - [ ] Remove the legacy std/clip script --------- Co-authored-by: Motalleb Fallahnezhad <fmotalleb@dornica.net>
run the scripts
Note
the following table must be read as follows:
- an
xmeans it works- a
?means no data available
.nuscripts must be run asnu .../foo.nu
.shscripts must be run as./.../foo.sh
.ps1scripts must be run aspowershell .../foo.ps1let's say a script is called
foo
- an
xin the./scriptscolumn meansfoocan be run from./scripts- an
xin the root column meansfoocan be run from the root ofnushell- an
xin the anywhere column meansfoocan be run from anywhere!
| script | ./scripts/ |
root | anywhere |
|---|---|---|---|
build-all-maclin.sh |
x | x | x |
build-all-windows.cmd |
? | x | ? |
build-all.nu |
x | x | x |
coverage-local.nu |
x | x | x |
coverage-local.sh |
x | x | x |
install-all.ps1 |
? | x | ? |
install-all.sh |
x | x | x |
uninstall-all.sh |
x | x | x |