项目作者: illis

项目描述 :
Address book query tool for Mutt
高级语言: Haskell
项目地址: git://github.com/illis/hbook.git
创建时间: 2017-02-10T00:42:16Z
项目社区:https://github.com/illis/hbook

开源协议:Other

下载


hbook - an address book query tool for Mutt

Features

  • Will take a search query & vcard file and return a mutt alias.
  • Results are sorted by the fuzzy search filter.

Installation

Use stack:

  • stack init
  • stack install

Usage

  1. hbook-exe -q %search-query% -m %min-search-score% -f %vcard-filename%
  • search-query - your search parameter
  • min-search-score - a value between 0 (lowest match) & 5 (highest match)
  • vcard-filename - location of your vcf file

Example usage with mutt

In your muttrc file:

  1. set query_command = "hbook-exe -q '%s' -m 3 -f contacts.vcf"

Then when you hit ctrl-t when entering an address, it should pop you up with a list.

Caveats

  • Originally written to learn some haskell and play around with megaparsec & hspec. Constructive criticism is welcome.
  • Not currently a complete vcard implementation.
  • Willing to make tweaks if it doesnt work for you

References