rusty_memoir

Crates.iorusty_memoir
lib.rsrusty_memoir
version0.1.0
sourcesrc
created_at2020-10-26 07:30:41.75777
updated_at2020-10-26 07:30:41.75777
descriptionA tool to archive commands
homepagehttps://github.com/Phoenix-Chen/Memoir
repositoryhttps://github.com/Phoenix-Chen/Memoir
max_upload_size
id305512
size5,172,345
(Phoenix-Chen)

documentation

README

Memoir


Memoir is a TUI program to help you archive commands (or any text).

memoir demo

You can search archived commands by keywords in command, annotation and/or tags. The archived commands are editable and deletable. Archived commands are saved in json format for easy sharing.

Usage


CLI


  • Show all records:

    memoir
    
  • General search:

    memoir [-s|--search] <keyword_1> <keyword_2> ...
    
  • Search by command:

    memoir [-c|--command] <keyword_1> <keyword_2> ...
    
  • Search by annotation:

    memoir [-a|--annotation] <keyword_1> <keyword_2> ...
    
  • Search by tags:

    memoir [-t|--tags] <keyword_1> <keyword_2> ...
    
  • You can combine arguments:

    memoir -c <keyword_1> -t <keyword_2> ...
    
  • By default, search results calculate the union of search results of each keyword. For intersection add -i:

    memoir [-i|--intersection] -c <keyword_1> -t <keyword_2> <keyword_3> ...
    

TUI


  • Ctrl-c: Quit program at any time.
  • Up / Down: To move between options or panels.
  • Enter: To select option.
  • Ctrl-a: To add new record.
  • Left / Right: To move cursor in input_mode.

Requirement


This program use rust-clipboard which requires x11 on Linux.

It's Not a Bug, It's a feature (aka Will fix)


  1. In input mode the cursor moves out of border if text exceeds 1 line.

What's next


Q & A


  1. How to retrieve record id from CLI?

    ¯\(ツ)

  2. Why are you handling errors like an amateur?

    But I am an amateur...

License


Memoir is under Apache 2.0 License.

Commit count: 0

cargo fmt