Skip to content

Commit 890dfcc

Browse files
authored
Merge pull request #59 from SeeSharpSoft/fb_csv_editor_settings
[FEATURE] CSV/TSV editor settings editor and features implemented
2 parents 8c3914c + f2367b3 commit 890dfcc

File tree

17 files changed

+854
-105
lines changed

17 files changed

+854
-105
lines changed

CHANGELOG

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
1.9.0
2+
Oct 01, 2018
3+
4+
NEW: CSV/TSV editor settings (File > Settings > General > CSV/TSV Editor)
5+
NEW: TAB (separator) highlighting
6+
NEW: Enable/disable balloon info
7+
NEW: Soft wrap settings specific for CSV/TSV
8+
9+
1.8.2
10+
Sep 20, 2018
11+
12+
NEW: Customizable column coloring (File > Settings > Editor > Color Scheme > CSV)
13+
14+
1.8.1
15+
Aug 16, 2018
16+
17+
NEW: East Asian full-width character support for 'Tabularize' (optional) - disabled by default due to lower performance
18+
19+
1.8.0
20+
Jul 05, 2018
21+
22+
NEW: Custom 'Wrapping' settings
23+
NEW: Column highlighter takes whitespaces into account
24+
CHANGE: Column highlighting only happens on selection
25+
FIX: CSV column info tooltip trumps spellchecker tooltip (but keeps the visualization of a typo)
26+
FIX: Show tooltip even when caret is at the last position withing the CSV file
27+
FIX: Support for suppressing inspections not relevant for CSV (e.g. 'Problematic Whitespace')
28+
FIX: Structure View: proper handling of elements (instead of endless loading)
29+
+ several code & performance improvements
30+
31+
1.7.0
32+
Jun 19, 2018
33+
34+
NEW: Annotated values: tooltip shows the value itself, the header and the column index
35+
NEW: Active column (caret position) is colored differently
36+
FIX: 'Add separator' inspection is adding correct separator (e.g. tabs in TSV files)
37+
+ several code & performance improvements
38+
39+
1.6.1
40+
May 11, 2018
41+
42+
New icons
43+
44+
1.6.0
45+
Apr 02, 2018
46+
47+
NEW: TSV file support
48+
TSV files a recognized as such but treated as a variant of CSV files, the same syntax highlighting and code style settings are applied.
49+
NEW: tab (↹) and pipe (|) as separators added
50+
NEW: spellchecker enabled
51+
52+
Note: For CSV Plugin v1.6.0+ it was necessary to increase the minimum IDE version from 2016.1.1 to 2016.3.2 due to a required fix in the formatting code. Previous versions of the plugin can still be downloaded directly from Jetbrains Plugin Repository.
53+
54+
1.5.1
55+
Mar 21, 2018
56+
57+
NEW: intentions to shift a whole column left/right
58+
(includes bugfix for breaking intention functionality on previous IDE versions)
59+
60+
1.5.0
61+
Feb 10, 2018
62+
63+
NEW: intentions to shift a whole column left/right
64+
65+
1.4.1
66+
Jan 19, 2018
67+
68+
Handle tabs as 1-length character - fixes 'Tabularize' for csv files with tabs
69+
Fix default settings initialization
70+
71+
1.4
72+
Jan 11, 2018
73+
74+
Handle tabs as 1-length character - fixes 'Tabularize' for csv files with tabs
75+
76+
1.3
77+
Oct 26, 2017
78+
79+
Fixes issue java.lang.NoClassDefFoundError: com/intellij/psi/PsiElementFactory$SERVICE
80+
CodeInspection description added
81+
82+
1.2
83+
Sep 30, 2017
84+
85+
New: Intentions/Inspections added
86+
Improved formatter performance
87+
Several fixes
88+
89+
1.0
90+
Sep 24, 2017
91+
92+
New: Value separator - comma and semicolon supported
93+
94+
0.9
95+
Sep 20, 2017
96+
97+
Structure View: fix empty value handling ('' introduced) Settings: all settings now visible in IDE versions prior 2017.1
98+
99+
0.7
100+
Sep 19, 2017
101+
102+
New: Trimming/Spacing inside or outside quotes
103+
Fixed: White spaces will not added to empty line
104+
Default settings changed
105+
106+
0.5
107+
Sep 16, 2017
108+
109+
New: Structure view
110+
111+
0.3
112+
Sep 16, 2017
113+
114+
Setting added: White Space Before/After Comma Full support for tabularize with leading white spaces
115+
116+
0.1
117+
Sep 16, 2017
118+
119+
Initial release

README.md

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ This enables default editor features like syntax validation, highlighting and in
1414
## Features
1515

1616
- CSV/TSV file detection
17+
- customizable text editor
1718
- syntax validation
18-
- syntax highlighting (configurable)
19-
- content formatting (configurable)
19+
- syntax highlighting (customizable)
20+
- content formatting (customizable)
2021
- quick fix inspections
2122
- intentions (Alt+Enter), e.g. Quote/Unquote (all), Shift Column Left/Right
2223
- structure view (header-entry layout)
2324
- support for ',', ';', '|' and '↹' as value separator
2425
- highlight of active column values
2526
- customizable column coloring
27+
- tab (↹) separator highlighting
2628

2729
### Syntax parser & validation
2830

@@ -55,7 +57,39 @@ Additionally the file type TSV was introduced as a kind of CSV language.
5557
For TSV files the same formatter and code style settings are applied as for CSV itself, but the separator is considered to be a tab.
5658
All functionality that is available for plain CSV files (inspections, intentions, structure view, etc.) can be used for TSV as well.
5759

58-
### Highlighting
60+
### \*NEW\* Editor Settings
61+
62+
- _File > Settings > Editor > General > CSV/TSV Editor_
63+
64+
The plugin introduces a new default editor, which is plain text editor supporting custom settings. Those settings can be adjusted in the corresponding CSV/TSV editor settings menu.
65+
66+
![Color scheme settings](./docs/editorsettings.png)
67+
68+
#### Highlighting
69+
70+
##### Highlight caret row
71+
72+
The highlighting of the current caret row might interfere with custom background color settings and can be enabled/disabled for CSV/TSV files here.
73+
74+
##### Enable column highlighting
75+
76+
An easy way to switch the newly introduced *Column Highlighting* on or off.
77+
78+
##### Highlight tab separator
79+
80+
Enable/disable highlighting (and choose the highlight color) of tab characters (↹) in their role as value separator (TSV). Tabs as part of a value are therefore not highlighted on purpose.
81+
82+
#### Others
83+
84+
##### Show info balloon
85+
86+
Enable/disable the info balloon that appears at the caret position in the text editor.
87+
88+
##### Use soft wraps
89+
90+
Set whether soft wrapping should be activated for CSV/TSV. It still can be changed file specific with right-click on the editors left outer margin.
91+
92+
### Color Scheme
5993

6094
The different symbols of a CSV document, namely the separator (comma), the quotes, the escaped literals and the text elements itself, are highlighted by a coloring scheme that can be customized:
6195

docs/editorsettings.png

222 KB
Loading

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://www.jetbrains.com/intellij-repository/snapshots
44

55
name='CSV Plugin'
6-
pluginVersion=1.8.2
6+
pluginVersion=1.9.0
77
javaVersion=1.8
88
javaTargetVersion=1.8
99
downloadIntellijSources=false

src/main/java/net/seesharpsoft/intellij/plugins/csv/annotation/CsvAnnotator.java

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)