mara-li716 downloadsAutomagically adds tags based on a simple csv file or a Markdown table.
Automagically adds tags based on a thesaurus CSV or a Markdown table.
The plugin searches for the word or series of words in the header (properties), body and title of the note. The word searched for will be :
[!TIP]
gamefindsGAMEorGamE.card gamefindsCard Gamebut notcards gamesgamewon't findgames,gamingorgameplaycafewill not findcafé.caféwill not findcafe.
The thesaurus must be a table with at last two columns: one for the terms and one for the synonyms. The first row must contain the column headers.
[!TIP]
The thesaurus can be a CSV file like this:Tag,Synonym computer,PC computer,machine computer,bikeOr in Markdown format:
| Tag | Synonym | |-----------|-----------| | computer | PC | | computer | machine | | computer | processor |
[!NOTE] If you choose to use a markdown file, the Markdown table must be the only content in the file. But, you can have a frontmatter at the beginning of the file.
You can have as many synonyms as you want for a term, but you need to duplicate the term in the first column. Moreover, a synonym can be associated with multiple terms, and the synonym can equal to the term itself.
save button to ensure the file is valid (the path is correct, the file exists, and it's well-formed).[!CAUTION]
If, for some reason, the file is moved, you need to update the path in the settings! It won't be updated automatically.
,, ;, |, tabulation and markdown. See the note above for the markdown separator.My Thesaurus: Parse all files. You can separate the paths with a comma, semicolon, or newline. Moreover, regex is supported.[!TIP]
You can include all the files in your vault by using.*as the path!
exclude_termcafé to be recognized by cafe (and vice versa).The plugin has two commands:
https://github.com/Mara-Li/my-thesaurus.zip in .obsidian/plugins/ pathTo add a translation:
src/i18n/locales folder with the name of the language (ex: fr.json).<% tp.obsidian.moment.locale() %>en.json file in the new filei18n/i18next.ts :import * as <lang> from "./locales/<lang>.json";ressource part with adding : <lang> : {translation: <lang>}