Coder Social home page Coder Social logo

qidouhai / tw5-relink Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flibbles/tw5-relink

0.0 0.0 0.0 10.11 MB

Tiddlywiki5 plugin to better update all other tiddlers when renaming a tiddler.

Home Page: https://flibbles.github.io/tw5-relink/

License: BSD 3-Clause "New" or "Revised" License

JavaScript 99.58% CSS 0.42%

tw5-relink's Introduction

Relink

By default in Tiddlywiki5, when you rename a tiddler, it gives you the option to automatically update the list and tags field of all other tiddlers.

But what about updating a tiddler's text? What about other fields like list-before and list-after. What about other fields that are unique to my project?

...What about markdown?

This is what Relink is for. It expands on TW5's bulk updating to allow for any customizable fields to be updated, whether they're lists, filters, macros, or single-tiddler fields. In addition, relink parses through the text of all relevant tiddlers and updates prettyLinks, transclusions, widgets, and other syntax patterns to properly reflect the title change. All of this is fully customizable.

For a demonstration, and for documentation, see the tiddlywiki demo site.

Quick note: Relink doesn't support NodeJS tiddlywikis that lazy load. See the documentation for more details.

How to install

Visit the demo site. It will have a little thingy you can drag onto your tiddlywiki project. (The demo site will explain it better.)

It will also have instructions for how to install any Relink supplemental plugins, like markdown support.

For Node.js

The following is an abridged version of the instructions found here.

First, check out the source code using git. Then copy the contents of the plugins directory into a "flibbles" directory in a path where you'd like it to be available. Then add that path to the TIDDLYWIKI_PLUGIN_PATH environment variable.

For instance, copy the contents of the plugin directory to "~/.tiddlywiki/flibbles" directory. Then run echo "TIDDLYWIKI_PLUGIN_PATH=~/.tiddlywiki" >> .profile

If you've installed it correctly, the path to the plugin.info file should look something like:

~/.tiddlywiki/flibbles/relink/plugin.info

Same goes for any supplimental plugins you want, like relink-markdown.

Afterward, add the plugin inside your projects' tiddlywiki.info file. The plugins section will look something like:

{
   ...
   "plugins": [
      ...
      "flibbles/relink"
   ],
   ...
}

Alternatively, you can also copy the plugins directly into your projects' root directory. Though this makes the install local only to those specific projects.

How to test

Make sure you have tiddlywiki available on your PATH. Then from the project root directory, type:

tiddlywiki --build test

Don't worry about its mention of not finding the flibbles/uglify plugin.

tw5-relink's People

Contributors

flibbles avatar makiaea avatar saqimtiaz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.