-
Notifications
You must be signed in to change notification settings - Fork 17
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
Pivot builtin #336
base: main
Are you sure you want to change the base?
Pivot builtin #336
Conversation
ac3719f
to
ac6859a
Compare
@richiejp EXPECT still fails on my machine, starting with |
Oh now I see, the problem is that the script requires Could you review to see if you can find a way, that isn't too much work, to eliminate the dependency on |
I really like this built-in lowercase 'v' (pivot on current column) feature! Could you also:
Other future enhancement (for a separate future PR):
|
Re the expect issue, what do you think to the sperate utility, does that work for you #341 (comment) If not i'll try creating a Make only version, but i suspect it will have the same issues as the script |
Since we now know why it was failing in my environment, let's put a pause on addressing the test issue and move on with this and other PRs. I will separately take a closer look at #341 and we can go from there. |
Shouldn't this be a no-op? The program is generating the output so it can ensure that the header is the first row and data starts on the second row. |
Thanks! I was originally thinking of having an auto-complete, which would still be nice for files with a lot of columns, but it is far more complicated. Perhaps something to consider for the
Right, thanks, there is a bug (or multiple bugs) which effect the mixed-line-endings.csv file which I thought were related to the header span, |
4a4cbed
to
495045f
Compare
Presently there are multiple different names for disabling row number generation and we should probably pick one:
|
It needs to be included in the sheet command for the pivot builtin and in the sql command.
6060989
to
a978698
Compare
The user can either pivot on the column under the cursor with 'v' or enter an SQL group-by expression with V
Allows errors to be displayed for longer without them blocking other status messages after the user has been given time to view them. Possibly errors should be displayed in a separate buffer or location, but while we are overloading the status this gives the user chance to view them.
6322e78
to
e4720fa
Compare
e4720fa
to
59e7add
Compare
macosx 13 failed when trying to scroll to the bottom, it seems it almost scrolled the bottom, but it still needs to go down one line. The stage before that which failed took 5s which is a very long time to filter that file. |
Convert pivot extension example to a builtin.
Branch is based on recent index changes, the only two relevant commits so far are:
TODO:
v
after scrolling down (missing header value)v
on B and C columns to show a single group with just the header as the valueV
commandV
command