Skip to main content

python library to write daily log in markdown quickly and to synthesize daily logs based on category

Project description

ment

What is this?

ment is a tool to

  • write daily logs in markdown quickly

  • synthesize daily logs based on category

    Synthesizing daily logs is like sorting loose-leaf notebook.

image

Installation

pip install ment

Usage

start editting

m

Type m<Enter>.

Default,it means vim ~/ment_dir/<todays_date>/diary.md If you want to switch editor, look configuration

synthesize by tag

m synthe <tag_name>

Then, it extracts contents followed by "# <tag_name>" from daily logs, and outputs ~/ment_dir/synthe/<tag_name>/synthe_<tag_name>.md.

If you want to list tags,m list.

To synthesize recent 7days document,m week. It outputs ~/ment_dir/synthe/week/synthe_week.md.

To read synthesized documents,m read <tag_name>.

To update already synthesized documents, m update.

configuration

If you want to change editor and directory, please set environment variable.

export MENT_DIR="/path/to/documents" 
export MENT_EDITOR="your editor"

Default,MENT_DIR is ~/ment_dir/

directory structure

~/ment_dir/
├── 2021-03-27
│   └── 2021-03-27.md
├── 2021-03-28
│   └── 2021-03-28.md
├── 2021-03-29
│   └── 2021-03-29.md
├── 2021-03-30
│   └── 2021-03-30.md
└── synthe
    ├── tag1
    │   └── synthe_tag1.md
    ├── tag2
    │   └── synthe_tag2.md
    ├── tag3
    │   └── synthe_tag3.md
    └── weeks.md

completion

bash-completion file for ment is bash_completion_for_ment.

cat bash_completion_for_ment >>  ~/.bash_completion
source ~/.bashrc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ment-0.2.4.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

ment-0.2.4-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page