atsushieno / vscode-language-review

Re:VIEW language Support for Visual Studio Code. / issue/PRは日本語でも対応できます
Other
43 stars 8 forks source link

Outline label for columns #31

Closed yfakariya closed 4 years ago

yfakariya commented 4 years ago

This PR is supplement of #28, and uses new function which was added in #30.

I knew that I could retrieve labels of columns after #28, so I implemented label support for columns in addition to headlines(chapters).

yfakariya commented 4 years ago

I've added a fix or this PR... sorry.

atsushieno commented 4 years ago

Thanks! But I have a Q on the changes: So, after this PR are //[column]s with {label} actual column title supposed to be listed as actual column title on the OUTLINE list, skipping {label} part? When I add label to some //column line, the item simply disappears from the list. It looks like the current behavior (not like a regression in the PR), but then I wonder what I could try to verify the changes.

yfakariya commented 4 years ago

After this PR, ==[column]{LABEL} CAPTION should be shown as {LABEL} CAPTION. I've just found that I carelessly delete [column] prefix from the output, so I guess you lost column outline because it looked as headline (chapter). It is not an intentional behavior, just a bug of this PR, so I will fix soon.

Summary:

atsushieno commented 4 years ago

Is this in good state now?

yfakariya commented 4 years ago

Yes, I fixed as I understood.

atsushieno commented 4 years ago

Okay, so after the changes this is the expected behavior: image

I'm not sure if having {label} on the OUTLINE view is better, but probably chances are that more than one column can look identical without labels, maybe often, and maybe such document structure is not necessarily ugly, or it's very helpful to have bare labels on the OUTLINE view in spite of looking ugly?

Let me apply the PR anyways. Thanks!