blakedietz/vscode-nested-tags

v2.0.0

Opened this issue · 1 comments

Updates

It's been about a year since I've touched this repo. I'm creating this issue to signal to anyone who's currently using it that I am listening and am passively working on this. I've been noodling on all of the issue ideas and will be using this issue as a roadmap and am open to further discussion.

Features

Current

  • Tag with YAML
    • Tag array
    • Bullet
  • Tag with Directives
  • Current file types
  • Tag tree
    • File view
      • Go to file on click
  • File filter support

New

  • Actions
    • Search
  • Intellisense
    • Recommend tag in hierarchy
  • Discoverability
    • Graph view
  • Tree view
    • Display document name instead of file name
    • Display line of each tag
      • Go to line of tag

Fixes

Architecture

Parsing

Instead of using the current approach which is doing a pretty dumb job for parsing, it may be worth looking at remark. The benefit would be having direct access to the AST of the document.

Here's an example of the library

var unified = require('unified')
var markdown = require('remark-parse')

var tree = unified().use(markdown).parse(`
<!-- foo -->
# Hello world!
`)

console.log(tree)
{
  type: 'root',
  children: [
    { type: 'html', value: '<!-- foo -->', position: [Object] },
    {
      type: 'heading',
      depth: 1,
      children: [Array],
      position: [Object]
    }
  ],
  position: {
    start: { line: 1, column: 1, offset: 0 },
    end: { line: 4, column: 1, offset: 29 }
  }
}

Would be worth noting that the app offers Zettelkasten like features.