mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
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.
This commit is contained in:
@@ -224,9 +224,10 @@ it using `:TableModeRealign` or using the default mapping
|
||||
results.
|
||||
|
||||
- You can directly add / manipulate formula expressions in the formula line.
|
||||
The formula line is a commented line right after the table, beginning with
|
||||
'tmf:' (table mode formula). eg) `# tmf: $3=$2*$1`. You can add multiple
|
||||
formulas on the line separated with a ';' eg) `# tmf: $3=$2*$1;$4=$3/3.14`
|
||||
The formula line is a commented line right after the table, or optionally
|
||||
separated from the table by a single empty line. It begins with 'tmf:'
|
||||
(table mode formula). eg) `# tmf: $3=$2*$1`. You can add multiple formulas on
|
||||
the line separated with a ';' eg) `# tmf: $3=$2*$1;$4=$3/3.14`
|
||||
|
||||
You can evaluate the formula line using `:TableEvalFormulaLine` or the
|
||||
mapping <kbd>\<Leader\>tfe</kbd> (defined by the option `g:table_mode_eval_expr_map`)
|
||||
|
||||
Reference in New Issue
Block a user