#notes #wiki #command-line #clipboard #cli

bin+lib wiki-o

智能笔记命令行应用程序

1 个不稳定版本

0.1.0 2024 年 3 月 21 日

#2243命令行工具

GPL-3.0-only

25KB
388

test trivy clippy License

wiki-o

智能笔记命令行应用程序

用法

实现的命令

$ wo --help
Smart note taking cli app

Usage: wo [COMMAND]

Commands:
  add     Add note
  show    Show files with similar name
  list    List all notes
  delete  Delete a note
  purge   Purge all notes
  pa      Piped add note
  config  Show wiki-o configuration
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

显示配置

$ wo config

Current configuration:

notes directory: wiki-o/notes
metadata directory: wiki-o/_metadata
file format: md

添加笔记

$ wo add "hello world"
Added hello world to my_notes

$ wo add "another note" -f=new_file
Added another note to new_file

列表

$ wo list
File: <home_dir>/wiki-o/.notes/new_file.md

another note


File: <home_dir>/wiki-o/.notes/my_notes.md

hello world
$ wo list -s=true
File: <home_dir>/wiki-o/.notes/new_file.md
File: <home_dir>/wiki-o/.notes/my_notes.md

删除

$ wo delete -f=my_notes
Deleted file: <home_dir>/wiki-o/notes/my_notes.md

清除

$ wo purge
Deleted directory: <home_dir>/wiki-o/notes

配置

默认情况下,配置文件位于 ~/.config/wiki-o

# config.toml
notes_dir = "wiki-o/notes"
metadata_dir = "wiki-o/_metadata"
file_format = "md

管道命令

您可以通过 添加 命令,也可以将您从其他命令中获得的输出直接通过管道输入到 wiki-o 并保存为笔记

$ echo 'hello world' | wo pa

added hello world to my_notes

$ echo 'hello world' | wo pa -f=new_file

added hello world to new_file

当然,您也可以将 wiki-o 命令的输出通过管道传输

$ wo show -f=new_file > new_file.txt
$ cat new_file.txt
File: new_file.md

hello world


路线图

即将推出的功能和错误修复可以在 此处 找到。

许可证

GNU 通用公共许可证 v3.0 下由 @doriancodes 发布。

依赖项

~1–12MB
~83K SLoC