Code Monkey home page Code Monkey logo

Comments (5)

xlab avatar xlab commented on July 28, 2024 1

I have an idea how to resolve this. Consider there are two trees, one is the file tree, and another one is the tails view tree. Currently it is sorted by file names in the left tree, and the right tree is flat and unsorted, with a lot of pointy arrows.

A solution to this problem is to make the second tree not flat, but with indentation and collapsible:

.
└── main.go
    ├── [#1]  Authorization Endpoint
    └── handler.go
        ├── [#2]  Authorization Handler
        ├── [#3]  Check Credentials
        ├── service.go
        │   ├── [#4]  Account Authorization Method
        │   ├── [#5]  Account Read from DB
        │   └── [#6]  Password Check
        └── [#7]  New JWT Token

That way is is also sorted by the tail numbers. Of course it is not always possible to sort by tail numbers, especially when browsing multiple cross-referenced codebases, but an option to specify the sort preference is a must in this situation.

from codecrumbs.

Bogdan-Lyashenko avatar Bogdan-Lyashenko commented on July 28, 2024 1

@xlab fixed that (codecrumbs v1.2.0). Now, files tree will be sorted in the order of codecrumbs trail steps, so you always reading from the top to the bottom without messed up intersections

from codecrumbs.

xlab avatar xlab commented on July 28, 2024
  • main.go: 1 as entrypoint
  • handler.go: 2, 3, then 7
  • service.go: 4, 5 and 6

The flow is expected as this:
main.go(1) -> handler.go(2,3) -> service.go(4,5,6) -> handler.go(7)

from codecrumbs.

Bogdan-Lyashenko avatar Bogdan-Lyashenko commented on July 28, 2024

Awesome stuff) will implement that ASAP. Or you want to contribute? Help is very much needed and appreciated)

from codecrumbs.

xlab avatar xlab commented on July 28, 2024

@Bogdan-Lyashenko I tried to study your code of graph renderer, I'm too weak JS developer to extend that, unfortunately. :)

I decided to code a small tool that exports all codecrumbs into a single markdown file, will wait for progress on your side, so I could use that cool visualisation too.

from codecrumbs.

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.