I'm no longer maintaining this library, but I've heard that https://github.com/Stormherz/tablify is a good alternative, so perhaps check that one out?
Thanks,
—Vincent
Easily create and reformat your RST (reStructuredText) tables as you change cell content.
I'm no longer maintaining this library, but I've heard that https://github.com/Stormherz/tablify is a good alternative, so perhaps check that one out?
Thanks,
—Vincent
hi,
I apologize but I cannot make it working, I tried the tutorial.rst and the keybindings do not work for me, neither the comma version nor the leader one.
Could anyone help me debug this out?
Cheers,
Al
Running the example gives me the following error:
Error detected while processing function ReflowTable:
line 7:
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "<string>", line 279, in reflow_table
File "<string>", line 194, in get_column_widths_from_border_spec
RuntimeError: Cannot reflow this table. Top table border not found.
Thanks for this very nice utility.
When I used the current github version of vim-rst-tables with the 'easy_install vim_bridge' version - as of today = 0.4 - I get errors running 'RefflowTable and ReformatTable of form 'Undefined variable: None'. These are fixed by appending 'return ''' to the 'reformat_table' and 'reflow_table' functions. Looking at 'vim_bridge' 0.5 - I guess that you've fixed this in the newest version of vim_bridge, but, still, it's confusing it doesn't work for the current easy_install version.
It you be nice to be able to format tables that have escaped |
chars (\|
) in the cells.
As it is now I get this trace when trying to do it
Error detected while processing function ReflowTable:
line 7:
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "<string>", line 292, in reflow_table
File "<string>", line 253, in draw_table
File "<string>", line 229, in reflow_row_contents
IndexError: list index out of range
Sample table (which don't work atm)
+--------------------+
| foo | bar |
+====================+
| foo | bar \| baz |
+--------------------+
| foo | bar baz |
+--------------------+
reST supports directives within tables, but these often require line breaks within rows. vim-rst-tables currently joins all lines into one when reflowing tables. Would it be possible to modify the plugin so that line breaks can be honoured?
The following is an example of what I would like to do:
+------------------+---------------------------------------------------+
| myFunction() | .. deprecated:: 0.35 |
| | Please use thisOtherFunction() instead. |
| | |
| | A function which solves all your problems. |
+------------------+---------------------------------------------------+
The creating table command should be \\c instead of \c. Same for reflow.
the plugin does not seem to work with vundle installation. manually installing the original version on vim scripts works fine
I have installed via vundle and installed vim_bridge with pip3 and pip.
If I am calling ,,c in a rst file, I am getting the follwoing error:
E11: Unknown function: ReformatTable
Can someone help here? Why is the function not available?
vim --version | grep python
+comments +libcall -python +vreplace
+conceal +linebreak +python3 +wildignore
+======+============+
-line to detect what column widths you like to use and reflow the cell's content inside the cells based on those widths.,,f
)I have the latest macvim 7.4 release and this plugin doesn't work. I have no problem importing vim_bridge but no mapping for ,,c and ,,f are detected.
Hey,
I get the following error while trying to create a Table.
First, this is the file I'll try to format:
List of games for Oberhof 2012
==============================
Spiel Verlag Anzahl Spieler
1830 Lookout 2-6
And the error I get:
Error detected while processing function ReflowTable:
line 7:
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "<string>", line 279, in reflow_table
File "<string>", line 194, in get_column_widths_from_border_spec
RuntimeError: Cannot reflow this table. Top table border not found.
Not really an issue, more of a comment that may help other. If you are using the pathogen plugin, I had to change:
./bundle/vim-rst-tables/ftplugin
to
./bundle/vim-rst-tables/plugin
for everything to work.
I wonder if you would consider merging my rst-sections functions into your useful script? I've had good use from them, and I based them on vim-rst-tables - using your excellent vim-bridge stuff. I'd be happy to see rst-sections become part of rst-tables if you'd accept:
https://github.com/matthew-brett/myvim/tree/master/bundle/rst-sections
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.