Coder Social home page Coder Social logo

obsidian-frontmatter-links's Introduction

Hej Hej ๐Ÿ‘‹

About Me

I am a Computer Science student at Florida State University.

I am a Software Developer, Minecraft Modder, and Indie Game Developer.

@trikzon's Holopin board

Snake Chart

obsidian-frontmatter-links's People

Contributors

mnaoumov avatar morekon avatar trikzon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

obsidian-frontmatter-links's Issues

Changes to source note

If you create a new note from an internal link, the source note has inserted at the top:


{ }

Convert wikilinks not enclosed in quotes

I saw you're in the midst of finals, so understandable not to get to this for awhile.

My vault has a lot of wikilinks in frontmatter but not enclosed in quotes.

For example:

---
child: [ [[Work]], [[Notetaking]], [[Cognitive Biases]] ]
---

It'd be great if the plugin also converted those to links, like it can with https links not enclosed in quotes.

Could not open vault

After updating this plug in I could not open my vault. I checked the console and there were error messages related to it. I removed it from .obsidian and the vault loaded without a problem. I had 1.2.5

Plugin is causing huge delay in obsidian startup

I discovered that this plugin is the only responsible for a huge delay in the startup of Obsidian in my computer. I deleted the plugin and the startup went back to normal again. Hoping for an update to fix the issue, this is a very important plugin for me! thanks

Weird errors recently

image
On a reload. Also, the quotation marks on the last line of my frontmatter are moving to a new line. Like constantly.

When enabled causes a long time to start obsidian

I'm using obsidian 1.5.3 desktop along other 20 community plugins, it took me a lot to debug what was happening, disabling one by one and restarting obsidian.

When this plugin was enabled my obsidian takes around 60 seconds to start, stuck on loading cache, when disabled and the other 19 plugins enabled it takes 2 seconds, without any plugin enabled it takes like 500ms to start.

So clearly this plugin has a problem with the cache.

Thanks in advance.

Add tag support

I would like for a tag listed in the frontmatter such as
image

to render like
image

or however the theme styles a tag.

It should also be clickable to search for notes using that tag.

Weird cache and indexing vault

Hello ;

On my vault, the plugin will add a big loading time during the cache reading.
After this, Obsidian will ALWAYS reindex the vault.

This bug appear on Mobile and PC, vault is sync using Obsidian Sync.

I tryed with every plugin disabled, keeping only frontmatter links, and the issue persist.
Note : My vault contains around 300 notes, with PDF, image, js files...

SYSTEM INFO:
Obsidian version: v1.0.3
Installer version: v1.0.3
Operating system: Windows 10 Education 10.0.22623
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: light
Community theme: AnuPpuccin
Snippets enabled: 31
Restricted mode: off
Plugins installed: 87
Plugins enabled: 3
1: Banners v1.3.3
2: Divide & Conquer v1.0.0
3: Frontmatter Links v1.2.6

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Remove quotation marks from Wikilink

Currently, Wikilink is in citation format, but the bracket name allows us to determine that it is Wikilink, so could you please make it so that it is linked even if it is not in citation format?
"[[Wikilink]]" โ†’ [[Wikilink]]

The Future of Frontmatter Links

Hey all,

Thank you for all the support since I've made this plug-in. You may have noticed that I haven't updated this plug-in in quite a while. That's because I โ€” gasp โ€” stopped using Obsidian. But, I'm back now!

Obsidian v1.4

It has come to my attention recently that Obsidan had a massive update to the way it handles properties. And I absolutely love it!!! It fixes all of the issues that this plug-in was made for, for me. Specifically it makes using the frontmatter properties easier, allows placing links in frontmatter that renders properly, and adds these links to the graph view. Because of this, I personally have no need for this plug-in anymore.

However, I know that some people still use this plug-in and would not like to see it abandoned. So it won't be.

In the next few weeks I plan on simplifying the code and features this plug-in provides to make it work well with the new update. I plan on only keeping the core purpose of this plug-in: making links in YAML frontmatter render like links and click-able. It will not modify the new properties view at all.

Looking for a Maintainer

Because I personally will not be using this plug-in anymore, I also want to ask if anyone is interested in maintaining this plug-in in the future. This plug-in is very low on my priority list and I have very little motivation to work on it. However, I've seen some people have made pull requests and responded to issues in my absence. If any of you want to become a maintainer, just ask here on this issue.

Thank you for reading

