npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

joplin-plugin-advanced-tagging

v1.4.0

Published

Write rules to update your tags/notes within your Joplin notebooks. Warning: this plugin is experimental. Use at your own risk.

Downloads

18

Readme

Advanced Tags

Write rules to update your tags/notes within your Joplin notebooks. Warning: this plugin is experimental. Use at your own risk.

Rules are writen as notes anywhere in your Joplin instance. You just have to tag them with a specific tag so that they can be found and applied. All rules must be valid JSON to work.

Below are some of the things you can do with this plugin.

Move Tagged Notes To Notebook

We can write a rule that moves tagged notes into a specific notebook when run. For example, every day I create a new logbook note, and at the end of the week I'd like to move them from my Desk notebook into my Logbook folder to keep things tidy.

The rule I write would look like this

{
  "tag": "log",
  "toNotebook": "Logbook",
  "fromNotebook": "Desk"
}

The fromNotebook field is optional, leave it off to move from any notebook. This may be slow if you have a lot of notes with this tag.

I will put this into a note anywhere in Joplin and tag it with #joplin-move-tag-rule. The specific tag required can be changed in Joplin's settings.

I can then run this rule at the end of the week by running :moveTaggedNotes from the CMD+P menu.

Add Parent Tags

This plugin lets you run a command to add a tag to every note with a given tag.

For example, I have a few notes in my Notebook about number theory and topology.

Notebook contents:

  • Prime numbers #primes #number-theory
  • Natural number #number-theory
  • Torus #topology

As you can see, I've tagged these notes with relevant tags.

I now realise, that I often find myself wanting to look at notes tagged either #number-theory or #topology. It'd be really handy if I had tagged them all #mathematics. Now I could use the search feature and add the tag, but I want to ensure that any future notes also get #mathematics added to them.

Using this plugin I can make a new rule to specify this relationship. If I make a note tagged #joplin-parent-tag-relation (the specific tag is configurable) and populate it with the following JSON contents:

{
  "number-theory": "mathematics",
  "topology": "mathematics"
}

We can then add the mathematics tag to any #number-theory or #topology tagged notes just by running :updateTags in the CMD + P menu.

Deduplicate tags

One problem with my notebook was that behind the scenes there were actually two tags named #number-theory. I've added a command to delete the duplicate tags. This is likely highly risky. Please make a backup before running this.

Rename tags

This rule lets you make sure you're consistent with your tags. For example if it finds the tag #maths it automatically renames to #mathematics. An example rule file for this would look like:

{
  "mathematics": ["math", "maths"],
  "compsci": ["computer science"]
}

Note that the tags #mathematics and #compsci must exist already or this won't work.

Future