Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make default config conservative about clipboard #12385

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

sholderbach
Copy link
Member

@sholderbach sholderbach commented Apr 3, 2024

Some platforms don't support the system-clipboard feature, notably termux on android.
The default config currently contained references to reedline events that are only available with the feature enabled (#12179). This thus broke the out of the box config for those users.

For now be more defensive about this and only enable default events. Add the alternative as commented out code you can quickly enable.

Tested with:

cargo run --no-default-features --features default-no-clipboard -- --config crates/nu-utils/src/sample_config/default_config.nu

Some platforms don't support the `system-clipboard` feature, notably
termux on android. The default config currently contained references to
`reedline` events that are only available with the feature enabled
(nushell#12179). This thus broke the out of the box config for those users. For
now be more defensive about this and only enable default events. Add the
alternative as commented out code you can quickly enable.
@sholderbach sholderbach added the pr:bugfix This PR fixes some bug label Apr 3, 2024
@devyn
Copy link
Contributor

devyn commented Apr 4, 2024

So fast! 🚀

@sholderbach sholderbach merged commit a6afc89 into nushell:main Apr 4, 2024
15 checks passed
@sholderbach sholderbach deleted the clip-clipboard branch April 4, 2024 07:10
@hustcer hustcer added this to the v0.93.0 milestone Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:bugfix This PR fixes some bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants