Skip to content

vanadium23/markdown-hashtags

Repository files navigation

Summary of the Update

New features

  • Now it can detect nested tags like #tag/subtag, also supports find-reference and autocompletion.

Detecting rule:

  • # is at the beginning of a line or after a whitespace character.
  • the hashtag path is cut off at a whitespace or a punctuation including !@#$%^&*()=+.,[];:'"?><.

The autocompletion is triggered on both # and /:

  • [#]: Must be at the beginning of a line or after a whitespace character.
  • [/]: Must followed by a hashtags path, like #tag/subtag/ will be triggered.

nested_tags

reference_for_nested_tags

autocompletion_for_nested_tags

  • The counter can count both tags and files. And it can be set to plain mode or deep mode. In deep mode, it will count all files in all depths of the hashtag.

sort_by_count_files_or_tags

count_deep_mode

  • The user can customize detected file extensions in settings.json, see New Settings.

custom_file_extensions

New Settings

"markdown-hashtags.sorting.key": "name" // string type, can be set to "countFiles", "countTags", "name". default to "name".
"markdown-hashtags.sorting.mode": "plain"   // string type, can be set to "plain", "deep". default to "plain". 
"markdown-hashtags.file_extensions": [".md", ".markdown"]   // string[] type, the string must start with a dot(.). default to [".md"]

Other Changes

  • The refreshed time is changed from onDidChangeTextDocument to onDidSaveTextDocument, for performance reason.
  • The refresh button will detect all files again.
  • The tag tree will be refreshed when a file(files) is created, renamed, deleted.

Fix

see the commit

To-Do

  • quick tag rename in tag tree
  • quick file rename in tag tree
  • tag move to another nested tag
  • find-definition command (vscode) to locate specific tag in tag tree
  • nested tags color
  • *improve performance


Hashtags in Markdown notes for VSCode

The extension provides, what is stands for: #tag functionality in markdown files. 😄 Inspiration comes from Obsidian.md, Markdown Notes and Nested Tags.

How does this extensions differ from them?

  • Markdown Notes provides same hashtag functionality, but also includes [[wiki-links]]. Markdown-hashtags only provides hashtags, so you can combine with different extension, like Markdown Memo.
  • Nested tags put hashtags in html comment and YAML front matter. Markdown-hashtags provides similar experience as hashtags in any social networks.

Features

Autocomplete

Autocomplete

Tree view

Tree

Find all references

References

Extension Settings

Currently no config provided.

Known Issues

Extension can conflict with Markdown Notes extension.

Release Notes

See Changelog.

About

Hashtags in markdown notes for VS Code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •