Dediggefedde on DeviantArthttps://www.deviantart.com/dediggefedde/art/Dev-Note-Search2-409616005Dediggefedde

Deviation Actions

Dediggefedde's avatar

Dev_Note_Search2

By
Published:
11.5K Views

Description

With this userscript, you can search within your notes.
After indexed, searching is finished within seconds.

How to install:


Link: phi.pf-control.de/userscripts/…
This script will work in

  •    Firefox + Greasemonkey
  •    Chrome + Tampermoneky
  •    Opera + Violentmonkey
  •    Safari + Tampermonkey

For a detailed instruction, see my manual:
dediggefedde.deviantart.com/jo…

How to use


After you installed the script, the "Search"-Tab should appear within your Notes-menu.
Clicking it will make the search form appear.
On the first time there should be the text
'No notes fetched so far! Press "Index Notes"! '
on the far right.

Click "Index Notes" for a full scan of the currently selected folder! This may take a little time (Firefox: around 70 Notes/s, Chrome around 90 Notes/s; e.g. 380 Notes in Firefox takes around 5s)

You can break indexing by leaving the site any time! The script will ask you on your next visit, if it should continue indexing.

If you already have your Notes indexed, you can click on "Check Notes" to add all notes cou got since the last scan.

Now you are ready to search by inserting text into the search fields and press enter or the "Search" button.
For a more detailed explaination how to search, so the "How to search" section!

Clicking on a search result will show you the regarding Note! If you want to mark or delete it, please use the buttons at the bottom of the note!

You can also click on the result's header to sort through the results! Another click will revert the order.

Please Note that the Date will be displayed according to your computer's language-setting (for me that's German, so I got a Mittwoch instead of Wednesday).

How to search


Searching Title/Author and Text works slightly different:

Title/Author:
If you type single words, they will be searched OR connected. That means
Title: contest help
Will search all Notes where there is contest OR help within the Title.
Capital letters are treated like smaller ones.
The words themselves are a CONTAIN request: Notes like flowercontest or contesthelp will also match.

Text:
Searching in Text is a FULLWORD search: contest will only match my little contest here and not contesthelp or "flowercontest".

To change that, there are a couple of operators: - + " *.

To make it a CONTAIN-Search, you can simple add a * at the end or the beginning of a word:
contest* will match contest as well as contesthelp. *test* will match contest as well as testresult or contestresult.

Making a group of words AND connected, just prepend a + before the word:
+contest +result will only match Notes that contain contest AND result
Adding words without a + will add their matches to the AND-result:
+contest flower +result will match notes that only contain contest AND result, but also Notes with flower

The NOT-Operator is easy to understand: prepend a - and matching results won't be shown.
contest -flower will show all Notes with contest but only if they don't contain flower!

Quotes can be used to protect spaces/word groups.
"flower contest" will match only Notes that actually contain flower contest.
This will internally first search without quotes and then make a fulltext-check to remove unwanted notes.
That's why you some results for quote-searches will vanish after a second.

Combining will work like this:
+"flower *test*" +*result -help "no concern"
This will match Notes that have something like flower contesthelp AND testresult within them, but not help! contesthelp is fine as the help is not alone here. additionally Notes where no concern is part of will also be shown.

But I guess in most cases, single word searches or using + and * will be fine for you.

Thanks goes to


  • You of course! I keep wanting to use my scripts and I keep on getting requests to repair the old version of this script!
  • zio-san had a really nice idea how to improve the data-structure to index notes! As Browsers are limitting stored values to 5 Mbyte, I had to think of a ncie solution here. With making a list of words pointing to the containing note-ids, 500 Notes only take around 200 kbyte, increasing better than linear...
  • ChinZaPep and NightsCrimson for spontan beta-testing: I wrote the script within 3 days and had another 5 days beta-testing with a lot of updates.^^

Update-Log


2013-10-26, v1.00: script published
Image size
1261x1081px 444.39 KB
© 2013 - 2024 Dediggefedde
Comments221
Join the community to add your comment. Already a deviant? Log In
EnjoyerOfNovelVisual's avatar

The note index went smoothly until I reloaded the page. Now everytime I try to continue indexing, the page crashed with intensifying scan messages like this: Is there anything I can do to properly reset the tampermonkey function? I uninstalled tamper, uninstalled the program, and tried messing with the editor on separate occasions. Nothing worked.

Screenshot 2023-01-04 10.19.48 PM