manage contacts with plain text files + sqlite db (they work together).

made by dave @ ratfactor:

commands

  • addrbook list: list all contacts
  • addrbook add $EMAIL $NAME: both vars optional, can be added in the entry manually. opens in $EDITOR (micro)
  • addrbook view $EMAIL_OR_ID: view by email or ID (find through list)
  • addrbook edit $EMAIL_OR_ID: open entry in $EDITOR

aerc integration

only works when viewing an email, and that only selects the first sender address if there’s more than one.

  • aa: shortcut for addrbook add $EMAIL
  • ae: shortcut for addrbook edit $EMAIL
  • av: shortcut for addrbook view $EMAIL

misc

file locations

binary & all files: $HOME/.local/addrbook. set in ~/.bashrc

TODO: how do i sync the db… syncthing or git????

things i want from addrbook

it’s just a small ruby script so in theory i can edit it, but i don’t really know SQL??

  • when listing entries, i want a column for phone numbers. half of my contacts don’t have emails but do have phone numbers.