-
Notifications
You must be signed in to change notification settings - Fork 43
/
plugin.xml
161 lines (139 loc) · 9.14 KB
/
plugin.xml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<idea-plugin>
<id>net.seesharpsoft.intellij.plugins.csv</id>
<name>CSV Plugin</name>
<vendor url="https://github.com/SeeSharpSoft/intellij-csv-validator">
Martin Sommer
</vendor>
<description><![CDATA[
<p>The <em>Table Editor</em> is a newly introduced feature of CSV Plugin v2.*. Support its ongoing development by <a href="https://github.com/SeeSharpSoft/intellij-csv-validator/issues">reporting issues, providing suggestions, contributing ideas/features</a> or by just <a href="https://plugins.jetbrains.com/plugin/10037-csv-plugin">giving it a thumbs up.</a></p>
<br><hr/><br>
Lightweight CSV plugin that supports editing files in CSV/TSV format.<br><br>
<b>Features:</b><br>
<ul>
<li>CSV/TSV/PSV file detection</li>
<li>table editor</li>
<li>customizable text editor</li>
<li>syntax validation</li>
<li>syntax highlighting (configurable)</li>
<li>content formatting (configurable)</li>
<li>quick fix inspections</li>
<li>intentions (Alt+Enter), e.g. Quote/Unquote (all), Shift Column Left/Right</li>
<li>structure view (header-entry layout)</li>
<li>support for ',', ';', '|' or '↹' as value separator</li>
<li>highlight of active column values</li>
<li>customizable column coloring</li>
<li>tab (↹) separator highlighting</li>
</ul>
<b>TSV file support:</b> <em>TSV files are recognized as such but treated as a variant of CSV files, the same syntax highlighting and code style settings are applied.</em>
<br><br>
<b>Code formatting:</b> <em>Default code formatting is 'Tabularize'. Can be changed in Settings -> Editor -> Code Style -> CSV</em>
<br><br>
For more detailed information please have a look at the <a href="https://github.com/SeeSharpSoft/intellij-csv-validator/blob/master/README.md">README</a>.
<br><br><br>
<em>Thanks to @royqh1979, @egoisticalgoat, @sabi0, @ptahchiev, @ghost, @MarkJeronimus and others for supporting me and the project!</em>
<br><br><br>
<hr /><br>
<span style="color: #555555">
<b>IntelliJ IDEA Ultimate/PhpStorm/DataGrip/etc.:</b> The plugin is fully compatible with the <em>'Edit as Table...'</em> functionality.<br><br>
In IDE releases prior v2017.3, the shortcut in the editor context menu becomes invisible when using this plugin. However, the option can still be accessed via Toolbar -> Edit -> <em>'Edit as Table...'</em>.
</span>
]]></description>
<change-notes><![CDATA[
<pre style="font-family: sans-serif">
NEW: PSV file support
FIX: NullPointerException in StorageHelper class
</pre>
]]>
</change-notes>
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
<idea-version since-build="163.10154"/>
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->
<depends>com.intellij.modules.lang</depends>
<extensions defaultExtensionNs="com.intellij">
<fileTypeFactory implementation="net.seesharpsoft.intellij.plugins.csv.CsvFileTypeFactory"/>
<fileTypeFactory implementation="net.seesharpsoft.intellij.plugins.tsv.TsvFileTypeFactory"/>
<fileTypeFactory implementation="net.seesharpsoft.intellij.plugins.psv.PsvFileTypeFactory"/>
<lang.parserDefinition language="csv"
implementationClass="net.seesharpsoft.intellij.plugins.csv.CsvParserDefinition"/>
<lang.parserDefinition language="tsv"
implementationClass="net.seesharpsoft.intellij.plugins.tsv.TsvParserDefinition"/>
<lang.parserDefinition language="psv"
implementationClass="net.seesharpsoft.intellij.plugins.psv.PsvParserDefinition"/>
<lang.syntaxHighlighterFactory language="csv"
implementationClass="net.seesharpsoft.intellij.plugins.csv.highlighter.CsvSyntaxHighlighterFactory"/>
<editorHighlighterProvider filetype="CSV"
implementationClass="net.seesharpsoft.intellij.plugins.csv.highlighter.CsvEditorHighlighterProvider"/>
<highlightUsagesHandlerFactory
implementation="net.seesharpsoft.intellij.plugins.csv.highlighter.CsvHighlightUsagesHandlerFactory"/>
<colorSettingsPage implementation="net.seesharpsoft.intellij.plugins.csv.settings.CsvColorSettings"/>
<applicationService
serviceImplementation="net.seesharpsoft.intellij.plugins.csv.editor.CsvEditorSettingsExternalizable"/>
<projectService serviceImplementation="net.seesharpsoft.intellij.plugins.csv.components.CsvFileAttributes"/>
<editorOptionsProvider instance="net.seesharpsoft.intellij.plugins.csv.editor.CsvEditorSettingsProvider"/>
<fileEditorProvider implementation="net.seesharpsoft.intellij.plugins.csv.editor.CsvFileEditorProvider"/>
<fileEditorProvider implementation="net.seesharpsoft.intellij.plugins.csv.editor.table.CsvTableEditorProvider"/>
<annotator language="csv" implementationClass="net.seesharpsoft.intellij.plugins.csv.editor.CsvAnnotator"/>
<spellchecker.support language="csv"
implementationClass="net.seesharpsoft.intellij.plugins.csv.spellchecker.CsvSpellCheckingStrategy"/>
<lang.formatter language="csv"
implementationClass="net.seesharpsoft.intellij.plugins.csv.formatter.CsvFormattingModelBuilder"/>
<codeStyleSettingsProvider
implementation="net.seesharpsoft.intellij.plugins.csv.settings.CsvCodeStyleSettingsProvider"/>
<langCodeStyleSettingsProvider
implementation="net.seesharpsoft.intellij.plugins.csv.settings.CsvLanguageCodeStyleSettingsProvider"/>
<lang.psiStructureViewFactory language="csv"
implementationClass="net.seesharpsoft.intellij.plugins.csv.structureview.CsvStructureViewFactory"/>
<iconProvider implementation="net.seesharpsoft.intellij.plugins.csv.CsvIconProvider"/>
<localInspection
language="csv"
enabledByDefault="true"
groupName="CSV"
shortName="CsvValidation"
implementationClass="net.seesharpsoft.intellij.plugins.csv.inspection.CsvValidationInspection"/>
<lang.inspectionSuppressor language="csv"
implementationClass="net.seesharpsoft.intellij.plugins.csv.inspection.CsvInspectionSuppressor"/>
<intentionAction id="CsvShiftColumnLeft" order="FIRST">
<className>net.seesharpsoft.intellij.plugins.csv.intention.CsvShiftColumnLeftIntentionAction</className>
<category>CSV</category>
<descriptionDirectoryName>ShiftColumnLeft</descriptionDirectoryName>
</intentionAction>
<intentionAction id="CsvShiftColumnRight" order="AFTER CsvShiftColumnLeft">
<className>net.seesharpsoft.intellij.plugins.csv.intention.CsvShiftColumnRightIntentionAction</className>
<category>CSV</category>
<descriptionDirectoryName>ShiftColumnRight</descriptionDirectoryName>
</intentionAction>
<intentionAction id="CsvQuoteValue" order="AFTER CsvShiftColumnRight">
<className>net.seesharpsoft.intellij.plugins.csv.intention.CsvQuoteValueIntentionAction</className>
<category>CSV</category>
<descriptionDirectoryName>QuoteValue</descriptionDirectoryName>
</intentionAction>
<intentionAction id="CsvUnquoteValue" order="AFTER CsvQuoteValue">
<className>net.seesharpsoft.intellij.plugins.csv.intention.CsvUnquoteValueIntentionAction</className>
<category>CSV</category>
<descriptionDirectoryName>UnquoteValue</descriptionDirectoryName>
</intentionAction>
<intentionAction id="CsvQuoteAll" order="BEFORE CsvUnquoteAll">
<className>net.seesharpsoft.intellij.plugins.csv.intention.CsvQuoteAllIntentionAction</className>
<category>CSV</category>
<descriptionDirectoryName>QuoteAll</descriptionDirectoryName>
</intentionAction>
<intentionAction id="CsvUnquoteAll" order="LAST">
<className>net.seesharpsoft.intellij.plugins.csv.intention.CsvUnquoteAllIntentionAction</className>
<category>CSV</category>
<descriptionDirectoryName>UnquoteAll</descriptionDirectoryName>
</intentionAction>
</extensions>
<actions>
<group id="net.seesharpsoft.intellij.plugins.csv.actions.CsvChangeSeparatorActionGroup"
class="net.seesharpsoft.intellij.plugins.csv.actions.CsvChangeSeparatorActionGroup"
text="CSV Separator"
description="CSV Separator"
popup="true"
keep-content="true"
icon="/media/icons/csv-icon.png"
>
<add-to-group group-id="EditorPopupMenu" anchor="last"/>
</group>
</actions>
</idea-plugin>