Jump to content

MacHu-GWU

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by MacHu-GWU

  1. 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" }
  2. 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?
  3. 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?
×
×
  • Create New...