micro icon indicating copy to clipboard operation
micro copied to clipboard

【Feature request】- outline of code (at least common used types like markdown, c/c++, python, etc)

Open Giessen opened this issue 1 year ago • 2 comments

[Feature request description] A sideabar showing the headlines/structure of current code/text file.

[Why] When browsing through a long text file (e.g., markdown type), it's painful to locate and navigate. An outline of contents at sidebar would greatly improve the efficiency.

[Reference] https://github.com/hedyhli/outline.nvim?tab=readme-ov-file

[Appearing like this] image

Thank you very much for the great work.

Giessen avatar Aug 20 '24 02:08 Giessen

A proper outline would require sending requests and parsing responses from LSP, maybe with Document Symbols Request I personally don't use LSP but we do have some LSP plugins however I don't think they have something similar to what you want yet.

That being said, I have a "minimap" feature in my plugin that summarizes the file based on the indentations, which works fine for coding, not so much on files like markdowns :sweat_smile:

Neko-Box-Coder avatar Aug 24 '24 21:08 Neko-Box-Coder

Glad to know that. Thanks a lot.

Giessen avatar Sep 08 '24 03:09 Giessen