项目作者: grncdr

项目描述 :
Add reminders for yourself in directories
高级语言: Rust
项目地址: git://github.com/grncdr/mmr.git
创建时间: 2018-03-16T23:55:00Z
项目社区:https://github.com/grncdr/mmr

开源协议:MIT License

下载


mmr

What it is

mmr is a little CLI tool that reads a .mmr file in your current directory. If the file exists and hasn’t been modified in a while, it will print it out. You can control how much is printed, and how long “a while” is with some command line arguments (run mmr -h to see what’s available). Running mmr with no arguments will open the .mmr file in your current directory (regardless of whether it exists) in your $EDITOR.

Install it

For now just git clone and cargo install. Real releases later maybe?

Use it

Recommended usage is to run mmr remind before displaying your command prompt. This will cause mmr to automatically print reminders you haven’t seen recently as you cd around the file system.

bash

Add this in your .bashrc or .profile or whatever (I still can’t remember which files bash will use when):

  1. PROMPT_COMMAND="mmr remind; $PROMPT_COMMAND"

zsh

Add this in your .zshrc (or .profile etc):

  1. precmd() {
  2. mmr remind
  3. }

If you already have a precmd, put mmr remind near the start.

Other commands

  1. mmr 0.1
  2. Stephen Sugden <me@stephensugden.com>
  3. Leave reminders for yourself in directories
  4. USAGE:
  5. mmr [FLAGS] [SUBCOMMAND]
  6. FLAGS:
  7. -h, --help Prints help information
  8. -r, --recursive Recursively search for .mmr file up to the root of the
  9. filesystem instead of only the current directory.
  10. -V, --version Prints version information
  11. SUBCOMMANDS:
  12. add Append a line to the .mmr file, creating it if necessary.
  13. edit Open the .mmr file in your $EDITOR
  14. help Prints this message or the help of the given subcommand(s)
  15. print Print the contents of the .mmr file regardless of it's age
  16. remind Check for a .mmr file and print the contents if it's old enough

Acknowledgements

This idea came from @mntmn, I was bored and I liked it so here we are.