Giter Site home page Giter Site logo

vim-rst-tables's Introduction

vim-rst-tables

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

vim-rst-tables's People

Contributors

baitisj avatar coddingtonbear avatar erisian avatar insanum avatar jorgesca avatar kri5 avatar livibetter avatar matthew-brett avatar nvie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-rst-tables's Issues

not working at all

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

Example yields an error

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.

Undefined variable: None using vim_bridge 0.4

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.

Support escaped "|" (pipe) chars

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  | 
+--------------------+

Does not honour line breaks in rows

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.        |
+------------------+---------------------------------------------------+

Typo in README

The creating table command should be \\c instead of \c. Same for reflow.

Unknown function

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

Allow two kinds of reformatting

  1. A reformat that uses the first +======+============+-line to detect what column widths you like to use and reflow the cell's content inside the cells based on those widths.
  2. A reformat that adapts the column widths based on the cell's contents (currently ,,f)

Doesn't work on macvim

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.

Error detected while processing function ReflowTable

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.

vim-rst-tables plust pathogen

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.