#memo #note #local-server #content #http-server #cli #setup

app memocr

A simple note management tool. It has the ability to create, edit (using Vim), delete, list, and view contents. You can also set up a local server and preview markdowns in a browser

3 releases

0.2.2 Nov 15, 2022
0.2.1 Nov 7, 2022
0.2.0 Nov 7, 2022

#1898 in Command line utilities

21 downloads per month

Custom license

42KB
889 lines

memocr

コマンドラインで簡易的にメモを管理できるツールです.

概要

Vim の他, 好きなエディタを用いてメモを編集できます.

メモを作成すると yaml 形式の frontmatter ブロックが自動で生成され, これを含んだマークダウンとして書くことを想定しています. http サーバーを起動してマークダウンのプレビューを行うこともできます.

設定ファイルはデフォルトで${HOME}/.rustmemorcに作成されます. デフォルトで${HOME}/rustmemostorageディレクトリが作成され, そこにメモがテキストファイルで保存されます.

開発環境

  • macOS Big Sur 11.6
  • WSL2 Ubuntu 20.04.5 LTS

インストール

cargo install memocr

コマンド

A simple note management tool.
It has the ability to create, edit (using Vim), delete, list, and view contents.
You can also set up a local server and preview markdowns in a browser.

Usage: memocr <COMMAND>

Commands:
  new     Create a new file
  list    List memo in storage
  edit    Edit a memo
  view    Browse a memo
  remove  Remove a memo from storage
  grep    Searching the contents of a file with the `grep` command
  copy    Copy the specified memo file to current directory
  serve   Set up a simple local http server. Default port is 8190 (configurable)
  info    Display information about this app
  help    Print this message or the help of the given subcommand(s)

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

http サーバー機能

serveサブコマンドでローカルサーバーを立てることができます. この状態でブラウザで指定されたポートを開くとメモ一覧を整った表示でプレビューできます. 現在は起動時に自動でブラウザが開かれます.

お願い

初めて作ったソフトウェアを公開します. 不具合等多くあると思いますが, 見つけたら issue に記載してください. 基本的に Mac 環境で開発しています.

Dependencies

~9–19MB
~252K SLoC