/QnA

A questions and answers program for personal use

Primary LanguageMakefileMIT LicenseMIT

QnA

QnA is a program to ask questions and keep track of found answers.

But why?

Did you ever have the situation that one day, you had a super interesting question, or a some awesome shower thought, but didn't have the time to pursue the search for an answer immediately? Then, the next day, you barely remember the question, only knowing that it was super interesting?

QnA allows you to quickly write down the question, while you still remember it, and to answer it later. (This effectively makes QnA a very simple digital notebook.)

Dependencies

Build

This has only been tested on x86_64 Linux so far. If problems arise during build, please don't hesitate to bug me!

Type make.

To install, type make install (might require root privileges).

Usage

Syntax: qna <question>
	qna <question-id> <answer>
	qna list
	qna show <question-id>

<question> and <answer> are plain text like "What was Japanese history like?" and "Lots of Samurais, I guess."

<question-id> can be the full question, or the beginning of its hash as displayed at qna list.

The questions are stored at $QNA_STORAGE. If this environment variable is not set, QnA will default to $HOME/.qna_storage.

qna show also checks $QNA_PAGER for any pager where the question and its answers will be displayed. By default, the output is simply printed to screen, without any pager.