diff --git a/plugin/table-mode.vim b/plugin/table-mode.vim index 178599d..5023bc6 100644 --- a/plugin/table-mode.vim +++ b/plugin/table-mode.vim @@ -46,7 +46,7 @@ call s:SetGlobalOptDefault('table_mode_corner_corner', '|') function! s:TableEchoCell() "{{{1 if tablemode#table#IsATableRow('.') - echomsg '$' . tablemode#table#RowNr('.') . ',' . tablemode#table#ColumnNr('.') + echomsg '$' . tablemode#spreadsheet#RowNr('.') . ',' . tablemode#spreadsheet#ColumnNr('.') endif endfunction @@ -68,10 +68,10 @@ else endif " }}}2 -command! -nargs=? -range Tableize ,call tablemode#TableizeRange() -command! TableAddFormula call tablemode#table#AddFormula() -command! TableModeRealign call tablemode#table#TableRealign('.') -command! TableEvalFormulaLine call tablemode#table#EvaluateFormulaLine() +command! -nargs=? -range Tableize ,call tablemode#table#TableizeRange() +command! TableAddFormula call tablemode#spreadsheet#AddFormula() +command! TableModeRealign call tablemode#spreadsheet#TableRealign('.') +command! TableEvalFormulaLine call tablemode#spreadsheet#EvaluateFormulaLine() nnoremap (table-mode-tableize) :Tableize xnoremap (table-mode-tableize) :Tableize @@ -84,14 +84,14 @@ nnoremap (table-mode-motion-down) :call tablemode#table#Tabl nnoremap (table-mode-motion-left) :call tablemode#table#TableMotion('h') nnoremap (table-mode-motion-right) :call tablemode#table#TableMotion('l') -onoremap (table-mode-cell-text-object-a) :call tablemode#table#CellTextObject(0) -onoremap (table-mode-cell-text-object-i) :call tablemode#table#CellTextObject(1) +onoremap (table-mode-cell-text-object-a) :call tablemode#spreadsheet#CellTextObject(0) +onoremap (table-mode-cell-text-object-i) :call tablemode#spreadsheet#CellTextObject(1) -nnoremap (table-mode-delete-row) :call tablemode#table#DeleteRow() -nnoremap (table-mode-delete-column) :call tablemode#table#DeleteColumn() +nnoremap (table-mode-delete-row) :call tablemode#spreadsheet#DeleteRow() +nnoremap (table-mode-delete-column) :call tablemode#spreadsheet#DeleteColumn() -nnoremap (table-mode-add-formula) :call tablemode#table#AddFormula() -nnoremap (table-mode-eval-formula) :call tablemode#table#EvaluateFormulaLine() +nnoremap (table-mode-add-formula) :call tablemode#spreadsheet#AddFormula() +nnoremap (table-mode-eval-formula) :call tablemode#spreadsheet#EvaluateFormulaLine() nnoremap (table-mode-echo-cell) :call TableEchoCell()