Skip to content

Extracts file tags (+tag in the filename) into markdown files

Notifications You must be signed in to change notification settings

virtos/markdown-filetags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

The question

I like to have control over my notes and keep them on my device. Should I use a directory structure or tags?

The answer

You can have the best of both worlds! Create any folder structure you like and put tag names with a '+' sign.

How does it work?

When you run this small utility, it looks for markdown files in the current folder and all subfolders, gathers all tags and creates an index file with all collected tags and reference to corresponding files. Just open _filetags.md file and you will see the power of markdown referencing.

Do I need anything else?

A markdown editor. There are a number of great options. This is what I use: - Windows: Typora - Android: Markor or Epsilon notes

Example

Suppose you decide to keep your notes in "My Notes" folder. You may put your web links into "Links" folder and your contacts into "Contats" folder. Here is a sample structure of your notes:

My Notes
    Contats
        Bob +friend +work.md
        Laura +work.md      
    Links                                 
        epsilon +editor.md              
        microsoft +work.md              
        typora +editor.md                

After running markdown-filetags.exe you will have index files added for each subfolder:

My Notes
    _filetags.md
    Contats
        _filetags.md
        Bob +friend +work.md
        Laura +work.md      
    Links                                 
        _filetags.md
        epsilon +editor.md              
        microsoft +work.md              
        typora +editor.md                

Contents of the _filetags.md file in "My Notes" folder:


contats
  • Contats/Bob +friend +work
  • Contats/Laura +work
  • editor
  • Links/epsilon +editor
  • Links/typora +editor
  • friend
  • Contats/Bob +friend +work
  • links
  • Links/epsilon +editor
  • Links/microsoft +work
  • Links/typora +editor
  • work
  • Contats/Bob +friend +work
  • Contats/Laura +work
  • Links/microsoft +work

  • As you can see the program collected tags for all notes. Clicking on a hyperlink will open a corresponding note.

    Index files in subfolders will only reference notes below them, so if you only want to see contacts related to work, go to contacts folder and find work tag in the index file.

    Contents of the _filetags.md file in "Contacts" folder:


    friend
  • Bob +friend +work
  • work
  • Bob +friend +work
  • Laura +work

  • Unrelated notes

    Using plain file structure with markdown notes is a very powerful system allowing you to keep your data private and secure. It's just text, so you will never lose it, you will never have to pay someone to keep them and you will never worry about your note application developer going out of business or doing something stupid. Enjoy!

    About

    Extracts file tags (+tag in the filename) into markdown files

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages