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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ment-0.2.5.tar.gz.
File metadata
- Download URL: ment-0.2.5.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-44-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34392fb637b57e07f0a0c47240edbc9ca57ad640deb0b4f9d55ca6ff6d9eec40
|
|
| MD5 |
f5f8641d9ef356b450d194ebe0752d59
|
|
| BLAKE2b-256 |
abd7048a5f1960d7395da3e041618f63d1981461ac748ff32a5df53216b21e1d
|
File details
Details for the file ment-0.2.5-py3-none-any.whl.
File metadata
- Download URL: ment-0.2.5-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-44-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
078966c30f6dc91d8af205d0aec7f6688f9acfed1726c864bdfe3d8ea1fbf3a3
|
|
| MD5 |
e74e27c142f5e8b8f1c42c168bc7882c
|
|
| BLAKE2b-256 |
d0d69aa723194fb6fb7126206bcfe266b92530063f3d08a980c61f17d56a8cac
|