File: control

package info (click to toggle)
csv-mode 1.27-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 156 kB
  • sloc: lisp: 1,592; makefile: 2
file content (80 lines) | stat: -rw-r--r-- 3,652 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Source: csv-mode
Section: lisp
Priority: optional
Maintainer: Debian Emacsen team <debian-emacsen@lists.debian.org>
Uploaders: Xiyue Deng <manphiz@gmail.com>
Build-Depends: debhelper-compat (= 13),
               dh-elpa
Rules-Requires-Root: no
Testsuite: autopkgtest-pkg-elpa
Standards-Version: 4.7.2
Vcs-Browser: https://salsa.debian.org/emacsen-team/csv-mode
Vcs-Git: https://salsa.debian.org/emacsen-team/csv-mode.git
Homepage: https://elpa.gnu.org/packages/csv-mode.html

Package: elpa-csv-mode
Architecture: all
Depends: ${elpa:Depends}, ${misc:Depends}
Recommends: emacs
Enhances: emacs
Description: Emacs major mode for editing comma/char separated values
 This package implements CSV mode, a major mode for editing records
 in a generalized CSV (character-separated values) format.  It binds
 files with prefix ".csv" to `csv-mode' (and ".tsv" to `tsv-mode') in
 `auto-mode-alist'.
 .
 In CSV mode, the following commands are available:
 .
  - C-c C-s (`csv-sort-fields') and C-c C-n (`csv-sort-numeric-fields')
    respectively sort lexicographically and numerically on a
    specified field or column.
 .
  - C-c C-r (`csv-reverse-region') reverses the order.  (These
    commands are based closely on, and use, code in `sort.el'.)
 .
  - C-c C-k (`csv-kill-fields') and C-c C-y (`csv-yank-fields') kill
    and yank fields or columns, although they do not use the normal
    kill ring.  C-c C-k can kill more than one field at once, but
    multiple killed fields can be yanked only as a fixed group
    equivalent to a single field.
 .
  - `csv-align-mode' keeps fields visually aligned, on-the-fly.
    It truncates fields to a maximum width that can be changed per-column
    with `csv-align-set-column-width'.
    Alternatively, C-c C-a (`csv-align-fields') aligns fields into columns
    and C-c C-u (`csv-unalign-fields') undoes such alignment;
    separators can be hidden within aligned records (controlled by
    `csv-invisibility-default' and `csv-toggle-invisibility').
 .
  - C-c C-t (`csv-transpose') interchanges rows and columns.  For
    details, see the documentation for the individual commands.
 .
  - `csv-set-separator' sets the CSV separator of the current buffer,
    while `csv-guess-set-separator' guesses and sets the separator
    based on the current buffer's contents.
    `csv-guess-set-separator' can be useful to add to the mode hook
    to have CSV mode guess and set the separator automatically when
    visiting a buffer:
 .
      (add-hook 'csv-mode-hook 'csv-guess-set-separator)
 .
 CSV mode can recognize fields separated by any of several single
 characters, specified by the value of the customizable user option
 `csv-separators'.  CSV data fields can be delimited by quote
 characters (and must if they contain separator characters).  This
 implementation supports quoted fields, where the quote characters
 allowed are specified by the value of the customizable user option
 `csv-field-quotes'.  By default, the both commas and tabs are considered
 as separators and the only field quote is a double quote.
 These user options can be changed ONLY by customizing them, e.g. via M-x
 customize-variable.
 .
 CSV mode commands ignore blank lines and comment lines beginning
 with the value of the buffer local variable `csv-comment-start',
 which by default is #.  The user interface is similar to that of
 the standard commands `sort-fields' and `sort-numeric-fields', but
 see the major mode documentation below.
 .
 The global minor mode `csv-field-index-mode' provides display of
 the current field index in the mode line, cf. `line-number-mode'
 and `column-number-mode'.  It is on by default.