CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
492 stars 72 forks source link

✨ Markdown: Backlink Support #36

Open realCrush opened 2 years ago

realCrush commented 2 years ago

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

It would be nice if CodeEdit support backlinks in markdown: when type [[, a small window hover and show all your markdown file's filename, you can select one of them to create backlink, after [[SOME_MD_FILENAME]] finished, the file SOME_MD_FILENAME.md would also create a backlink that mention the file that linked to it, which might be a snippet of markdown text:

## Backlinks
* [[Something that links here]]
    * The block of text in the referencing note which contains the link to [[Sample note]].
    * Another block in that same note which links to [[Sample note]].
* [[A different note that links here]]
    * This is a paragraph from another note which links to [[Sample note]].

This might be a little dirty to add to a code editor, as this feature is usually supported by Note APPs like Roam Research, Obsidian, Logseq, and Notion, etc. But it would be really cool for a native APP to support this as all these APPs are not macOS native (most of them based on Electron).

Describe alternatives you've considered

Using Note APPs that support backlink feature, like Roam Research, Obsidian, Logseq, and Notion.

Additional context

Examples for backlinks:

austincondiff commented 2 years ago

Moved this issue to CodeEditTextView.