Commit Graph

214 Commits

Author SHA1 Message Date
Dhruva Sagar
7c56d298bb Updated test for formula validation 2016-05-08 15:56:48 +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
01289c0752 Merge branch 'master' of github.com:dhruvasagar/vim-table-mode 2015-12-03 22:53:41 +05:30
Dhruva Sagar
2ab64777a5 Merge pull request #75 from hein09/patch-1
Fixed sort in doc
2015-12-03 21:11:39 +05:30
hein09
26b21e3454 Fixed sort in doc
Fixed sort-parts in documentation breaking the help-tag-indexing of vim
2015-12-03 15:48:18 +01:00
Dhruva Sagar
fdfa4b12c2 Add tablemode#table#IsTable 2015-11-23 14:53:05 +05:30
Dhruva Sagar
e7373c9083 Merge pull request #71 from arecarn/fix-sort
Fix sort command, and add documentation for the command and mapping.
2015-11-17 06:43:19 +01:00
Ryan Carney
6872024827 add docs for table sorting command and mapping
----
Related Issues: #38
2015-11-15 14:46:47 -08:00
Ryan Carney
50b3b01a33 fix mapping to table sort
Symptom:
when trying to sort a column using <leader>ts the following error would
be displayed:

     E119: Not enough arguments for function: tablemode#spreadsheet#Sort

Problem:
Function call tablemode#spreadsheet#Sort() was missing a arguemnts for
it's named parameter bang.

Solution:
Add a blank value of '' as the argument for the bang parameter

----
Related Issues: #38
2015-11-15 14:45:05 -08:00
Dhruva Sagar
5395c9f52b Merge pull request #65 from axil/master
Updated readme
2015-06-05 06:22:58 -07:00
Lev Maximov
13d836dbfe included header_fillchar into the rst example 2015-06-05 11:28:55 +06:00
Lev Maximov
b1e4041e43 changed the video to a more recent one 2015-06-05 02:15:11 +06:00
Lev Maximov
bba1bf8d6e restructured the headers 2015-06-05 02:15:11 +06:00
Lev Maximov
4baf9cfd2e more detailed how-to-start instructions, with pictures 2015-06-05 02:14:50 +06:00
Dhruva Sagar
8d2e013756 Updated youtube video
* Updated the youtube video link to the more recent video.
2015-06-04 10:29:49 -07:00
Dhruva Sagar
cc723fe8cd Merge pull request #61 from rafaeln/patch-1
fix table in table-mode.txt
2015-04-21 13:48:06 -07:00
rafaeln
2c06812c39 fix table in table-mode.txt
immidiately --> immediately
2015-04-21 16:13:55 -03:00
Dhruva Sagar
2471a3b1da Updated docs v4.6.4 2015-04-14 15:57:49 -07:00
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
c0a6d43f21 Updated ruby version in travis 2015-03-17 15:43:02 -07:00
Dhruva Sagar
af182b1387 Updated README
* Updated documentation with regards to manual installation
2015-03-17 13:53:24 -07:00
Dhruva Sagar
757d1f95eb Updated ruby version 2015-03-17 13:50:26 -07:00
Dhruva Sagar
d1908c04f3 Updated READMEs v4.6.3 2015-02-27 08:53:26 +05:30
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
3096a26db4 Merge pull request #51 from jensbodal/patch-1
File names incorrect for files to copy
2015-01-11 17:08:48 +05:30
jensbodal
acde7918e8 File names incorrect for files to copy
If you're interested I made a script to install this plugin and install pathogen.  I've never installed a plugin before and for me the instructions were not very easy to follow in order to get this working. It looks like exactly what I was looking for though, so thank you very much for putting this together.

# Script for UNIX only -- not tested on OSX or Windows

# Make necessary directories
mkdir -p ~/.vim/autoload ~/.vim/bundle ~/.vim/doc ~/.vim/plugin

# Install pathogen (https://github.com/tpope/vim-pathogen)
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

# Install vim-table-mode plugin (https://github.com/dhruvasagar/vim-table-mode)
git clone https://github.com/dhruvasagar/vim-table-mode.git ~/.vim/bundle/vim-table-mode

# Place vim-table-mode files where they need to be
cp ~/.vim/bundle/vim-table-mode/autoload/tablemode.vim ~/.vim/autoload
cp ~/.vim/bundle/vim-table-mode/plugin/table-mode.vim ~/.vim/plugin
cp ~/.vim/bundle/vim-table-mode/doc/table-mode.txt ~/.vim/doc

# Add options to ~/.vimrc to run pathogen when vim starts
echo >> ~/.vimrc
echo \"Start pathogen manager on startup >> ~/.vimrc
echo execute pathogen\#infect\(\) >> ~/.vimrc
echo >> ~/.vimrc
echo \"Enable indent on for plugin filetypes >> ~/.vimrc
echo filetype plugin indent on >> ~/.vimrc

echo Test out vim-table-mode using :TableModeToggle or :TableModeEnable or :TableModeDisable
2015-01-10 22:05:36 -08:00
Dhruva Sagar
1e94ae39cc Merge pull request #46 from grodzik/master
Use table_mode_map_prefix for the tableize mappings
2014-12-08 18:22:05 +05:30
Paweł Tomak
84e382123d Use table_mode_map_prefix for the tableize mappings 2014-12-08 13:44:03 +01:00
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
5103dae89d Updated CHANGELOG 2014-11-18 08:20:28 +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
8810818e32 Updated docs & bumped version 2014-11-16 13:42:27 +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
Dhruva Sagar
c5258f7ae8 Merge pull request #37 from andrwj/master
show table-mode status
2014-08-24 07:44:46 +05:30
A.J
a3e3269658 show table-mode status 2014-08-24 07:42:51 +09:00
Dhruva Sagar
8e4a4e7dc4 Bumped the version v4.6.0 2014-08-15 09:43:07 +05:30
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
Dhruva Sagar
82863fa8eb Merge pull request #35 from p0deje/master
Added option to disable all mappings. Fixes #34
2014-07-25 07:27:53 +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
4c91a4efa2 Updated tests v4.5.0 2014-05-30 12:20:46 +05:30