Code Monkey home page Code Monkey logo

Comments (7)

HEmile avatar HEmile commented on September 17, 2024

Hi, this should be fixed in 0.3.2 . Can you check this?

from obsidian_supercharged_links.

Aaron-Bopp avatar Aaron-Bopp commented on September 17, 2024

This works for tags but not other front matter that uses this YAML array representation e.g

aliases:
- alias1
- alias2

This is only true when only when getFromInlineField is true because of this line

from obsidian_supercharged_links.

chi-wi avatar chi-wi commented on September 17, 2024

Thanks for the quick edit! I have tested it in a new vault, as to ensure no other plugins are interfering, and while it does now colour everything it is not persistent. If I interact with the link, or rather just switch notes back and forth, the e.g. colour disappears.

links.css

[data-link-tags*="person"]{
    color: #ff6600 !important;
}

This works:

tags: [person]

This is not persistent:

tags:
  - person

from obsidian_supercharged_links.

HEmile avatar HEmile commented on September 17, 2024

This works for tags but not other front matter that uses this YAML array representation e.g

aliases:
- alias1
- alias2

This is only true when only when getFromInlineField is true because of this line

Yes, you are right that the frontmatter parsing is different if you use inline fields. @mdelobelle wrote that part of the code, not sure if they can take a look at it? To me it seems best to just use obsidians cache to parse it.

EDIT: We should use Dataview to parse the inline fields instead of using a custom parser.

from obsidian_supercharged_links.

HEmile avatar HEmile commented on September 17, 2024

@chi-wi is this the same problem as #43?

from obsidian_supercharged_links.

chi-wi avatar chi-wi commented on September 17, 2024

@chi-wi is this the same problem as #43?

No, doesn't seem to be. Moved "person"-files into different folders, tags in "my" array form (multiple lines) are not persistent, and colour doesn't come back. Folders don't play a role. (Not using mobile.)

from obsidian_supercharged_links.

chi-wi avatar chi-wi commented on September 17, 2024

It's working now! Thank you for the fix :)

from obsidian_supercharged_links.

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.