Coder Social home page Coder Social logo

Markdown: How to hide scopes? about tagbar HOT 4 OPEN

wenchao-hao avatar wenchao-hao commented on June 11, 2024
Markdown: How to hide scopes?

from tagbar.

Comments (4)

raven42 avatar raven42 commented on June 11, 2024

This is controlled via the g:tagbar_show_data_type option. Please see the documentation for more information.

g:tagbar_show_data_type~

from tagbar.

wenchao-hao avatar wenchao-hao commented on June 11, 2024

This is controlled via the g:tagbar_show_data_type option. Please see the documentation for more information.

g:tagbar_show_data_type~

Thanks for your reply, but it seems not work.

I did not modify g:tagbar_show_data_type, the behavior would not change if I set g:tagbar_show_data_type to 0 explicitly.

What's more, if I set g:tagbar_show_data_type to 1 explicitly, it looks like following:

image

from tagbar.

raven42 avatar raven42 commented on June 11, 2024

Hmm. Ok I looked a little closer, and my memory was off. The behavior you are seeing is correct from the current implementation. The show_data_type was intended more for tags that have a data type from other languages like int var = 0; or similar where the datatype is derived from the word right before the tag. Which in the case of markdown does not appear to be very helpful.

That said, with the show_data_type set to 0 (default), then tagbar will populate this with the tag kind if it is a scoped kind (which section types in markdown are). From the current code, there is no way to disable this. Though an option probably could be added.

If we do get a chance to address this, are you wanting it to just be an empty string?

from tagbar.

wenchao-hao avatar wenchao-hao commented on June 11, 2024

Hmm. Ok I looked a little closer, and my memory was off. The behavior you are seeing is correct from the current implementation. The show_data_type was intended more for tags that have a data type from other languages like int var = 0; or similar where the datatype is derived from the word right before the tag. Which in the case of markdown does not appear to be very helpful.

That said, with the show_data_type set to 0 (default), then tagbar will populate this with the tag kind if it is a scoped kind (which section types in markdown are). From the current code, there is no way to disable this. Though an option probably could be added.

If we do get a chance to address this, are you wanting it to just be an empty string?

Thanks, if possible, I want to make the display more clear, it's best to hide all contents after ":", including ":"

from tagbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.