This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/csv/README.org

52 lines
1.5 KiB
Org Mode
Raw Normal View History

2016-01-18 06:26:06 +00:00
#+TITLE: CSV layer
2015-11-26 22:12:43 +00:00
#+TAGS: dsl|layer|markup|programming
2019-05-05 17:26:40 +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]]
- [[#features][Features:]]
2017-05-22 14:16:12 +00:00
- [[#install][Install]]
- [[#layer][Layer]]
- [[#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.
** 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
* Key bindings
2015-11-26 22:12:43 +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 |
| ~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 |