-
Notifications
You must be signed in to change notification settings - Fork 238
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
Port before_v0.60/coloring
folder (issue #221)
#836
Conversation
looks like there are some conflicts here |
This script is already ported to `modules/coloring/24bit-1.nu`
This script is already ported to `modules/coloring/256_color_testpattern.nu`
- `str lpad` -> `fill -a l` - `if {}{}` -> `if {} else {}` - `str collect` -> `str join` - explicit `print`
- `str collect` -> `str join` - remove the commented old script for 0.31 - pipeline for -> `each` - escape `\`
- remove the version comment - `str collect` -> `str join` - remove `autoview`
- math eval % to `mod` - `str collect` -> `str join` - `if {} {}` -> `if {} else {}`
- merge `nu_index_fg.nu` and `nu_index_fg2.nu` this is the same script - math eval % to `mod` - `str lpad -l` to `fill -a l -w` - `str collect` -> `str join` - `if {} {}` -> `if {} else {}` - uncomment one-liner, make a function
- `str collect` -> `str join` - `str lpad -l` -> `fill -a l -w` - `if {...} {<empty>}` -> `if {}` - explicit print
- `str collect` -> `str join` - explicit print - `str lpad -l` -> `fill -a l -w`
- `str collect` -> `str join` - remove autoview - `echo 40..47 100..107 49` -> `[40..47 100..107 49] | each { flatten } | flatten`
I've pasted them inside nu scripts
ef22f0f
to
917abad
Compare
I updated my fork and rebased my branch. Conflicts were due deletion |
Oh, I had those files there for a reason when I wrote them. It's good to see what the bash/pwsh/python equivalent is when porting a script. Maybe we should add them back. |
I put them in comments in nu files. Some nu scripts has already contain bash equivalents in comments so I decided it is convenient. If they should be separated files, I can revert it and just move to new location |
oh, I'm fine with comments. Thanks! |
This PR is part of porting all old scripts #221 and ports
coloring
folder