asciidoctor / asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)
https://intellij-asciidoc-plugin.ahus1.de/
Apache License 2.0
356 stars 145 forks source link

Improve table handling in AsciiDoc Editor #1256

Open ahus1 opened 1 year ago

ahus1 commented 1 year ago

Why the new feature should be added

When handling tables, it should be possible to add columns and rows to a table.

The Markdown plugin for IntelliJ already supports this.

Current alternatives

To handle large tables, it might be beneficial to use a separate file, for example with comma separated values. See https://docs.asciidoctor.org/asciidoc/latest/tables/data-format/ for details.

Example:

[format=csv]
|===
include::test.csv[]
|===
a,b,c

1,2,3
4,5,6

This is rendered as follows:

image

Such a CSV file can be edited in IntelliJ with the already included editor of CSVs. Click on the "Data" tab at the bottom. In this editor, all the desired features to work with the table are available.

image

How the new feature should work

Using a context menu or a UI element, the user should be able to:

ahus1 commented 1 year ago

There are now docs describing how the AsciiDoc IntelliJ plugin can be used to handle tables: https://intellij-asciidoc-plugin.ahus1.de/docs/users-guide/technical-writing/using-tables-in-a-project.html