MacHu-GWU
-
Posts
4 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by MacHu-GWU
-
-
This project is published on GitHub , the full document and download can be found here: https://github.com/MacHu-GWU/afwf_fts_anything-project
fts.anything is an Alfred Workflow allow you to custom full-text search on your own dataset. You can easily define which fields you want to search, how you want the data to be matched and send the result to other workflow to process.
Example:
The Data Set (IMDB Top 3 movies, content of ``movie.json``):
[ { "description": "Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency.", "genres": "Drama", "movie_id": 1, "title": "The Shawshank Redemption" }, { "description": "The aging patriarch of an organized crime dynasty transfers control of his clandestine empire to his reluctant son.", "genres": "Crime,Drama", "movie_id": 2, "title": "The Godfather" }, { "description": "The early life and career of Vito Corleone in 1920s New York City is portrayed, while his son, Michael, expands and tightens his grip on the family crime syndicate.", "genres": "Crime,Drama", "movie_id": 3, "title": "The Godfather: Part II" } ]
Search Setting (content of ``movie-setting.json``):
{ "columns": [ // define search mode for each field { "name": "movie_id", "type_is_store": true }, { "name": "title", "ngram_maxsize": 10, "ngram_minsize": 2, "type_is_ngram": true }, { "name": "description", "type_is_phrase": true }, { "keyword_lowercase": true, "name": "genres", "type_is_keyword": true } ], "title_field": "title", // title on Alfred drop down menu "subtitle_field": "description", // subtitle on Alfred drop down menu "arg_field": "movie_id", // argument for other workflow component "autocomplete_field": "{movie_id} - {title}", // tab auto complete behavior "icon_field": "/Users/<username>/.alfred-fts/movie-icon.png" }
-
For example, if we got a file `~/Documents/test.txt`
Then `open doc test` will NOT match this. And neither the `open test doc`.
Anyone have idea how to allow that?
-
For example: an item `hello world`.
- `hel wor` would match
- but `wor hel` not match
but for File Filter, both query would match.
Anyone have an idea how to allow List Filter to match arbitrary order?
Search across Cloud Platforms
in Share your Workflows
Posted
Agreed