-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Support for spanning columns and rows? #163
Comments
Seconded. Much to my disappointed face, I just hit this as well. 😞 For completeness, it should be noted that the above syntax is the grid layout variant for table syntax supported by reStructuredText (reST). Although reST also supports a simpler Markdown-style variant, the clearly superior grid layout renders that mostly irrelevant, so let's safely ignore that. Sadly, this long-standing issue makes editing reST tables with row- or column-spanning cells more cumbersome than it should be. It's not a deal breaker per say; it's just an insufferable pain point that I suffer while grinding teeth with a white-knuckle keyboard grip. My current workflow resembles:
Quite simply, it sucketh. Vanilla non-grid Markdown table support is, by compare, significantly more robust – probably because vanilla non-grid Markdown tables don't even support row- or column-spanning cells. It'd be nice if Thanks for all the awesome Vim volunteerism nonetheless, @dhruvasagar! |
While I complete agree for the need for such behavior, it's not easily achievable. |
Hey, no worries whatsoever. I'm just delighted that you're willing to actively maintain this absurdly essential plugin on behalf of the community at large. Multi-cell support would just be the useful optional cherry icing on the cake that we can technically do without, because we currently are. Let's talk syntax, though – because syntax is fun, kids! My preferred solution would be for implicit detection: that is, for the plugin to parse user-defined grid layouts with pure Vimscript and do its utmost best to preserve well-formed row- and column-spanning cells as is. Since Vimscript is hell, that probably doesn't sound very fun... and I'd agree. Since you propose plugin-specific syntax, there are probably very good (albeit undocumented) reasons why implicit detection is a no-go. I'm not quite sure how plugin-specific syntax like Thanks for all your tremendous efforts here, @dhruvasagar! You amaze and stun the expectant crowds with your open-source volunteerism. 👍 |
Thanks for your kind words. And you're absolutely spot on with regards to syntax and compatibility issues that may ensue as a result of trying to implement something like this. That has been the no. 1 concern of mine and why I haven't given it much thought. I would much rather invest my time into building other essential functionality improving the experience of editing & manipulating tables in general. |
Hi, |
@void-m4110c So far I haven't encountered / thought about a clean way to implement this. So we're stuck at that. I haven't come across something like this elsewhere for reference. So for now there's no timeline when this will be available. |
nthing the usefulness of this feature (and WHAT A GREAT PLUGIN!) |
As an update, in my ongoing efforts to improve the plugin I am trying to borrow ideas from emacs' table mode, they have solved most of these requirements, although not all behaviors are easily portable from emacs over to vim. |
Hi @dhruvasagar ,
It's wonderful to have your plugin to VIM. I'm trying to work on the spanning multiple rows and columns via vim-table-mode. So far, I haven't been able to achieve that. I tried to look for online help but to no avail. Would you mind sharing how I can do that?
This is what I want to achieve:
And yet this is what I get
I copied and pasted the above TABLE 1 into vim with Table Mode Enabled, it rendered well. Only until I moved the cursor inside the table, did it start to automatically rearranged every cells till it became TABLE 2.
I really appreciate your work and hope you can help me with this issue.
Regards,
JP
The text was updated successfully, but these errors were encountered: