Dhruva Sagar
ef66b3ec2f
Revert "Also auto realign on InsertLeave #73 "
...
This reverts commit 6584cee4a4 .
2017-03-09 15:02:42 +05:30
Dhruva Sagar
6584cee4a4
Also auto realign on InsertLeave #73
2017-03-09 14:24:15 +05:30
Dhruva Sagar
1eef73fc5b
Add option to auto align table while editing #73
2017-03-09 11:00:19 +05:30
Dhruva Sagar
30a3eba816
Fix #103 : Refactored border creation
...
Border creation should not conflict with the contents of the row
2017-01-05 11:42:10 +05:30
Dhruva Sagar
8d3affcf5f
Minor refactor for table syntax
2017-01-04 16:03:24 +05:30
Dhruva Sagar
9edd6d7d20
Add config to disable table mode syntax
...
Since table mode syntax can hamper performance, it is now possible to
disable it with a global config
2017-01-04 15:49:35 +05:30
harriott
e07c240940
fixed logger.vim and announce g:table_mode_verbose
2016-09-09 10:39:01 +02:00
Dhruva Sagar
8309a33aa7
Fix #90
...
Allow for multiple formula lines
2016-08-23 09:26:24 +05:30
Dhruva Sagar
b613e39bd0
Fix #89
...
Unescape special characters () within the commmentstring
2016-05-08 15:57:13 +05:30
Dhruva Sagar
4cf1f53430
Fix #86
...
Fixed issue with table formula addition when there exists one already
and the comment string is singular, i.e. no end delimiter.
2016-04-09 12:55:29 +05:30
Dhruva Sagar
fdfa4b12c2
Add tablemode#table#IsTable
2015-11-23 14:53:05 +05:30
Dhruva Sagar
74d1492f2b
Add support for center alignment. Fix #57
...
We now have support for center alignment, simply add a header border
with the `g:table_mode_align_char` as both the first and the last
character so it would look something like `+:.....:+` to center align
the column values.
2015-04-14 15:56:09 -07:00
Dhruva Sagar
33c00df509
Fix #56
...
* Fixed tablemode#spreadsheet#cell#SetCell() to accommodate the fact that we
can have borders anywhere in the table. Using
tablemode#spreadsheet#LineNr() to get get the line of the actual row
in the table.
* Fixed tablemode#spreadsheet#LineNr()
2015-02-27 08:53:03 +05:30
Dhruva Sagar
e125870212
Fixed s:Map to not throw error for empty a:to
2014-11-21 07:02:38 +05:30
Dhruva Sagar
d5152bde5e
Fixed typo #39
2014-11-20 07:21:43 +05:30
Dhruva Sagar
b22c9bf7b1
Skip empty maps
2014-11-20 07:19:23 +05:30
Dhruva Sagar
29cae13802
Fixed #44
...
Added tablemode#logger#log && g:table_mode_verbose
Use logger wherever needed for logging general things, in future we can
scale this to do more things like write to a log file for debugging. It
uses g:table_mode_verbose to determine whether or not to actually log
the message.
2014-11-18 07:57:45 +05:30
Dhruva Sagar
af0254e816
Improved tablemode#table#IsHeader()
...
Automatically improves header border creation, especially when
overriding g:table_mode_header_fillchar #31
2014-11-18 07:48:23 +05:30
Dhruva Sagar
bba22a4f04
Added g:table_mode_header_fillchar
...
* Allows configuring a separate character for header border to be used
with pandoc
2014-11-16 13:40:14 +05:30
Dhruva Sagar
ffc734c38d
Added TableModeEnabled & TableModeDisabled autocmd
...
* Added custom User autocmds TableModeEnabled & TableModeDisabled for
working with other plugins like vim-pandoc #43
2014-11-15 16:38:22 +05:30
Dhruva Sagar
ea78f62565
Releasing Table Mode v4.6.1
...
* Added configurable table mappings.
* Updated docs & README.
2014-10-28 13:31:16 +05:30
Dhruva Sagar
7e06786708
Minor formatting
2014-10-28 08:04:39 +05:30
Dhruva Sagar
ef0eef0f35
Fixed #38
...
Added a mapping `<Plug>(table-mode-sort)` which is mapped by default to
`<Leader>ts` that sorts the current table by the column in which the
cursor is currently.
Also added `TableSort` command that gives you a little more control over
the sorting, you can pass in additional :sort flags like u, i, n etc and
also use it with a `!` to sort in reverse order.
2014-09-17 01:36:59 +05:30
A.J
a3e3269658
show table-mode status
2014-08-24 07:42:51 +09:00
Dhruva Sagar
761a67b36b
Fixed #16
...
Altered table mode behavior such that if there is a header line, i.e.
the first line of the table is separated by a border with the rest of
the table, then it is not taken into account for formulas and cell
arithmetic
2014-08-15 09:40:29 +05:30
Dhruva Sagar
8683146a5f
Removed unnecessary code / headers
2014-08-15 07:55:19 +05:30
Alex Rodionov
6b89fe5c9e
Fix specs
2014-07-24 19:15:36 +07:00
Alex Rodionov
67969ae5cf
Set table_mode_disable_mappings to 0 by default
2014-07-23 10:23:09 +07:00
Alex Rodionov
135d571e9c
Added option to disable all mappings
2014-07-23 08:59:28 +07:00
Dhruva Sagar
0f1254e1fe
Updated table syntax to get toggled with table mode
2014-05-30 12:05:31 +05:30
Dhruva Sagar
e7e806916f
Refactored toggleMapping
2014-05-30 11:49:13 +05:30
Dhruva Sagar
9336261063
Added cell text object for visual mode
2014-05-15 11:02:21 +05:30
Dhruva Sagar
80ec86e385
Version 4.4.2
...
* Updated mappings to be buffer local
* Updated mappings to toggle with Table Mode
2014-05-13 11:18:42 +05:30
Dhruva Sagar
7eff1e30f1
Fixed #30
...
In case there is nothing to align, it was failing with an error, this
ensures it exists gracefully in this situation.
2014-05-10 15:27:36 +05:30
Dhruva Sagar
dbd79f2c1e
Minor refactor & improved test coverage
2014-05-01 16:35:25 +05:30
Dhruva Sagar
fa568fe91b
Improved test for utils
2014-04-30 23:05:19 +05:30
Dhruva Sagar
53da3fb4c2
Fixed #28
...
Altered border generation code to incorporate true display width of
characters, hence generate more accurate borders.
2014-04-30 21:30:44 +05:30
Dhruva Sagar
f2f62d78e5
Added support for negative indices
...
When defining formulas you can now use negative indices for target /
cells to refer to them relative to the last. -1 being the last and so
on.
2014-04-28 13:41:21 +05:30
Dhruva Sagar
7810ce0ca0
Fixed #26
...
Not assuming a length for alignments, looping through all and adding 'l'
as default first then updating as per the column alignments.
2014-04-26 23:52:18 +05:30
Dhruva Sagar
b22d793135
Improved fix for #20
...
Instead of relying on a /g or /gg flag based on gdefault, I temporarily
disable gdefault and set it back to the old value aftwards.
2014-04-25 18:18:19 +05:30
Dhruva Sagar
de2ad0b71d
Fixed header creation as first line of table
2014-04-25 18:10:12 +05:30
Dhruva Sagar
29c7ec1a23
Cosmetic change
...
changed variable name from i to jdx since for consistency, i is short
for insert which is a vim ex command so to make things unambiguous.
2014-04-25 15:59:08 +05:30
Dhruva Sagar
a0fcb89f43
Fixed #19
...
Updated tablemode#table#IsRow() to allow hiphens within the row.
2014-04-25 14:54:43 +05:30
Dhruva Sagar
5007e5f728
Added support for column alignment #23
...
Now we can define gfm-style aligment by adding them to the header column
2014-04-25 14:42:02 +05:30
Dhruva Sagar
71051e2c22
Merge branch 'master' into feature/gfm_column_alignment
...
Conflicts:
autoload/tablemode/table.vim
2014-04-25 14:31:33 +05:30
Dhruva Sagar
43d0c0ff6f
Cosmetic refactoring
...
* Changed the API calls to be more sensible & simple and free of
redundancy.
2014-04-25 11:09:14 +05:30
Dhruva Sagar
00c54e8e02
Refactoring alignment
2014-04-24 15:48:57 +05:30
Dhruva Sagar
cfbac6979d
Fixed #25
...
Minor refactoring & corrected variable names
2014-04-23 11:27:25 +05:30
Dhruva Sagar
79166b3d4e
Fixing #24
...
Exposed a public api for IsTableModeActive and using it instead.
2014-04-21 14:58:02 +05:30
Dhruva Sagar
8a54ef28ab
Removed CellTextObject() from spreadsheet.vim
2014-04-09 11:34:54 +05:30