Giter Club home page Giter Club logo

Comments (10)

Vinzent03 avatar Vinzent03 commented on June 30, 2024

I don't understand the benefit of including an file parameter if it's not used. What do you mean with:

when we run into this URL in the wild, we can tell at a glance what it's about.

from obsidian-advanced-uri.

huyz avatar huyz commented on June 30, 2024

So when you see a URL, you know what it's about. Maybe you have the wrong one? Maybe you need to move URLs around. Maybe you're including several, and how can you distinguish them?

You remember why slugs became a thing in URLs? https://en.wikipedia.org/wiki/Clean_URL

from obsidian-advanced-uri.

Vinzent03 avatar Vinzent03 commented on June 30, 2024

But you just want to make the url longer by adding a redundant parameter. This improves nothing.

from obsidian-advanced-uri.

huyz avatar huyz commented on June 30, 2024

Well, it's not for everyone, which is why it should be an option. But clearly some people like human-readable URLs.
Maybe, you like insert URLs like https://stackoverflow.com/q/44558955/161972 in your notes or code comments, but I always expand them to https://stackoverflow.com/questions/44558955/vscode-normal-word-completion because that's more user-friendly: I get a hint about whether I want to click on the URL or not just by looking at the URL, saving me time.
How is that "nothing"?

In any case, it's clear you don't like it, which is fine.

from obsidian-advanced-uri.

Vinzent03 avatar Vinzent03 commented on June 30, 2024

But the uri already has the filepath parameter. The file parameter would have the same value? I think we talk past each other.

from obsidian-advanced-uri.

huyz avatar huyz commented on June 30, 2024

The filepath is there if I don't turn on UID in the options. The problem with filepath is of course that it's brittle if I rename a note or move it to another folder. That's the benefit of UID: it's permanent. So I have UID turned on.

But then I wanted my cake and eat it too:

  1. uid= for computer consumption to be used by your plugin to find the note
  2. and something for human consumption:file= or title= or #title= at the end of the URL for when I'm actually reading the URL. Your plugin would just ignore that.

from obsidian-advanced-uri.

huyz avatar huyz commented on June 30, 2024

Sorry, I think the confusion was that I forgot that I had enabled the UID option long ago. I thought that everyone had UID on by default. My bad, I should have been clearer.

from obsidian-advanced-uri.

Vinzent03 avatar Vinzent03 commented on June 30, 2024

Ah now I understand your issue. I always forget the uid option. Will think about a solution.

from obsidian-advanced-uri.

Vinzent03 avatar Vinzent03 commented on June 30, 2024

There is now a new setting, adding the filepath parameter.

from obsidian-advanced-uri.

huyz avatar huyz commented on June 30, 2024

@Vinzent03 Thanks so much!

from obsidian-advanced-uri.

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.