-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: rewrite and make it more robust #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I haven't read the patch mostly because it changes indentation, and that makes it harder to tell what really changed.
So, to start with, could you please keep the indentation as 2 spaces?
I'm using official formatter (fish_indent). It doesn't allow to change indent level, so I think 4 spaces is official. I recommend using it too. Anyway, I tried to undo any changes |
Thanks for reducing the size of the diff, @stasjok. Really appreciated 😊
Absolutely, we can definitely address that in a following PR. I think the gains in speed and robustness (and simplicity too, I'd argue) outweigh the caveats — more so considering only one official plugin depends on |
I've applied your suggestions. |
I wonder why the build doesn't get triggered |
f00deff
to
8ee775e
Compare
I guess we're good to go. I've just confirmed that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, @stasjok. And also thanks for things I learned from you here 👍
Sorry for the delay.
I know it's a radical change, but I rewrote it. The main reason is speed.
It:
sed
/tr
Caveats:
$pipestatus
, fish 3.0 always return 0, but still worksenv
should support-0, --null
argument, it added to GNU coreutils long time ago, but I don't know about OS other than LinuxIt is less portable/compatible, so I don't think someone will merge it, but I created a pull request in case someone would want to try it.