Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code folding on tables #790

Open
noraj opened this issue Sep 18, 2023 · 0 comments
Open

Add code folding on tables #790

noraj opened this issue Sep 18, 2023 · 0 comments
Labels
💬 discussion Disccussion on new features, projects, etc... ✨ enhancement

Comments

@noraj
Copy link

noraj commented Sep 18, 2023

It would be nice to add code folding for tables. This way if you have something like:

// Without a header row

[cols="1,1"]
|===
|Cell in column 1, row 1
|Cell in column 2, row 1

|Cell in column 1, row 2
|Cell in column 2, row 2

|Cell in column 1, row 3
|Cell in column 2, row 3
|===

// With a header row

[cols="1,1"]
|===
|Cell in column 1, header row |Cell in column 2, header row

|Cell in column 1, row 2
|Cell in column 2, row 2

|Cell in column 1, row 3
|Cell in column 2, row 3

|Cell in column 1, row 4
|Cell in column 2, row 4
|===

You could fold it to:

// Without a header row

[cols="1,1"]
|===…

// With a header row (keeping headings)

[cols="1,1"]
|===
|Cell in column 1, header row |Cell in column 2, header row…

// With a header row (alternative without headings)

[cols="1,1"]
|===…

Note: dots are added by VSCode on folding

Documentation: https://docs.asciidoctor.org/asciidoc/latest/tables/build-a-basic-table/

Comparison

In Markdown…

a|b
---|---
c|d

…folds to

a|b…

Keeping only the headings

@noraj noraj added ✨ enhancement 💬 discussion Disccussion on new features, projects, etc... labels Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 discussion Disccussion on new features, projects, etc... ✨ enhancement
Projects
None yet
Development

No branches or pull requests

1 participant