Git Product home page Git Product logo

twfusejs's Introduction

TwFsuesj Plguin rfo TidyWiiki5

TwFusejs brings fuzzy searching to TiddlyWiki 5, powered by Fuse.js.

On purpose, this TwFusejs plugin is not a one-size-fits-it-all fuzzy search plugin covering all bases. Instead, this is "just" a lightweight solution on purpose, and thus has some limitations in terms of speed and functionality. On the plus side, this plugin avoids having to calculate and maintain a dedicated search index.

Stock Pedantic Search Fuzzy Search
Stock Fuzzy

NPM Module

Use it as the NPM package tw5-fusejs in your own TiddlyWiki development projects (please note: no more --save necessary with more recent npm versions):

$ npm install tw5-fusejs

Create Release Files

Clone the TwFusejs repository on GitHub, then install the required Nodejs modules, and finally create the release files:

$ git clone https://github.com/TheDiveO/TwFusejs
$ cd twfusejs
$ npm install
$ npm run release

The release files (TwFusejs.tid plugin and demowiki.html) are located in the release/editions/output subdirectory inside the repository root.

Simply drag and drop the plugin TwFusejs.tid file into your own TiddlyWikis. Or test drive the plugin by navigating to the demowiki.html file.

Hack the TwFusejs Plugin

Clone this repository, then install the required dependencies via npm install. And start mucking around:

$ npm run develop

...and then navigate your browser to http://localhost:8080.

twfusejs's People

Contributors

thediveo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zhangaz1

twfusejs's Issues

Fuzzy results showing under List, List results showing under Fuzzy

Capture
Quick demo image, I have the extended search syntax enabled for the screenshot but the issue remains either way. If I click over to Fuzzy it says 0 matches. With the plugin disabled or uninstalled the same search instead gives 0 matches under List.

Quick edit with some information to confirm this isn't just a visual issue with my theme highlighting the wrong tab. I checked this tiddler: $:/state/search/currentTab
and it contains $:/core/ui/DefaultSearchResultList when the highlighted tab is as in my screenshot.

Doesn't seem to work

Using single file TW5, no results are returned for words typed exactly as they appear in the tiddler

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.