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

add the no-strip flag to the clip command #9216

Merged
merged 2 commits into from May 18, 2023
Merged

Conversation

maxim-uvarov
Copy link
Contributor

@maxim-uvarov maxim-uvarov commented May 17, 2023

Description

ansi strip (used in the clip command by default) removes tab symbols, which is sometimes not useful (for example, when using the [[a b]; [1 2]] | to tsv | clip command). Therefore, I added a flag to prevent using ansi strip in the clip command.

User-Facing Changes

Tests + Formatting

After Submitting

ansi strip removes tab symbols, which is sometimes useful (for example, when using the `... | to tsv | clip` command). Therefore, I added a flag to prevent using `ansi strip` in the clip command.
crates/nu-std/lib/mod.nu Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 17, 2023

Codecov Report

Merging #9216 (3d48ef7) into main (057de06) will decrease coverage by 0.38%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #9216      +/-   ##
==========================================
- Coverage   68.92%   68.54%   -0.38%     
==========================================
  Files         635      636       +1     
  Lines      102041   102281     +240     
==========================================
- Hits        70329    70106     -223     
- Misses      31712    32175     +463     

see 24 files with indirect coverage changes

crates/nu-std/lib/mod.nu Outdated Show resolved Hide resolved
@fdncred fdncred marked this pull request as draft May 17, 2023 23:56
@amtoine
Copy link
Member

amtoine commented May 18, 2023

so this is ready for review, isn't it @maxim-uvarov ? 😋

@amtoine amtoine added the std-library Defining and improving the standard library written in nu and the core Rust ccommands label May 18, 2023
@maxim-uvarov maxim-uvarov marked this pull request as ready for review May 18, 2023 10:17
@maxim-uvarov
Copy link
Contributor Author

@amtoine, yep, it is ready for review! 🙏
I'm just learning how Git works here. Thank you for your help!

Copy link
Member

@amtoine amtoine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, it is ready for review!

then it looks just fine to me, the CI passes and it works as before locally 👌

I'm just learning how Git works here.

you mean GitHub? 😋

Thank you for your help!

anytime 😌

@amtoine amtoine merged commit fe1174b into nushell:main May 18, 2023
18 checks passed
@maxim-uvarov maxim-uvarov deleted the patch-1 branch May 18, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
std-library Defining and improving the standard library written in nu and the core Rust ccommands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants