Skip to content

refine markdown symbols - #138

Open
liuderchi wants to merge 1 commit into
xndcn:masterfrom
liuderchi:remove_fcn_icon_for_markdown
Open

refine markdown symbols#138
liuderchi wants to merge 1 commit into
xndcn:masterfrom
liuderchi:remove_fcn_icon_for_markdown

Conversation

@liuderchi

Copy link
Copy Markdown
  • heading: using symbol of macro

  • list item: using symbol of enum

  • demo
    screenshot from 2016-11-21 10 47 47

- heading: macro
- list item: enum
- TODO: list item and heading has hierarchy
nicolashainaux added a commit to nicolashainaux/symbols-tree-nav that referenced this pull request Apr 3, 2017
@nicolashainaux

Copy link
Copy Markdown

Looks much better this way. Included in symbols-tree-nav.

@liuderchi

liuderchi commented Apr 3, 2017

Copy link
Copy Markdown
Author

Thank for noticing this PR.
Really hope this package would have more markdown syntax support.

If I had time I'd like to study how to parse list item and include them inside heading symbol
(like building TOC but for content inside each headings)

@nicolashainaux What are the features you like to add up for markdown?

@nicolashainaux

Copy link
Copy Markdown

@nicolashainaux What are the features you like to add up for markdown?

Well, no precise ideas, so far.

But including list item for inclusion inside heading symbols sounds really interesting. Only problem, I am pretty sure such a parsing feature relies only on the external parser.

Nevertheless, as the Linux binary parser provided with symbols-tree-view, I added an option in symbols-tree-nav to change the parser that is used. If you would like to try another parser, you can use this option for development.

I could also add another option or tweak the existing one in order to let the user define different parsers, depending on the file's scope (python/C/coffee-script/markdown etc.). If such an option would help you, I'd certainly add it.

@nicolashainaux

Copy link
Copy Markdown

Of course, if reworking the regex in the ctags file is enough, it would be good.

Something else: it could be nice too to add icons dedicated to markdown tags.

Anyway, don't hesitate to create a PR in symbols-tree-nav.

@liuderchi

Copy link
Copy Markdown
Author

... If you would like to try another parser, you can use this option for development.

Thanks for pointing out s.t.nav supports custom syntax parser. I will have a try.

... Anyway, don't hesitate to create a PR in symbols-tree-nav.

Now I don't understand s.t.view architecture and I need more investigation to create PR.

IMO we can move to symbol-tree-nav for more discussion (maybe in a new issue page).

@nicolashainaux

Copy link
Copy Markdown

@liuderchi just created a new issue in symbols-tree-nav here, to continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants