dendron icon indicating copy to clipboard operation
dendron copied to clipboard

Allow different types/attributes for links/references (and query based on them)

Open Binly42 opened this issue 4 years ago • 3 comments

Please select if your request is either something new or an enhancement

  • [ ] Enhancement of an existing Feature.
  • [x] Request of a new feature.

Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

  • [ ] Workspace - VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • [x] Lookup - Dendron's Lookup Command
  • [x] Views - Dendron Preview, Tree View, Side Panels in the UI
  • [ ] Schema - Dendron Schemas
  • [ ] Pod - Data import from / export to Dendron
  • [ ] Publish - External Site Publish
  • [x] Markdown - Markdown features, such as syntax support and features

Is your feature request related to a problem? Please describe

I plan to use Dendron to help manage my ideas and thinkings for my novel. One main point is using the links to connect detail idea points. Hence, the links should have different priorities, different meaning, different status, etc.

For example, I have

  • A links X, and
    • the content of A infer X
    • A has a higher weight, i.e. A is the requirement of X
  • B links X, and
    • the content of B should be further infered and confirmed by X
    • the priority of B is lowest
    • a status should be binded with the link of B to X, like the brainstorm times executed 3/5
      • note that B may link to multiple notes besides X, so that it is not so good to bind the status to B's frontmatter
  • C links X, and
    • C is like B, but with a higher priority to be considered

Also, in graph view or filter results view, it would be great to be possible to control which links should be displayed, based on those info.

Describe the solution you'd like

  • Add support the types/attributes said above, the detail syntax may be like: (just off the top of my head)
    • [[link]]{properties}
    • [[alias-name{properties}|link-path]]
  • Add query support for those properties (https://github.com/dendronhq/dendron/issues/159

Describe alternatives you've considered

not confirmed yet, like

  • manually use some todo-lists or dedicated notes to record attributes of links and track them
    • which is like my current poor way
  • use simple script to help searching/filtering by detect the plain text properties around the [[link]]

Binly42 avatar Jan 04 '22 10:01 Binly42

This may cover a existed issue https://github.com/dendronhq/dendron/issues/1916

Binly42 avatar Jan 05 '22 03:01 Binly42

In some ways, this is related to Advanced Queries #159 . The primary difference is that a query can be expanded through use of a command to the results in the editor, and also embedded in a wikilink or link reference (I'm assuming this was covered in the Advanced Queries issue. If someone can clarify if this is the case, I can add the extra cases to this issue and close this issue.

sahil48 avatar Jan 07 '22 18:01 sahil48

In some ways, this is related to Advanced Queries #159 . The primary difference is that a query can be expanded through use of a command to the results in the editor, and also embedded in a wikilink or link reference (I'm assuming this was covered in the Advanced Queries issue. If someone can clarify if this is the case, I can add the extra cases to this issue and close this issue.

@sahil48 I believe this issue is distinct from #159 as this issue is requesting that links have attributes, whereas the other issue is for advanced queries over existing note metadata and data.

padamson avatar Sep 24 '24 01:09 padamson