This layer adds support for editing table.el
more intuitive ways through
table-manipulation-transient-state
.
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.
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 binding | Description |
---|---|
SPC x T | +table.el prefix |
SPC x T . | table-manipulation-transient-state |
SPC x T c | create table from structured region |
SPC x T C | convert org-mode table <-> table.el |
SPC x T d | delete table skelton from table |
SPC x T e | export table to other markup languages(html/latex/cals) |
SPC x T i | get information of table at point |
SPC x T n | create new table |
SPC x T r / R | recognize table at point / all table in buffer |
SPC x T u / U | unrecognize table at point / all table in buffer |
Key binding | Description |
---|---|
n | jump to next cell |
p | jump to previous cell |
k | go up |
j | go down |
h | go left |
l | go right |
\vert | horizontally split cell |
- | vertically split cell |
H | narrow cell |
L | widen cell |
K | shorten cell |
J | heighten cell |
a | merge cell to the left |
d | merge cell to the right |
w | merge cell above |
s | merge cell below |
cl | justify cell to left |
cc | justify cell to center |
cr | justify cell to right |
ct | justify cell to top |
cm | justify cell to middle |
cb | justify cell to bottom |
cn | justify cell to none |
Cl | justify column to left |
Cc | justify column to center |
Cr | justify column to right |
Ct | justify column to top |
Cm | justify column to middle |
Cb | justify column to bottom |
Cn | justify column to none |
Rl | justify row to left |
Rc | justify row to center |
Rr | justify row to right |
Rt | justify row to top |
Rm | justify row to middle |
Rb | justify row to bottom |
Rn | justify row to none |
RET | quit transient-state only |
q | quit transient-state and the table-editing buffer |
Q | quit transient-state and abort the changes in the table-editing buffer |
u | undo |
C-r | redo |
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.