aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bugfix for table output.Vincent Driessen2010-08-203-14/+14
| | | | | Apparently, RST requires the first line of tables to be drawn with minuses, not equal signs.
* Implemented the "reflow" command.Vincent Driessen2010-08-205-9/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, if you have the following table in your source file: Type Message Foo I like bananas very much. Even so much that I adore them. Position your cursor in it and call ReformatTable(). This makes the following: +======+===========================================================+ | Type | Message | +======+===========================================================+ | Foo | I like bananas very much. Even so much that I adore them. | +------+-----------------------------------------------------------+ But if you don't like these kinds of long wrappings, you can now simply remove (or add, for that matter) some of the '='-signs from the top row, like this: +======+================================+ | Type | Message | +======+===========================================================+ | Foo | I like bananas very much. Even so much that I adore them. | +------+-----------------------------------------------------------+ And then, call ReflowTable(): +======+================================+ | Type | Message | +======+================================+ | Foo | I like bananas very much. Even | | | so much that I adore them. | +------+--------------------------------+ This fixed issue #1.
* Fix key mapping.Vincent Driessen2010-08-191-1/+1
|
* Add support for multi-line cell formatting.Vincent Driessen2010-08-193-42/+130
| | | | | | | | | | | | | | | | | For example, when given the following table: [['Foo', 'Bar'], ['x', 'This is a long line\nthat is spread out\nover multiple lines']] It will render as: +=====+=====================+ | Foo | Bar | +=====+=====================+ | x | This is a long line | | | that is spread out | | | over multiple lines | +-----+---------------------+
* Fixed the last failing test (stupid line ending bug).Vincent Driessen2010-08-191-3/+6
|
* Add line partitioner.Vincent Driessen2010-08-193-11/+85
| | | | | | | | | | | | | | | | | | Is able to parse tables of the form: +=====+=====================+ | Foo | Bar | +=====+=====================+ | x | This is a long line | | | that is spread out | | | over multiple lines | +-----+---------------------+ Into: [['Foo', 'Bar'], ['x', 'This is a long line\nthat is spread out\nover multiple lines']] The draw_table function needs to be written still, though.
* Remove CreateTable().Vincent Driessen2010-08-193-6/+3
| | | | This implementation only needs ReformatTable(), also for creation.
* Credit Hugo Ruscitti, the original author of the RST for Vim plugin.Vincent Driessen2010-08-192-4/+9
|
* Add join_rows helper function (necessary for joining long lines later on).Vincent Driessen2010-08-193-1/+77
|
* Add helper to set the fake vim cursor in tests.Vincent Driessen2010-08-191-2/+4
|
* Add ability to remove all empty columns automatically.Vincent Driessen2010-08-195-11/+63
|
* Use fixtures to make the tests more readable.Vincent Driessen2010-08-192-22/+28
|
* Fix tutorial.Vincent Driessen2010-08-191-10/+13
|
* Added ability to parse existing tables.Vincent Driessen2010-08-193-8/+56
|
* Deal with spaces at the end of the line.Vincent Driessen2010-08-194-2/+8
|
* Add a simple tutorial.Vincent Driessen2010-08-191-0/+54
|
* Finish the CreateTable() function, now we're done with the details.Vincent Driessen2010-08-192-32/+6
|
* Ignore *.pyc files.Vincent Driessen2010-08-191-0/+1
|
* Fix: vim.buffer -> vim.current.bufferVincent Driessen2010-08-193-15/+15
|
* Add main logic to creating RST tables.Vincent Driessen2010-08-185-9/+412
|
* Change test root.Vincent Driessen2010-08-182-0/+16
|
* Add initial files.Vincent Driessen2010-08-185-0/+139