-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
'from-ssv' skips empty elements and shifts the remaining columns to the left #1350
Comments
I think this is working as expected. If you use |
Using But it's not clear to me why this isn't the default behaviour? In which cases would you not want to parse using aligned columns? |
I'm not 100% sure why it wasn't chosen as the default, but my guess would be that there's a cost to aligned columns, so whoever created this command would like for the user to explicitly request that, or perhaps there are examples of commands that don't align the columns (I can't think of any right now), or maybe a bit of both. Either way, we're really hoping to get aliases in soon, so if you wanted aligned columns to be the default, it should be easy to set up an alias that makes it do so 🎉 (I've done this for a lot of commands in my zsh profile) |
I started defining functions in Once you get used to them, you will have much more power! Aliases are very limited, for example you can't use pipe, unlike Bash. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue has been marked stale for more than 10 days without activity. Closing this issue, but if you find that the issue is still valid, please reopen. |
Describe the bug
If a space-separated table has an empty element (i.e. there is a row that has no value for some column),
from-ssv
will not detect this and shift all the next element to the left.To Reproduce
Run some command that has space-separated table with an empty element.
In the following example the
PORTS
column is empty for the first element. Because of this, the value of the next column (NAMES
) is shifted to the left andfrom-ssv
splits the data into 2 tables.Expected behavior
I would expect
from-ssv
to detect if a column is empty and display the table correctly.Screenshots
N/A
Configuration (please complete the following information):
Nu 0.9.0
The text was updated successfully, but these errors were encountered: