Commit Graph

333 Commits

Author SHA1 Message Date
Dhruva Sagar
e117bcdc78 Add checkout vim-testify step to ci workflow 2023-03-01 07:58:34 +05:30
Dhruva Sagar
7ec0b83dbd Rewrite tests with vim-testify 2023-03-01 07:22:48 +05:30
Dhruva Sagar
9555a3e6e5 Merge pull request #216 from camfowler/master
Support optional newline after tables for formula
2022-10-20 15:39:02 +05:30
Cameron Fowler
33ea774b69 Support optional newline after tables for formula
Fixes #86

This allows the formula line to be evaluated, even if there is a single
empty line after the table. The "empty" line is allowed to contain
whitespace, but nothing else.

The formula will evaluate if triggered on the table, the empty line, or
the formula lines.
2022-07-21 14:10:35 +12:00
Dhruva Sagar
f47287df37 Merge pull request #215 from clarkshaeffer/master
README Installations reformat with Vim 8+
2022-05-28 10:20:08 +05:30
Clark
f65c2921c0 README Installations reformat with Vim 8+
Some reformatting and markdown / code chunk cleanup for the installation section, including installations instructions with Vim 8+ native package manager.
2022-05-27 15:45:19 -07:00
Dhruva Sagar
816072c0f5 Improved Formula Engine
* Does not try to forcefully cast column content to float
* Silences any errors during formula evaluation, you can look at
  `v:errmsg` to see if there was any error during the evaluation for
  debugging
v4.8.0
2022-04-05 22:18:51 +05:30
Dhruva Sagar
698ff3074c Improve handling of g:table_mode_ignore_align v4.7.6.1 2022-03-01 13:12:54 +05:30
Dhruva Sagar
494d95d2b3 Add config g:table_mode_ignore_align. Fix #145
* Disabled by default, if enabled directs table mode to ignore aligning
  based on alignment characters on the header and always left aligns
v4.7.6
2022-03-01 13:07:33 +05:30
Dhruva Sagar
9191af46b6 Updated README
Added information regarding overriding configurations for Markdown
/ ReST filetypes
2022-01-21 23:32:44 +05:30
Dhruva Sagar
c547471c0e Bump version to 4.7.5 v4.7.5 2021-12-02 00:30:20 +05:30
Dhruva Sagar
bdcffffe1f Attempt to Fix #173 2021-12-02 00:28:56 +05:30
Dhruva Sagar
01a395df00 Add github sponsors! 2021-10-27 00:02:13 +05:30
Dhruva Sagar
2e95bc6991 Merge pull request #208 from jdorel/feature-cellcolor
(feature) highlight cell color based on cell prefix
2021-10-08 01:25:54 +05:30
Jonas DOREL
0fe6bd87ac feat(highlight): add color prefixes 2021-10-07 18:37:17 +02:00
Jonas DOREL
59900a3fef fix(regex): some words start with no 2021-10-05 20:20:57 +02:00
Dhruva Sagar
eb42c62812 Merge pull request #207 from jdorel/feature-cellcolor
feat(highlight): color cell if contains yes,no,?
2021-10-05 22:43:52 +05:30
Jonas DOREL
e5dc853ee3 fix(highlight): disable highlight when word before 2021-10-05 17:29:47 +02:00
Jonas DOREL
c949912bfa feat(highlight): color cell if contains yes,no,? 2021-10-05 16:06:53 +02:00
Dhruva Sagar
02d28b9323 Move echo cell functionality to autoload. Fixes #206 2021-09-04 23:24:42 +05:30
Dhruva Sagar
35e9fbf64c Improve formula evaluation. Fix #201
A past change added support for html comments for tables, however, this
fails when the formula line happens to match the format of html comments
2021-05-30 03:53:41 +05:30
Dhruva Sagar
5150f1ec06 Merge pull request #200 from bmundt6/master
Handle separator map and map target separately
2021-05-05 23:04:42 +05:30
Dhruva Sagar
d9334c52cc Bump ruby version for travis 2021-05-05 22:27:01 +05:30
Dhruva Sagar
88b9c85af3 Update doc and fixed specs 2021-05-05 22:23:35 +05:30
Dhruva Sagar
26d2390548 Merge branch 'master' into bmundt6-master 2021-05-05 22:23:27 +05:30
Dhruva Sagar
7b17c692e9 Update ruby to 3.0.0 for testing
Bump version to version 4.7.4
2021-05-05 22:12:44 +05:30
Benjamin Mundt
8dcdfad1ee Define separator map in one place as a global; add separator map target for separators other than | 2021-04-29 14:15:48 -04:00
Dhruva Sagar
659ba4f39c Merge pull request #187 from rohieb/doc
doc: correctly document fillchar and header fillchar
2020-10-14 01:06:56 +05:30
Roland Hieber
04b14c345e doc: correctly document fillchar and header fillchar 2020-10-07 23:05:51 +02:00
Dhruva Sagar
3476c4e517 Improve Tableize. Fix #109.
This adds a new option `g:table_mode_tableize_auto_border` that allows
to enable automatic border creation when using Tableize to create tables
v4.7.3
2020-08-19 21:59:37 +05:30
Dhruva Sagar
88cb2e44b6 Bump version v4.7.2 2020-08-02 23:28:10 +05:30
Dhruva Sagar
336262d04f Fix #184
Improve formula evaluation, support border rows
2020-08-02 23:26:27 +05:30
Dhruva Sagar
5c489b57e8 Improve documentation. Fix #183
Update the vim help documentation to match the correct mappings
& behavior
2020-07-27 19:51:11 +05:30
Dhruva Sagar
436e7d6c21 Merge pull request #182 from CaninoDev/patch-2
Update README.md
2020-07-25 01:52:55 +05:30
Dhruva Sagar
1ea7960834 Merge pull request #181 from CaninoDev/patch-1
Add instructions for installation via vim-plug
2020-07-25 01:51:52 +05:30
IanGC
ff38f4451b Update README.md
1) `it's` is a contraction of `it is`. `its` is the possessive
2) Made consistent the formatting of `[count]` as used in various locations
3) Made consistent the various `g:` formattings
4) `immidiately` is correctly spelled `immediately`
5) Shortened some sentences for clarity

As an aside, this is an immensely useful plugin. Thanks so much for contributing your code.
2020-07-24 15:48:47 -04:00
IanGC
d5b9ce4d9e Add instructions for installation via vim-plug 2020-07-24 15:26:10 -04:00
Dhruva Sagar
6404009080 Improve documentation of g:table_mode_disable_tableize_mappings v4.7.1.1 2020-05-06 20:29:11 +05:30
Dhruva Sagar
c9b13e5d30 Add config to disable tableize mappings. Fix 176 v4.7.1 2020-05-06 20:20:53 +05:30
Dhruva Sagar
6a6f3565c3 Releasing version 4.7.0 v4.7.0 2020-04-19 22:02:25 +05:30
Dhruva Sagar
0b1dcf2e4c Merge pull request #175 from insanum/formulas
added some new formula functions
2020-04-19 21:55:36 +05:30
Eric Davis
2e5713ae6a fixed the Average function and test case when spanning rows/columns
fixed a Vim error(E907) in Min/Max when comparing v:null to a float
fixed CountE/CountNE/PercentE/PercentNE to support spanning rows/columns
added test cases for all the new formula functions
2020-04-19 00:20:55 -07:00
Eric Davis
f755285cf3 simplified the CountE function
cleanup for HTML comment tag checks
2020-04-18 21:47:22 -07:00
Eric Davis
5cdf3c2ac1 Added the following formula functions:
- Min: get the lowest value
  - Max: get the highest value
  - CountE: count the number of empty cells
  - CountNE: count the number of non-empty cells
  - PercentE: percent of empty cells
  - PercentNE: percent of non-empty cells
  - AverageNE: average over non-empty cells

Also added a subtle tweak that ignores an HTML comment tag ('<!--')
found between the table and the starting formula line. Being able to
wrap all the formula lines with an HTML comment prevents the formulas
from being rendered in Markdown/ReST output.
2020-04-18 18:46:21 -07:00
Dhruva Sagar
29e7cb41bb Merge pull request #174 from ibbem/feature/add-columns
Add a way to insert columns
2020-04-17 20:16:39 +05:30
ibbem
46e4493b30 Start insert mode after adding a column 2020-04-13 22:34:44 +02:00
ibbem
85a5e3d4e1 Fix the column modifications on escaped separators
If a g:table_mode_separator is escaped by a backslash, the table is
aligned ignoring this instance of the g:table_mode_separator, but the
column deletion and insertion functions did not consider this behaviour.

The g:table_mode_escaped_separator regex is simplified and optimized a
little bit. Also more care is taken to prevent unexpected behaviour if
special characters are used as g:table_mode_separator.
2020-04-04 15:27:23 +02:00
ibbem
67129cd1e0 Fix column modifications if Unicode is involved 2020-04-04 15:27:23 +02:00
ibbem
0b58003b68 Add support for inserting columns #130
Two mappings are introduced to enable usage of this feature like vim's
pasting with p and P.
2020-04-04 15:27:19 +02:00
ibbem
6912880697 Include the header when deleting columns 2020-03-31 18:21:45 +02:00