Spend time with the people you care about. Introvert-tested. Extrovert-approved.
Spend time with the people you care about. Introvert-tested. Extrovert-approved.
friends is a volunteer project. If you find it valuable, please consider
making a small donation () with the Sponsor button at the top of this page
to show you appreciate its continued development.
friendsSpend time with the people you care about. Introvert-tested. Extrovert-approved.
NOTE: Participation is encouraged! Make issues, ask questions, submit pull requests (even if it's your first time contributing to open-source—you'll get lots of help), and give feedback! This project is very much alive!
friends is a command-line program that helps you to keep track of your relationships with the
people you care about.
friends gives you:
Its philosophy emphasizes:
friends is
very much open to new ideas. Please
contribute!friends will figure it out.$ gem install friendsEasy, huh?
To make its output easier to view and work with, friends "pages" its output.
This means that when it has a lot to print it will let you scroll up or down
in your terminal to view all of it.
By default, friends tries to use the less -RFX command for paging, which should
be available on most systems, and if that is not available falls back to simply
printing the output. However, you can set a different pager by setting the FRIENDS_PAGER
environment variable. If you have less
version 530 or later
we recommend using
this instead:
FRIENDS_PAGER="less -RF"friends is structured around several different types of things:
John, Grace Hopper)Paris,
Martha's Vineyard)@exercise:running, @school, @science:indoors:agronomy-with-hydroponics)John and Jane got engaged.)The friends.md Markdown file that stores all of your data contains:
### Locations:
- Atlantis
- Martha's Vineyard
- Paris### Friends:
- George Washington Carver
- Grace Hopper (a.k.a. The Admiral a.k.a. Amazing Grace) [Paris]
- Marie Curie [Atlantis]### Activities:
- 2018-11-01: **Grace Hopper** and I went to _Martha's Vineyard_. George had to cancel at the last minute.
- 2018-01-04: Got lunch with **Grace Hopper** and **George Washington Carver**.
- 2017-12-31: Celebrated the new year in _Paris_ with **Marie Curie**.
- 2017-11-15: Talked to **George Washington Carver** on the phone for an hour.### Notes:
- 2018-06-15: **Grace Hopper** found out she's getting a big Naval Academy building named after her. @navy
- 2017-06-06: **Marie Curie** just got accepted into a PhD program in _Paris_. @schoolSee the example
friends.md
file for more information.
friends supports several global flags that can be used on any command when
specified before the name of the command, like: friends [flags] [command].
These flags are:
--colorless: Disable output colorization and other effects.--debug: Debug error messages with a full backtrace.--filename: Set the location of the friends file to use (default: ~/friends.md).$ friends --filename ./test/tmp/friends.md clean
File cleaned: "./test/tmp/friends.md"--quiet: Quiet output messages.$ friends --quiet add activity Went rollerskating with George.
$ # No output!In addition, these flags may be used without any command:
--help: Show the help menu. This is equivalent to friends help.
Help menus are available for all levels of commands:$ friends --help$ friends list --help$ friends list activities --help--version: Show the friends program version.Wouldn't it be nice to be able to use friends across all of your
devices? Hooray, you can! Just put the friends.md file in your
Dropbox/Box Sync/Google Drive/whatever folder and use the
--filename flag. You can even set up a Bash/Zsh/whatever alias to
do this for you, like so:
alias friends="friends --filename '~/Dropbox/friends.md'"Though friends has no built-in reminder functionality, it's easy to use a
system like cron (Mac or Linux) or Task Scheduler (Windows) to set various
reminders.
For example, on a Mac, the following crontab configuration results in every day
at 9:00 p.m. a Terminal tab opening, printing "Time to journal!" and then launching
an add activity prompt through friends:
0 21 * * * osascript -e 'activate application "Terminal"' &> /dev/null && osascript -e 'tell application "Terminal" to do script "clear && echo Time to journal! && friends add activity"' &> /dev/nullHere's another example (also for Mac) of using friends to suggest some people to
hang out with every Saturday morning:
0 10 * * 6 osascript -e 'activate application "Terminal"' &> /dev/null && osascript -e 'tell application "Terminal" to do script "clear && echo Consider hanging out with one of these friends today: && friends suggest"' &> /dev/null(If you use other tools, please share and we'll add to these examples!)
*Note that the command-line output is colored, which this README cannot show.
add activity$ friends add activity Got lunch with Grace and George.
Activity added: "2018-01-04: Got lunch with Grace Hopper and George Washington Carver."friends will automatically figure out which "Grace" and "George" you're referring to, even if you're friends with lots of different Graces and Georges.
Nicknames will be used to match friends in activities, just like formal names:
$ friends add activity Invented debugging with The Admiral.
Activity added: "2017-01-06: Invented debugging with Grace Hopper."You can also use the first initial of a last name instead of the whole thing.
friends will figure out what to do with those pesky periods (if you include
them) based on whether you're in the middle of a sentence or not:
$ friends add activity Got lunch with Earnest H and Earnest S. in the park. Man, I like Earnest H. but really love Earnest S.
Activity added: "2017-05-01: Got lunch with Earnest Hemingway and Earnest Shackleton in the park. Man, I like Earnest Hemingway but really love Earnest Shackleton."And locations or their aliases will be matched as well:
$ friends add activity Went swimming near atlantis with George.
Activity added: "2017-01-06: Went swimming near Atlantis with George Washington Carver."
$ friends add activity Had lunch in nyc with George.
Activity added: "2017-01-06: Had lunch in New York City with George Washington Carver."Tags will be colored if they're provided (though this README can't display color so you'll just have to have faith here):
$ friends add activity The office softball team wins a game! @work @exercise:sports
Activity added: "2017-05-05: The office softball team wins a game! @work @exercise:sports"You can of course specify a date for the activity:
$ friends add activity Yesterday: Celebrated the new year with Marie.
Activity added: "2017-12-31: Celebrated the new year with Marie Curie."Or get an interactive prompt by just typing friends add activity, with or without a date specified:
$ friends add activity 2018-11-01
2018-11-01: Natural-language dates work just fine:
$ friends add activity last Monday
2017-03-07: You can escape the names of friends you don't want friends to match with a backslash:
$ friends add activity "2018-11-01: Grace and I went to \Martha's Vineyard. \George had to cancel at the last minute."
Activity added: "2018-11-01: Grace Hopper and I went to Martha's Vineyard. George had to cancel at the last minute."And if an activity contains friends or locations you haven't yet added, you can simply
denote them with the signifiers found in the friends.md file (**s around friends,
and _s around locations), and friends will automatically add the friends or locations
that are missing:
$ friends add activity "2018-11-01: I got to meet **Oprah Winfrey** in _Chicago_ today."
Activity added: "2018-11-01: I got to meet Oprah Winfrey in Chicago today."
Friend added: "Oprah Winfrey"
Location added: "Chicago"This is really handy for when you have an activity involving a friend or location that you can't remember if you've already added. Just use the signifiers and they'll be added if necessary!
When an activity includes the phrase to _LOCATION_ (e.g., Took a plane to _Paris_), all future activities tha
No open issues yet, or sync has not completed.