Tag, Word & Link Cloud

approved

by Johannes Theiner

Show a cloud of your tags, words, or links.

66 stars17,130 downloadsUpdated 3mo agoGPL-3.0
View on GitHub

Tag, Word & Link Cloud

Plugin for Obsidian

GitHub package.json version GitHub manifest.json dynamic (path) GitHub libera manifesto

With this plugin you can create a tag, link or word cloud in your notes.

To do this create a codeblock with the language set to either tagcloud, wordcloud or linkcloud.

You can configure your cloud using a YAML syntax.

Tag Cloud

Displays all tags that fit your selection.

Examples

Show all tags in the entire vault

```tagcloud
```

Show all tags in the current file

```tagcloud
source: file
```

Show all tags from a folder/file.

⚠️ Requires Dataview

```tagcloud
source: query
query: Folder/File
```

Show all tags that show up together with our tag.

⚠️ Requires Dataview

```tagcloud
source: query
query: '#yourTag'
```

Show all tags from notes that link to note.

⚠️ Requires Dataview

```tagcloud
source: query
query: '[[Other note]]'
```

Options

NameDescriptionPossible Values
queryRequires Dataview, requires source to be set to queryA valid Dataview Source
excludeexclude certain tags from the tagcloudan array of tags

All other options from here still apply

Word Cloud

a wordcloud displays all words in your vault/note.

⚠ Word distribution will only be calculated when loading a vault and by running the Recalculate Word Distribution command.

This is because the calculation is computationally expensive and takes some time.1

Examples

Show all words in the entire vault

```wordcloud
```

Show all words in the current file

```wordcloud
source: file
```

Show all words using a folder/file

```wordcloud
source: file
query: 'Folder/File'
```

Options

NameDescriptionPossible ValuesDefault
stopwordsRemove all stopwords from the resulttrue/ falsetrue

All other options from here still apply

Link Cloud

A link cloud displays all links in your vault.

This cloud can only be generated vault wide.

Examples

Show all links

```linkcloud
```

Show all links to existing files

```linkcloud
type: resolved
```

Show all links to non-existing files

```linkcloud
type: unresolved
```

Options

NameDescriptionPossible ValuesDefault
typeWhich type of links to showresolved, unresolved, bothresolved

The following options also apply.

General Options

The following options are supported for all clouds.

NameDescriptionPossible ValuesDefault
shapeWhat shape to drawcircle, cardioid, diamond, square, triangle-forward, triangle, pentagon, starcircle
sourcewhere are the tags/words coming from?file, vault, query(only supported in tagcloud)vault
weightfactor by wich the size of a word is multipliedany positive integer2
shrinkToFitAdjust word weight to make it fittrue/falsetrue
minCountMinumum number of occurancesany positive integer0
maxDepthOnly show the X most used elements(if two elements have the same number of occurrences only one will be counted)any positive integer (increasing this number may result in the cloud not showing, as only so many elements can be rendered)25
backgroundBackground colora hexadecimal RGB valuebackground color from the chosen theme
widthWidth of canvasin pixels (the px is omitted)line width
heightHeight of canvasin pixels (the px is omitted)width / 2
fontFamilyfont used to displayany valid font-family
fontWeightfont weightnormal, bold, or a numbernormal
minFontSizeminumum font sizeany number0
minRotationthe minimum rotation the text should rotatenumber (in rad)- pi / 2
maxRotationthe maximum rotation the text should rotatenumber (in rad)pi / 2
ellipticitydegree of 'flatness'number0.65
shuffleproduce a different looking result each time?true/falsetrue
rotateRatioRotation ProbabilityNumber as percentage (so 1.0 is 100%)0.1

Known issues

  • In some specific scenario the calculated width off the used canvas element is 0. The plugin will fall back to a value of 500, which depending on the size of your obsidian window, might look strange.

Credits

Footnotes

  1. On a high-powered computer with a Vault that contains ~12.000 this takes 15 minutes.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.