UPSTREAM PR #17572: Feat: native clipboard (using arboard)#54
Open
UPSTREAM PR #17572: Feat: native clipboard (using arboard)#54
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Source pull request: nushell/nushell#17572
Cross-platform clipboard command
This PR integrates 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:
Like the original plugin, it can automatically convert objects and arrays to and from JSON.
This behavior can be disabled using the
--rawflag on thepastesubcommand.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