Git Product home page Git Product logo

Comments (10)

liuchengxu avatar liuchengxu commented on August 31, 2024 1

@idanarye believe I have made some progress on this issue, at least for Python. It would be appreciated to test #58 if you have some time.

My approach is different to the one tagbar used, and I don't know whether it applies everywhere, since the semantics of hierarchy structures is not well defined actually, I can only implement this feature in a heuristic method.

let g:vista_ctags_renderer = 'default' | Vista ctags:

屏幕快照 2019-04-17 上午7 43 45

屏幕快照 2019-04-17 上午7 49 15

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

This feature is blocked by #4 and will be resolved when it is fixed.

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

@idanarye You can the branch https://github.com/liuchengxu/vista.vim/tree/provide-default-renderer for now. I provide an option to render by the line number of tags, but the indentation feature is still missing and will be sorted out later.

let g:vista_ctags_renderer = 'default' | Vista:

屏幕快照 2019-03-31 下午5 13 59

from vista.vim.

idanarye avatar idanarye commented on August 31, 2024

Still can't handle nested code that well:

image

The code, if you want to test it, is:

class Foo:
    class Bar:
        BAR = 12

        class Baz:
            pass

        class Qux:
            pass

    def qux(self):
        def thing1():
            pass

        if True:
            def thing2():
                pass
        else:
            def thing3():
                pass

        def thing4():
            pass

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

Thanks for the test code, will look into it.

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

@idanarye I have improved the algorithm, please try again, the overall nested structure looks right now. There are still some other glitches, e.g, the highlight of current tag, but just ignore them for now, I will fix that when the nested display is usable.

屏幕快照 2019-04-18 下午4 26 02

from vista.vim.

idanarye avatar idanarye commented on August 31, 2024

Looks good now!

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

@idanarye I have fixed the problem of highlighting the nearby tag. I think it's nearly usable now!

Kapture 2019-04-19 at 20 48 47

from vista.vim.

idanarye avatar idanarye commented on August 31, 2024

Looking good!

With this, I'm going to start using Vista to replace not only tagbar but TToC as well.

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

I have finished all the features I wanted in #58. The nested display will be the default behavior. I'm planning to merge #58 soon, for the problems won't be found until you really use it.

from vista.vim.

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.