Skip to content

Flexible links #312

@srid

Description

@srid

Proposal

I propose the following linking syntax (retaining the underlying link URI):

This is current style, and will continue to be supported: <foo>

Proposed default: [[foo]]

Flexible link, that allows setting inner text: [[foo | the foo note]].

This does a couple of things:

  1. Makes the already supported [[..]] style links the default.
  2. Supports overriding the link text, as discussed in Advice on linking by ID / not having note title in the source file #306

Advance linking syntax would look the same, except for the change in the 'wrapper' syntax:

Current: 
- <z:zettels?tag=haskell>
- <foo?cf>

Proposed: 
- [[z:zettels?tag=haskell]]
- [[foo?cf]] or [[foo?cf | a foo note]]

Let's use this opportunity to also support regular Markdown links:

Plain markdown links: 
- [a foo note](foo.md)
- [a foo note](z:/foo)

Something to think about:


Final Proposal and Progress

  • Use [[..]] and [[[...]]] instead of <..> Wiki-style links #351
  • Allow overriding link text in wikilinks, eg: [[ foo | a foo note ]]
  • Regular Markdown links: [a foo note](foo.md)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Zettel FormatAnything that affects the structure of the zettel textproposalProposal with exact spec yet to be fleshed out

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions