Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mechatroner committed Aug 11, 2019
1 parent 6d3c575 commit a385857
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Main features:
There are 4 ways to enable csv columns highlighting:
1. CSV autodetection based on file content and/or extension
2. Manual CSV delimiter selection with _:RainbowDelim_ command with cursor over the delimiter
3. Manual CSV delimiter selection with _:RainbowMultiDelim_ for multi-character delimiters
4. Execute `:set ft=csv` or `:set ft=tsv` for CSV/TSV dialects. For other separators use _:RainbowDelim_
3. Manual CSV delimiter selection with _:RainbowMultiDelim_ for multi-character delimiters selecting them in "VISUAL" mode
4. Explicitly activate one of the built-in filetypes, e.g. `:set ft=csv`

To run an RBQL query either press _F5_ or enter the query in vim command line e.g. _:Select a1, a2_
As soon as you finish entering "select" (or update) and press whitespace, the plugin will show column names in the status line.
As soon as you finish entering ":select" (or ":update") and press whitespace, the plugin will show column names in the status line.

The core functionality of the plugin is written in pure vimscript, no additional libraries required.

Expand All @@ -43,7 +43,7 @@ In this demo python expressions were used, but JavaScript is also available.
### Built-in and autogenerated filetypes
Rainbow CSV has 5 built-in CSV filetypes and infinite number of autogenerated filetypes.
Each Rainbow CSV filetype is mapped to a separator and "policy" which describes additional properties e.g. if separator can be escaped inside double quoted field.
If user selects a separator that doesn't map to one of the built-in filetypes, Rainbow CSV will dynamically generate a filetype syntax file and put it into the "syntax" folder.
If user uses _:RainbowDelim_ or _:RainbowMultiDelim_ to select a separator that doesn't map to one of the built-in filetypes, Rainbow CSV will dynamically generate the filetype syntax file and put it into the "syntax" folder.
List of built-in filetypes:

|Filetype | Separator | Extension | Properties |
Expand Down

0 comments on commit a385857

Please sign in to comment.