Skip to content

Simple JS script for the Notable application that allows you to find a search phrase in the current document

Notifications You must be signed in to change notification settings

DevTomek-pl/Search-Text-Plugin-for-Notable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Search Text Plugin for Notable

Search Text Plugin for Notable is a simple JS script for the Notable application that allows you to find a search phrase in the current document.

Image

Installation

Run the Notable application and enable the Developer Tools Help -> Toggle Developer Tools. Then switch to the Console tab and run one of the following scripts.

JS script should be executed each time the application is started. If you don't want to copy the script every time, you can use this tip: Re-run expressions from history.

Load from remote source (recommended)

(async function () {
  let response = await fetch('https://raw.githubusercontent.com/DevTomek-pl/Search-Text-Plugin-for-Notable/master/search-text-plugin-for-notable.js');
  let script = await response.text();
  eval(script);
})();

Load from local source (optional)

var script = document.createElement('script'); 
script.src = 'file:///{PATH_TO_PLUGIN}/search-text-plugin-for-notable.js'; 
document.body.appendChild(script);     

Shortcuts

  • Ctrl + Shift + F - find
  • Enter - find next

Known missing features

  • Searching in the edit mode is not possible, because the content is rendered partially (Just-in-time compilation)

Changelog

v0.1.1

  • Added keyboard shortcut to find text
  • Implemented clear result functionality

v0.1.0

  • First release

References

  • markjs.io - JavaScript keyword highlighter. Search term highlighting intended for every use case. Can be used with plain JavaScript or as jQuery plugin.

About

Simple JS script for the Notable application that allows you to find a search phrase in the current document

Resources

Stars

Watchers

Forks

Packages

No packages published