1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-24 22:33:16 +00:00
A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
Go to file
G0erman f32cb52ba6 Squashed commit of the following: (#3571)
uthor: G0erman <goerman.rafi@gmail.com
Date:   Fri Nov 23 17:21:43 2018 -0500

    Add a line in the end

commit 3cdd78116965f38147f55897adfcef493befe5d0
Author: G0erman <goerman.rafi@gmail.com>
Date:   Fri Nov 23 17:15:47 2018 -0500

    Recover file accidentally deleted

commit c4536e9182cd90a5d4e6e694ac6fc930ea75ddb5
Author: G0erman <goerman.rafi@gmail.com>
Date:   Fri Nov 23 17:12:25 2018 -0500

    Translate instructions about install plugin in node server.

commit 0622d03beb
Author: Jeremy Ruston <jeremy@jermolene.com>
Date:   Wed Nov 21 12:10:35 2018 +0000

    Update release note contributors list

commit 9d0083d8dc
Merge: 8134f8de2 2541b9b09
Author: Jeremy Ruston <jeremy@jermolene.com>
Date:   Wed Nov 21 11:53:43 2018 +0000

    Merge branch 'master' of https://Jermolene@github.com/Jermolene/TiddlyWiki5.git

commit 8134f8de28
Author: Jeremy Ruston <jeremy@jermolene.com>
Date:   Wed Nov 21 11:53:26 2018 +0000

    Update release note

commit 2541b9b090
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Wed Nov 21 12:32:22 2018 +0100

    Pagescroller - get scroll pos in src window (#3561)

commit d55a498fca
Author: Bimba Laszlo <bimbalaszlo@gmail.com>
Date:   Wed Nov 21 12:26:00 2018 +0100

    Docs: Clarify TextWidget with example (#3564)

commit ce7becd64f
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Wed Nov 21 12:24:50 2018 +0100

    KeyboardShortcut docs (#3496)

    * add SystemTag $:/tags/KeyboardShortcut

    * add Keyboard Shortcut Descriptor

    * Update KeyboardShortcuts.tid

    * Update KeyboardShortcutDescriptor.tid

    * Update and rename SystemTag_$__tags_KeyboardShortcut.tid to SystemTag_ $__tags_KeyboardShortcut.tid

    * Create KeyboardShortcutTiddler.tid

    * Update KeyboardShortcutTiddler.tid

    * Update KeyboardShortcutTiddler.tid

    * Update KeyboardShortcuts.tid

    * Update KeyboardShortcuts.tid

commit 09330968cc
Author: Jeremy Ruston <jeremy@jermolene.com>
Date:   Tue Nov 20 13:29:44 2018 +0000

    New "else" prefix for filters (#3558)

    * Experimental "else" prefix for filters

    See #3557

    * Docs updates for "else" filter runs

commit 02f26d94a1
Author: Jermolene <jeremy@jermolene.com>
Date:   Tue Nov 20 13:29:01 2018 +0000

    Releaase note update

commit 7729649f0e
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Tue Nov 20 12:50:12 2018 +0100

    Fix bad function declaration in wiki.js (#3559)

    fix for #3555 - inner function declaration should be on top of its "host" function

    error originally appeared on firefox v38.0.5

commit 430be4ec30
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Tue Nov 20 12:43:15 2018 +0100

    Fix list-tagged-draggable for quotes !! and ## (#3442)

    * fix list-tagged-draggable for quotes !! and ##

    * Update list.tid

    * Update list.tid

    * Update list.tid

commit b009a60b69
Author: Jermolene <jeremy@jermolene.com>
Date:   Tue Nov 20 11:30:06 2018 +0000

    Update release note

    Not quite up to date, got as far as 31 Oct.

commit 8832409666
Author: Jermolene <jeremy@jermolene.com>
Date:   Tue Nov 20 11:29:36 2018 +0000

    Docs typo

commit 6d67dc8eb8
Author: Bimba Laszlo <bimbalaszlo@gmail.com>
Date:   Tue Nov 20 11:06:12 2018 +0100

    Clarify drag-n-drop behaviour again (#3434)

    * Clarify drag-n-drop behaviour again

    Just found the real reason of drag-n-drop issue mentioned in
    b89e8d1635.

    * Trying to formulate correctly

commit f4ca295086
Author: Bimba Laszlo <bimbalaszlo@gmail.com>
Date:   Mon Nov 19 22:01:56 2018 +0100

    Docs: Remove broken `is` operator example (#3556)

    In 737e9ae4cb the multiple suboperator
    functionality was banned, but an example is remained in the docs.

commit b629b1412d
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Mon Nov 19 21:56:59 2018 +0100

    Fix CodeMirror on fake dom (#3547)

    * fix for #3547

    see https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty

    because of "strict mode" - the `parentNode` property may not be writable and causes an error in `fakedom.js` (appendChild)

    to reproduce: install CodeMirror, install "Tools for exploring internals of TW", open a heavy Tiddler like the Control-Panel in edit-mode, toggle preview on, switch to "parse tree" or "widget tree"

    * check for tw fakedom

commit eea034c32d
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Mon Nov 19 18:59:04 2018 +0100

    Docs: add state* documentation to button and reveal widgets (#3553)

    * docs: add state* attributes to reveal widget

    * docs: add state* attributes to button widget

commit f373d8f2bf
Author: Adrian Morosanu <morosanuae@yahoo.com>
Date:   Mon Nov 19 12:50:09 2018 +0200

    Tree macro - fix for double quotes (and other special characters) (#3552)

    * Added fixes for special characters (e.g. double quotes) (including @BurningTreeC and @Jermolene suggestions)
    * Removed a lot of redundant code
    * Set a default value for "tree" macro prefix parameter ($:/)

commit 4f78d3d81b
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Mon Nov 19 10:35:06 2018 +0100

    Fix untagged-pill popup position (#3550)

    this corrects the popup-position of the untagged-pill in the tag-manager, showing on top of the Tiddler, not below the pill

commit 72679d2041
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Sun Nov 18 21:58:03 2018 +0100

    Fix bad characters in the TagManager (#3549)

    now the tag manager needs some fixes for breaking titles, too

    - the `<<__variable__>>` syntax needs to be used
    - the `tag-pills` don't use the tag-pill macro, but `{{||$:/core/ui/TagTemplate}}` directly
    - some already sufficiently qualified states in the `iconEditor` macro are reduced to not use the `qualify` macro

commit 33ba69e852
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Sun Nov 18 21:57:04 2018 +0100

    Modals: Display in source-window (#3539)

    * Make modals display in source Window

    this makes modals display within the window where they got opened, with the parameter `rootwindow` that, if `yes` or `true`, shows the modal always in the root TW window (`<$action-sendmessage $message="tm-modal" $param="mymodal" rootwindow="yes|true"/>`)

    * pass the full event to $tw.modal.display

    we need the event there to find `srcDocument` and `srcWindow`

    * pass event in options object

    * update modal.js to use options.event

    * add docs for rootwindow tm-modal attribute

commit 3aae643e14
Author: Jermolene <jeremy@jermolene.com>
Date:   Sun Nov 18 19:31:53 2018 +0000

    Reveal widget with lazily loaded state tiddlers

    Fixes #3476

commit e983936c30
Author: Lioric <7177570+Lioric@users.noreply.github.com>
Date:   Sun Nov 18 14:19:10 2018 -0500

    Signing the CLA (#3477)

commit 849844be12
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Sun Nov 18 20:16:46 2018 +0100

    Add stateTitle stateField stateIndex attributes (#3529)

    * make triggerPopup optionally set state directly

    * update button widget for new state attributes

    * update reveal widget for new state attributes

    * fix errors in button widget

commit 2b6514ddc2
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Sun Nov 18 11:54:12 2018 +0100

    Use new state* attributes for  reveal and button widgets (#3531)

    * toc macros: use stateTitle and setTitle

    * tree macros: use stateTitle and setTitle

    * TagManager: use popupTitle, stateTitle setTitle

    * body viewtemplate: use stateTitle for folded-state

    * import-listings: use stateTitle and setTitle

commit ddc76622f2
Author: BurningTreeC <hypnotizedkangaroo@gmail.com>
Date:   Sun Nov 18 11:44:19 2018 +0100

    Remove sourceMappingUrl from hammer.js (#3535)

commit 882cad1a0d
Author: Bram Chen <bram.chen@gmail.com>
Date:   Sat Nov 17 21:48:31 2018 +0800

    Add chinese translations for Title/References (#3545)
2018-11-24 09:50:24 +00:00
bin Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
boot Added flag to $tw.utils.parseStringArray to allow non-unique entries (#2027) 2018-10-21 16:58:41 +01:00
core Pagescroller - get scroll pos in src window (#3561) 2018-11-21 11:32:22 +00:00
editions Squashed commit of the following: (#3571) 2018-11-24 09:50:24 +00:00
languages Add chinese translations for Title/References (#3545) 2018-11-17 13:48:31 +00:00
licenses Signing the CLA (#3477) 2018-11-18 19:19:10 +00:00
plugins/tiddlywiki Fix CodeMirror on fake dom (#3547) 2018-11-19 20:56:59 +00:00
themes/tiddlywiki Fix hover colour for textual editor toolbar buttons 2018-10-24 10:33:16 +01:00
.gitignore Ignore any node_modules directory 2015-12-19 18:47:58 +00:00
.jshintignore Ignore any node_modules directory 2015-12-19 18:47:58 +00:00
.npmignore Ignore any node_modules directory 2015-12-19 18:47:58 +00:00
contributing.md Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
license Readme updates 2018-05-12 11:46:54 +01:00
package.json Preparing for v5.1.18-prerelease 2018-05-12 12:31:10 +01:00
readme.md Readme updates 2018-05-12 11:46:54 +01:00
tiddlywiki.js Make require() compliant with CommonJS Modules/1.1 2013-10-12 13:44:09 -04:00

Welcome to TiddlyWiki, a non-linear personal web notebook that anyone can use and keep forever, independently of any corporation.

TiddlyWiki is a complete interactive wiki in JavaScript. It can be used as a single HTML file in the browser or as a powerful Node.js application. It is highly customisable: the entire user interface is itself implemented in hackable WikiText.

Learn more and see it in action at https://tiddlywiki.com/

Developer documentation is in progress at https://tiddlywiki.com/dev/

Installing TiddlyWiki on Node.js

  1. Install Node.js
    • either from your favourite package manager: typically apt-get install nodejs on Debian/Ubuntu Linux or Termux for Android, or brew install node on a Mac
    • or directly from http://nodejs.org
  2. Open a command line terminal and type:

    npm install -g tiddlywiki

    If it fails with an error you may need to re-run the command as an administrator:

    sudo npm install -g tiddlywiki (Mac/Linux)

  3. Check TiddlyWiki is installed by typing:

    tiddlywiki --version

  4. In response, you should see TiddlyWiki report its current version (eg "5.1.16"; you may also see other debugging information reported)
  5. Try it out:
    1. tiddlywiki mynewwiki --init server to create a folder for a new wiki that includes server-related components
    2. tiddlywiki mynewwiki --server to start TiddlyWiki
    3. Visit http://127.0.0.1:8080/ in your browser
    4. Try editing and creating tiddlers
  6. Optionally, make an offline copy:
    • click the save changes button in the sidebar, OR
    • tiddlywiki mynewwiki --build index

The -g flag causes TiddlyWiki to be installed globally. Without it, TiddlyWiki will only be available in the directory where you installed it.

If you are using Debian or Debian-based Linux and you are receiving a node: command not found error though node.js package is installed, you may need to create a symbolic link between nodejs and node. Consult your distro's manual and whereis to correctly create a link. See github issue 1434

Example Debian v8.0: sudo ln -s /usr/bin/nodejs /usr/bin/node

You can also install prior versions like this:

npm install -g tiddlywiki@5.1.13

Using TiddlyWiki on Node.js

TiddlyWiki5 can be used on the command line to perform an extensive set of operations based on TiddlyWikiFolders, TiddlerFiles and TiddlyWikiFiles.

For example, the following command loads the tiddlers from a TiddlyWiki HTML file and then saves one of them in static HTML:

tiddlywiki --verbose --load mywiki.html --rendertiddler ReadMe ./readme.html

Running tiddlywiki from the command line boots the TiddlyWiki kernel, loads the core plugins and establishes an empty wiki store. It then sequentially processes the command line arguments from left to right. The arguments are separated with spaces.

The first argument is the optional path to the TiddlyWikiFolder to be loaded. If not present, then the current directory is used.

The commands and their individual arguments follow, each command being identified by the prefix --.

tiddlywiki [<wikipath>] [--<command> [<arg>[,<arg>]]]

The available commands are:

Upgrading TiddlyWiki on Node.js

If you've installed TiddlyWiki on Node.js on the usual way, when a new version is released you can upgrade it with this command:

npm update -g tiddlywiki

On Mac or Linux you'll need to add sudo like this:

sudo npm update -g tiddlywiki

Also see

This readme file was automatically generated by TiddlyWiki