Skip to content

Logseq plugin to shorten redundant hierarchical references 👁️

License

Notifications You must be signed in to change notification settings

stdword/logseq13-shorten-my-links

Repository files navigation

                   Shorten My Links

A part of the Logseq13 family of plugins

Version Downloads

This is the plugin for Logseq and it shorts your links :)

Well, it is better to say it shorts your references, not all links. References to Logseq pages of course. And it shorts only hierarchical references. And... only redundant hierarchical references: which duplicates the page name.

Why do you need it?

1) To reduce visual efforts while viewing the page.

Let's see the demo:

These references have the same prefix as the current page title, so it has been truncated.

And the more practical one:

These references have the same prefix as the embedded page title, so it has been truncated. Embedded page header truncated in comparison with current page title.

2) To have a very fast way of referencing sub pages

Just type-in /. to use one of two special /-commands:

If you ❤️ what I'm doing — consider to support my work

Buy Me A Coffee

Installation

From Logseq Marketplace (recommended way):

    marketplace

  • In Logseq: click «...» at the top of the page and open the «Plugins» section (or press t p)
  • Click on the «Marketplace»
  • On the «Plugins» tab search for «Shorten My Links» plugin and click install
  • There is no settings or any setup steps: the plugin is completely automatic — just start making references

Manual way (in case of any troubles with recommended way)

  1. In Logseq: Enable «Developer mode» in «...» → Settings → Advanced
  2. Download the latest plugin release in a raw .zip archive from here
  1. Unzip it
  2. In Logseq: Go to the «...» → Plugins, click «Load unpacked plugin» and point to the unzipped plugin folder
  1. ⚠️ The important point here is: every new plugin release should be updated manually

FAQ

❗️ Some parts of this plugin heavily rely on Logseq's Document Object Model (DOM) structure. This means that every Logseq update could potentially break specific plugin functions. If you notice anything unusual, please create an issue with details.

Plugin doesn't work. How to fix? Reinstall the plugin manually:

  1. In Logseq: Open the plugins page (press t p)
  2. In Logseq: Open plugin text settings
  1. In text editor: Change disabled state from «false» to «true» and save
  1. Restart Logseq
  2. In Logseq: Open plugins page again (t p)
  3. Uninstall the plugin
  4. Install the plugin again from Marketplace

Integrated with plugins:

Credits

License

MIT License