GithubHelp home page GithubHelp logo

ment's Introduction

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

ment's People

Contributors

kawagh avatar

Stargazers

 avatar

Watchers

 avatar

ment's Issues

m -synthe

日付ごとに記録されているマークダウンのタグ基準で日付を跨いで合成する

コードブロック中のコメント文判定

問題

print("python")
# この行のようなコードブロック中の#から始まるコメントがタグとして認識されてしまう

対応策

  • コードブロックの目印である```の個数を数えて#から始まる行がコードブロックの内部か否か判定する

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.