2016-01-18 06:26:06 +00:00
|
|
|
#+TITLE: CSV layer
|
2015-11-26 22:12:43 +00:00
|
|
|
|
2019-05-07 08:21:07 +00:00
|
|
|
#+TAGS: dsl|layer|markup|programming
|
2019-05-05 17:26:40 +00:00
|
|
|
|
2016-01-18 06:23:25 +00:00
|
|
|
[[file:img/csv.png]]
|
|
|
|
|
2019-05-07 20:05:06 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#description][Description]]
|
2017-10-04 08:13:01 +00:00
|
|
|
- [[#features][Features:]]
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#layer][Layer]]
|
2018-12-05 03:03:03 +00:00
|
|
|
- [[#key-bindings][Key bindings]]
|
2015-11-26 22:12:43 +00:00
|
|
|
|
|
|
|
* Description
|
|
|
|
This layer adds tools for better integration of CSV files in Spacemacs.
|
|
|
|
|
2017-10-04 08:13:01 +00:00
|
|
|
** Features:
|
|
|
|
- Detecting of fields for various separators
|
|
|
|
- Aligning of fields
|
|
|
|
- Traversal of fields
|
|
|
|
- Killing of fields
|
|
|
|
- Sorting of rows
|
|
|
|
- Transposing of rows/columns
|
|
|
|
- Intelligent yanking of fields
|
|
|
|
|
2015-11-26 22:12:43 +00:00
|
|
|
* Install
|
|
|
|
** Layer
|
|
|
|
To use this contribution add it to your =~/.spacemacs=
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(setq-default dotspacemacs-configuration-layers '(csv))
|
|
|
|
#+END_SRC
|
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
* Key bindings
|
2015-11-26 22:12:43 +00:00
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2015-11-26 22:12:43 +00:00
|
|
|
|-------------+----------------------------------|
|
|
|
|
| ~SPC m a~ | Align fields |
|
2016-01-18 06:26:06 +00:00
|
|
|
| ~SPC m d~ | Kill fields |
|
2018-06-25 09:56:59 +00:00
|
|
|
| ~SPC m h~ | Shows/unshows a header line. |
|
2016-01-18 06:26:06 +00:00
|
|
|
| ~SPC m i~ | Toggle delimiter invisibility |
|
2015-11-26 22:12:43 +00:00
|
|
|
| ~SPC m n~ | Move forward 1 field |
|
|
|
|
| ~SPC m p~ | Move backwards 1 field |
|
|
|
|
| ~SPC m r~ | Reverse region |
|
2016-01-18 06:26:06 +00:00
|
|
|
| ~SPC m s f~ | Sort fields |
|
|
|
|
| ~SPC m s n~ | Sort fields numerically |
|
|
|
|
| ~SPC m s o~ | Toggle sort order |
|
2015-11-26 22:12:43 +00:00
|
|
|
| ~SPC m t~ | Transpose |
|
|
|
|
| ~SPC m v f~ | Paste killed fields |
|
|
|
|
| ~SPC m v t~ | Paste killed fields as new table |
|
2016-01-18 06:26:06 +00:00
|
|
|
| ~SPC m u~ | Unalign fields |
|