Automatically tag pages that exist in your graph!
When turned on, on block exit
- Links any exact match page references (full word, no partial matches)
- Aliases any case insensitive matches
- Creates links for natural language dates
friday
=>[[July 15th, 2022]]
(NOTE: Can be turned off in settings. Use carefully as this will change phrases like "today" and "now" to the daily note for today.)
Alt + i
to turn on, or click the eye icon in the topbar.
Exclusions: Create an [[autotag-exclude]]
page. Add pages you want to exclude (i.e., not be autotagged), in a comma-spaced list without [[
]]
, as the first block on that page.
autotag-demo-video.mp4
This extension adds a new option to block context menus that says "Alias Page Synonyms". Right click a block and click on the option to replace all text in the block with a reference to its defined alias. To define aliases, go to the page and add an Aliases
attribute. All values should be comma delimited.
For example, to have Tasks
and task
alias back to Task
, create an Aliases
attribute on the Task
page. The page should have a block that displays Aliases:: Tasks, task
.
These aliases could be used in the main autotagging feature mentioned above. To enable, head to your Roam Depot settings and toggle on the setting titled Process Alias
.
The extension also works for selecting multiple blocks. When you highlight and right click multiple selected blocks, the "Alias Page Synonyms" will appear and perform the same operation as described above.
By default, the extensions replace synonyms using the [synonym](((page-uid)))
format. To use the tags format instead ([synonym]([[Page Title]])
), head to your Roam Depot settings and enable the setting titled Alias with Tags
.
page-synonyms-720.mp4
This feature helps you find page references that haven’t been linked manually as opposed to automatically on each block exit as above. To enable, head to your Roam Depot settings for AutoTag and toggle on the setting titled Unlink Finder
.
An X-shaped button will appear in the menu bar when this feature is activated. Clicking that button while on a page will highlight words on your screen matching each of these criteria:
You could then right click on a link and choose between a [[Reference Link]]
or an [Alias Link]([[Alias Link]])
. Here are how the 5 match types work:
- Exact Match Type - These matches are case-sensitive, are a complete word, and are not already linked in a parent block.
- Fuzzy Match Type - These matches are case-insensitive, are a complete word, and not already linked in a parent block
- Partial Match Type - These matches are case-insensitive, only part of a word, and not already linked in a parent block.
- Redundant Match Type - These matches are case-insensitive, can be any part of a word, and are already linked in the parent block
- Alias Match Type - If you have any pages with an
Aliases::
attribute, those aliases will be shown in Roam blue. These also have a tooltip (as mentioned above) that show the actual page name. Make sure you have CSS suggested so these tooltips work.