GithubHelp home page GithubHelp logo

bimlas / tw5-highlight-searched-text Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 1.0 2.76 MB

TiddlyWiki plugin: Highlight the keywords of search input, "find in page" for Android and TiddlyDesktop

Home Page: https://bimlas.github.io/tw5-highlight-searched-text

JavaScript 100.00%
tiddlywiki5 tiddlywiki-plugin search highlight markjs

tw5-highlight-searched-text's Introduction

Highlight searched text plugin for TiddlyWiki 5

For details, see the demo page.

How to install?

Drag-n-drop

  • Open the demo page

  • Drag-n-drop the plugin tiddler in to your wiki

Download as JSON

Copy to directory based (Node.js) wiki

  • Clone or download this repository

  • Copy the plugins directory to the root directory of your wiki

tw5-highlight-searched-text's People

Contributors

bimlas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zhangaz1

tw5-highlight-searched-text's Issues

report error in node.js

hello,bimlas :

this script is outupdated , report error in node.js ,can you fix it ?


internal JavaScript Error

Well, this is embarrassing。 It is recommended that you restart TiddlyWiki by refreshing your browser

Uncaught TypeError: Cannot read properties of null (reading 'removeChild')

Research Tiddly Wiki

Hi,

I come across a beautiful research tiddly wiki - https://postkevone.github.io/tiddlyresearch/
I dragged and dropped your highlight tiddly wiki plugin which is very easy for me to navigate but it doesn't work in the above

Could you please give a try and let me know if i am missing anything or anything to be changed?

Thanks

[enhancement] Highlight text contained in different classes

By default the plugin highlights only the text contained in the class tc-story-river
What do I need to change in $:/plugins/bimlas/highlight-searched-text/update-highlighting.js so that the text contained in tc-sidebar-scrollable gets highlighted aswell?

if(!markInstance) markInstance = new Mark(document.getElementsByClassName("tc-story-river")[0]);

[bug] search button for small screen shows on print

Maybe you know a better way of doing it in your plugin, but this works.

To hide the search button on prints, I have added the class no-print to $:/plugins/bimlas/highlight-searched-text/buttons/show-toolbar

and added this to your sylesheet $:/plugins/bimlas/highlight-searched-text/stylesheet

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}

$__plugins_bimlas_highlight-searched-text_stylesheet.txt
$__plugins_bimlas_highlight-searched-text_buttons_show-toolbar.txt

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.