#命令行 #笔记 #笔记 #Markdown #工具 #CLI #删除

程序+库 rmemo

快速在命令行上记笔记的工具

22 个版本

0.3.2 2019 年 10 月 15 日
0.3.1 2019 年 7 月 1 日
0.3.0 2019 年 6 月 15 日
0.2.6 2019 年 3 月 9 日
0.2.0 2018 年 11 月 24 日

#2481命令行工具

Download history 1/week @ 2024-03-26 36/week @ 2024-04-02 59/week @ 2024-07-02

每月 59 次下载

自定义许可

9MB
729 代码行

CircleCI crate-name at crates.io

rmemo

rmemo 是一个在命令行上快速记笔记的工具

demo

安装

使用 cargo

cargo install rmemo

使用 homebrew

brew tap k-nasa/homebrew-rmemo
brew install rmemo

用法

USAGE:
    rmemo [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    config    Edit config file
    delete    Delete memos
    edit      Edit memo
    grep      Grep memos
    list      Show memos list
    new       Create new memo
    serve     start http server
    help      Prints this message or the help of the given subcommand(s)

用法示例

创建新笔记

$rmemo new
Title:

如果已设置模板,则根据模板创建笔记

$rmemo new -t
Title:

删除与参数模式匹配的文件名对应的笔记

rmemo delete hoge
hoge
2018-10-15hoge.md
2018-10-12hoge.md
2018-10-08hoge.md
Will delete those entry. Are you sure?
Are you sure?(y/n) :

配置

memos_dir = "~/.config/rmemo/memos"            # Directory where note is stored
editor = "vim"                                 # The editor you want to use. I recommend vim for no particular reason
selector = "fzf"                               # Selector you want to use. Please choose your favorite one
grep_command = "grep"                          # Set your favorite grep
template_file_path = ""                        # Set the template you want to use
enter_time_in_filename = true                  # Set it to false if timestamp is not required for file name

依赖项

~23–36MB
~587K SLoC