Giter Site home page Giter Site logo

[Feature] Jump/related links about org-brain HOT 5 CLOSED

rsuhada avatar rsuhada commented on May 12, 2024
[Feature] Jump/related links

from org-brain.

Comments (5)

Kungsgeten avatar Kungsgeten commented on May 12, 2024

I want to include these, but it is a bit problematic since they're two way. Which file should hold the relations? If adding some kind of database, this is a feature that I'd definitely add.

from org-brain.

rsuhada avatar rsuhada commented on May 12, 2024

With flat files - both files would hold the link. If a.org is related to b.org then a.org will have in its brainrelated heading a link to b.org and, b.org in its heading a link to a.org.

By the way - this could be useful for child-parent relationships. Currently child is stored, but parents could be too. So if a.org is parent of b.org:

a.org has in brainchildrend b.org
b.org has in brainparents a.org

So links are always two-way. They are symmetric for related links (related-related) and antisymmetric for parent-child links.

This approach has 2 advantages:

  1. since parent state is persisted, you don't need to search for it - just read it off the file (faster, scales better)
  2. if you visit the given org file directly in org mode (not in brain-visualize) you still can see it's parents. Currently only children are visible.

These are just some thoughts... the implementation might be more complicated?

from org-brain.

Kungsgeten avatar Kungsgeten commented on May 12, 2024

Yes, I've thought about storing parent links locally too, it would remedy the speed issues. The problematic thing is when adding/deleting a child link manually; the current file then needs to be added/deleted as a parent in the target as well. Its probably possible to do this in the save hooks, but I haven't tried it yet.

from org-brain.

Kungsgeten avatar Kungsgeten commented on May 12, 2024

I have rewritten org-brain from scratch, please see: https://github.com/Kungsgeten/org-brain/tree/org-brain-id

This new version includes the "jump link" feature (but I call them friends). This will be merged into main in a couple of days, I'm just going to test it a bit more first.

from org-brain.

Kungsgeten avatar Kungsgeten commented on May 12, 2024

The 0.4 branch is merged into master, and adds "jump links" as friendships.

from org-brain.

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.