-
Notifications
You must be signed in to change notification settings - Fork 63
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
columns width behaviours an others tests #41
Comments
Hi Giorgio! Okay, let me see, what I can do here for you. On Do, 22 Jan 2015, Giorgio Robino wrote:
Should that only apply to the heading? Perhaps I can conceal the header
Okay, I can only workaround the issue, since there is no autocommand for
You need :%ArrangeColumn! (only when the '!' is used, the width will be
Was there an empty newline after the header? By default using :CSVTable Try visually selecting the region and then use :Table, so that it looks
What you are seeing here, is the regular expression that is generated to Thanks for the feedback! Best, ChristianWenn ein Politiker stirbt, kommen viele zur Beerdigung nur deshalb, um |
what I mean is reduce automatically the column width to a MINIMUM fxed size for each column, truncating eventually the header line in compliance, for example in this case: instead of this (as now behave):
optionally having this:
no problems. In facts setting line (= rows) numbers with :set nu is a plus, and the row line appear in the standard vim bottom line..
I see, Ok!
Let consider this file: $ cat TeamsHalf.csv | more plugin seem to detect perfectly: if i now run :%CSVTable now, if I Undo and I run: :%CSVTabularize and strangely, if i do vi TeamsHalf.csv thanks for you patience |
The Table command should be fixed now. I leave the issue still open for the collapse feature |
Hi just a thought here on correcting the header misalignment when doing :set nu. Instead of using the CursorHold autocommand, would using either the FocusLost/FocusGained autocommand pair, or the VimResized autocommand work? When a misalignment is noted, the user could then click away to another window (or desktop) in the first case, or in the second case change the window size slightly. Might be faster than CursorHold. Just a thought. Thanks for this plugin, and keep up the great work!! |
Hi jubilatious1! On Fr, 18 Dez 2015, jubilatious1 wrote:
You mean for the header command? Did you notice any misalignments, that For now I have added an extra autocommand for the Best, ChristianGast: "Ich warte schon seit zwei Stunden auf mein Fünf-Minuten-Steak." |
Hi Christian! Thanks for the fast response! Regarding your changes, maybe user:solyaris can give us his review? I'll check what you ask and post back here. Thanks again for all your hard work! |
Hello,
This idea solves the computational needs of I've been scanning the documentation, but I have not found if something like this is possible in the newer version of csv.vim. I can imagine that if this is not possible in the current version of csv.vim, it would take considerable effort to add! I have read in other, more recent issues that you're no longer actively using the plugin yourself, so I understand if this is no longer possible. Kind regards and thank you for the plugin Florian |
Thanks for the feedback and the nice words. Unfortunately, it is not really possible to collapse a column. We would need some kind of vertical folding for that, but this is not available in Vim yet. I once started to implement this. There is the But even then, if collapsing would be available, I think it wouldn't buy us much, Perhaps using vim9script could speed up things a bit, not sure. And yes you are right, I am not using this plugin much anymore. Nevertheless, I am trying to fix bugs reported here. |
Okay, I understand! |
Hi Christian,
here below I submit some screenshots to show some minor points/possible small issues:
column widths (collpase feature)
see:
ArrangeColumn do great job here!
Nevertheless a possible useful feature could be to have a width collapse to show the minimum-necessary spaces, in the screen above there are many spaces between a column and another, that's clear but minimize the number of columns in view. Maybe a "Collapse" flag (why not a optional paremeter of ArrangeColumn command?) could help to set in view the max number of columns avoiding much panning (in case of many columns)... it's just a feature
(BTW I tested Fixed columns feature but I had no success, myabe I didn't well understood behaviour).
To be fully clear, now is like that:
visualization proposed as optional ("ArrangeColumn collapse"):
Setting vim numbering
If I set numbering on a CVV file,
: set nu
I got this:so the header become dis-aligned. Minor point. if I reset vim numbering, all back correct:
ArrangeColumn does not fix sometime
Here below I edited line 11381 changing a filed in column 3 with vi command
cwgiorgioybr01
and I got this:strangely neither ArrangeColumn or %ArrangeColumn correct visualization.
CSVTable
if I run:
:CSVTable
it seem that Header is not keep inside:
Searching
Searching inside an (highlihghted) column is a great feature!
I experienced sometime that is printed sort of vimscript in last vim line.
just a bit confusing at first glance, but it's real a minor point :-)
Sorry for my "picky" notes, is just to reward your great work on csv.vim!
respect
giorgio
The text was updated successfully, but these errors were encountered: