Skip to content

mickaushy/spacemacs-table-manipulation-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

table-manipulation layer

Table of Contents

Description

This layer adds support for editing table.el more intuitive ways through table-manipulation-transient-state.

Features:

This layer adds key bindings to functions from table.el, which allows you to create / convert / export tables in buffer.

The followings are the list of commands been implemented as a transient-state. See Key bindings for how-to-use.

  • jump to next/previous cells
  • split cells vertically/horizontally
  • resize cells
  • merge cells
  • justify contents of cells

table-manipulation-transient-state enters a small table-editing buffer when executed. You may quit the transient-state but stay to the table-editing buffer. The table-editing buffer is good for editing data in each cells, while transient-state works well for editing structures of table.

./img/table-manipulation.png

Install

To install this private configuration layer, clone it under .../path/to/.emacs.d/private/. Or, follow the instruction written in this file.

To use this configuration layer, add it to your ~/.spacemacs. You will need to add table-manipulation to the existing dotspacemacs-configuration-layers list in this file.

Key bindings

Table.el

Key bindingDescription
SPC x T+table.el prefix
SPC x T .table-manipulation-transient-state
SPC x T ccreate table from structured region
SPC x T Cconvert org-mode table <-> table.el
SPC x T ddelete table skelton from table
SPC x T eexport table to other markup languages(html/latex/cals)
SPC x T iget information of table at point
SPC x T ncreate new table
SPC x T r / Rrecognize table at point / all table in buffer
SPC x T u / Uunrecognize table at point / all table in buffer

Table manipulation transient state

Key bindingDescription
njump to next cell
pjump to previous cell
kgo up
jgo down
hgo left
lgo right
\verthorizontally split cell
-vertically split cell
Hnarrow cell
Lwiden cell
Kshorten cell
Jheighten cell
amerge cell to the left
dmerge cell to the right
wmerge cell above
smerge cell below
cljustify cell to left
ccjustify cell to center
crjustify cell to right
ctjustify cell to top
cmjustify cell to middle
cbjustify cell to bottom
cnjustify cell to none
Cljustify column to left
Ccjustify column to center
Crjustify column to right
Ctjustify column to top
Cmjustify column to middle
Cbjustify column to bottom
Cnjustify column to none
Rljustify row to left
Rcjustify row to center
Rrjustify row to right
Rtjustify row to top
Rmjustify row to middle
Rbjustify row to bottom
Rnjustify row to none
RETquit transient-state only
qquit transient-state and the table-editing buffer
Qquit transient-state and abort the changes in the table-editing buffer
uundo
C-rredo

For Contributers and Power-Users

There is more detailed documentation in Layer Manager file. This may be useful for contributers as well as for power-users who wants to modify key bindings as you like.

About

spacemacs layer for table.el manipulation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published