Comments (5)
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.
@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.
main.go
: 1 as entrypointhandler.go
: 2, 3, then 7service.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.
Awesome stuff) will implement that ASAP. Or you want to contribute? Help is very much needed and appreciated)
from codecrumbs.
@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)
- Corrupted Content Error HOT 12
- [IDEA] Think about usage of js-callgraph project HOT 1
- Codecrumb number gets cut off
- Highlighting problem with React Syntax
- Highlighting and Auto-Focus in Code and Crumbs section of sidebar
- Change metaKey to something more cross-OS friendly HOT 1
- Java project doesnt work HOT 6
- Reason/OCaml Support HOT 1
- Cannot parse certain ES6+ syntaxes HOT 1
- Can not access the url http://localhost:2018/ HOT 1
- Customizing Flow Chart HOT 2
- add support for codecrumbs.config.js file (as alternative to CLI params) HOT 1
- Dependencies are not resolved at all. HOT 9
- Add usage of React.memo to UI components (to reduce number of redundant re-renders)
- Add e2e tests with testcafe
- codecrumbs with -i ide feature HOT 8
- Swift and ObjectiveC support
- Client can't connect to server in WSL environment HOT 2
- How to configure codecrumbs to work with Typescript project? HOT 4
- Codecrumbs hasn't launched on Python project HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codecrumbs.