Render frontmatter links like Obsidian renders links when cursor is near

When the cursor is near a link, Obsidian renders parts of the link differently.
image

It does this by splitting the link into different html elements with different classes.
image

This seems a little overkill right now, so I don't intend to implement it anytime soon. However, it would make the plugin feel a smidge nicer and more built-in to the app

list of links

Hello,
thanks for this.
Would it be possible to have a list of links like this?

---
link: [http://hello.com, http://www.bye.com]
---

A few quirks

Thanks for this plugin!

  • Is it possible to get rid of the quotes when adding [[..]] links in yaml?
  • I still get invalid metadata in the preview mode. Can the plugin help fix this?
  • Linked mentions do not recognize links in the front matter. Can these be fixed?
    Sorry for the long list!!

Multiple links in one line?

Is there a way to have multiple links in one line?

E.g.

Author: "[[Stephen King]]", "[[J.R.R. Tolkien]]"

This works as far as the plugin is concerned, I think, but in reading mode is rendered as Invalid YAML

How can I achieve this?

Thanks :)

Weird parsing for list of unquoted links

I have this field in my frontmatter:

source:
 - https://stackoverflow.com/questions/641984/mysql-cant-access-root-account
 - https://stackoverflow.com/questions/41984956/cant-reset-root-password-with-skip-grant-tables-on-ubuntu-16

These links aren't recognized as links and are rendered as normal plaintext. As soon as I add a double-quote to the left of "https", all links from that quote onward are recognized, even if I never close the quote and even on later list items.

In this example, both links work even though they're not properly quoted. Adding a closing quote to the end of the first link doesn't change this behavior, both links are clickable.

source:
 - "https://stackoverflow.com/questions/641984/mysql-cant-access-root-account
 - https://stackoverflow.com/questions/41984956/cant-reset-root-password-with-skip-grant-tables-on-ubuntu-16

In this example, only the second link is clickable.

source:
 - https://stackoverflow.com/questions/641984/mysql-cant-access-root-account
 - "https://stackoverflow.com/questions/41984956/cant-reset-root-password-with-skip-grant-tables-on-ubuntu-16

Multiple links in the same string are not properly handled

With frontmatter like this:

someList:
  - Some text "[[And a link]]" more text "[[Another link|with alias]]"

The parsing of links gets messed up and gets treated like one big, weird link. This can be partially fixed by changing the regex to exclude opening brackets (and the pipe): /\[\[([^\[\|]+)\|([^\[]+)\]\]/m, but that does not completely solve the problem.

Even with the updated regex addFrontmatterLinksToCache() function only catches the last link. Needs to be rewritten using .matchAll and the /g flag.

findLinks() and styleLinks() could probably benefit from the same .matchAll and regex updates. Adding quotes around the entire list item (correct YAML syntax) is even more broken:
"Some text [[And a link]] more text [[Another link|with alias]]"

I think that's because of them being a part of the same slice, so the entire quoted string gets linked (node.from -> node.to) instead of the individual links inside the slice.

The expected behaviour is that the individual links are properly styled and added to the graph.

If I get anywhere, I'll send a PR, but it will probably require a rewrite of all the regex parts.

Add New Command โ†’ Running the URLs of YAML from a Modal

Hello, @Trikzon !!!!!!

I just saw you new plugin and I have an idea that could have a fantastic fit for this plugin.

The FR is simple a new command that:
1๏ธโƒฃ Grabs all URLs from frontmatter
2๏ธโƒฃ Creates a Modal with the URLs
3๏ธโƒฃ When an item is selected in the Modal, it runs the URL

My Workflow

Every content that I process inside Obsidian is stored in a different App. For example:

  • PDF are stored in DEVONthink App
  • Web Articles in GoodLinks App
  • YouTube videos in Play App

Since these apps supports URL/URI scheme, every note has a URL to the original source;

  • I already store these URL in the frontmatter :)

If I could have a modal with the URL of the active note, I could easily navigate to the origin using a keyboard shortcut and hit Mod+Tab tp get back to Obsidian


This is just one workflow. Another idea is to create URI of Obsidian Commands using the Advanced URI plugin to create a dynamic command that runs different commands based on the notes frontmatter. One command all workflows :)


Thanks for reading this !!!!! I hope you like my suggestion ๐Ÿ™ ๐Ÿ™ ๐Ÿ™

Let me know if you need more information !!!

Have a great day ๐ŸŒž

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.