Search Plugin #26

Open
opened 4 months ago by Alamantus · 5 comments
Owner

People coming from TiddlyWiki who hear about Feather Wiki are apparently distressed to find that there is no search functionality, so getting a plugin that adds simple search for those who can't live without it would be awesome.

People coming from TiddlyWiki who hear about Feather Wiki are apparently *distressed* to find that there is no search functionality, so getting a plugin that adds simple search for those who can't live without it would be awesome.
Alamantus added the
help wanted
extension
labels 4 months ago
Alamantus added this to the 1.3.0: Extension Update milestone 4 months ago
Poster
Owner

A very basic version of this has been added to the repository as an example in the extensions folder for version 1.3.0, but I know it can be improved upon so I'm leaving this open for now.

A very basic version of this has been added to the repository as an example in the `extensions` folder for version 1.3.0, but I know it can be improved upon so I'm leaving this open for now.

I liked the search. But it pulls stuff from a CDN ~22KB. I'll keep a lookout on small search libs.

This is also around 20kb:
https://lucaong.github.io/minisearch/
http://elasticlunr.com/

I really doubt that there are tiny search libs...

Edit: Note for Search Extension Hackers:

This could be a good starting point:

https://github.com/bevacqua/fuzzysearch

Fuzzy search at 1kb - hacking needed to make it work with FeatherWiki

I liked the search. But it pulls stuff from a CDN ~22KB. I'll keep a lookout on small search libs. This is also around 20kb: https://lucaong.github.io/minisearch/ http://elasticlunr.com/ I really doubt that there are tiny search libs... Edit: Note for Search Extension Hackers: This could be a good starting point: https://github.com/bevacqua/fuzzysearch Fuzzy search at 1kb - hacking needed to make it work with FeatherWiki
Poster
Owner

@trholding Yeah, I'm not super concerned with its size since it's an extension. It's more to demonstrate that it's possible to do while also kind of showing why it's not in the core of the app. Of course, if there is something small, then I can use that instead!

I am a little bit tempted to just use what I used for another app I made—a crazy simple regular expression matcher. But I also wanted to show off what extensions were capable of for Feather Wiki, i.e. loading external libraries to use.

@trholding Yeah, I'm not super concerned with its size since it's an extension. It's more to demonstrate that it's possible to do while also kind of showing why it's not in the core of the app. Of course, if there _is_ something small, then I can use that instead! I _am_ a little bit tempted to just use what I used for another app I made—a crazy simple regular expression matcher. But I also wanted to show off what extensions were capable of for Feather Wiki, i.e. loading external libraries to use.

Oh cool. I am really like the extensions and that its there so soon! True that a demo was needed and search was a much wanted and great choice.

But if you really like the idea of tiny search, I'd love to see your simple regex search implemented.

When I use search on Tiddlywiki, I just look at the titles. I really don't care what's the content.

I think most people when they make notes they give appropriate titles. Its only when you have a more than a dozen of pages that you need search.

A logic like this would be sufficient:

1. Have all page titles in an array
2. As I type in search, short list the titles in array
3. Click on an item, it leads to page

Very simple, elegant, quick, very FeatherWiki feel!

I think that can be done in very less code size.

Oh cool. I am really like the extensions and that its there so soon! True that a demo was needed and search was a much wanted and great choice. But if you really like the idea of tiny search, I'd love to see your simple regex search implemented. When I use search on Tiddlywiki, I just look at the titles. I really don't care what's the content. I think most people when they make notes they give appropriate titles. Its only when you have a more than a dozen of pages that you need search. ``` A logic like this would be sufficient: 1. Have all page titles in an array 2. As I type in search, short list the titles in array 3. Click on an item, it leads to page Very simple, elegant, quick, very FeatherWiki feel! ``` I think that can be done in very less code size.
Poster
Owner

I do like the idea of that behavior with the search results dropping down from the search bar itself! Maybe I'll try a different "Feather Wiki-style" search bar that behaves as you describe using my old search code and see how small I can make it.

I do like the idea of that behavior with the search results dropping down from the search bar itself! Maybe I'll try a different "Feather Wiki-style" search bar that behaves as you describe using my old search code and see how small I can make it.
Alamantus removed this from the 1.3.0: Extension Update milestone 4 months ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Reference: Alamantus/FeatherWiki#26
Loading…
There is no content yet.