search from date/category

This commit is contained in:
Volodymyr Patuta 2020-11-30 08:42:46 +01:00
parent 6d3a932b54
commit a1f2acfe70
2 changed files with 4 additions and 4 deletions

View File

@ -25,6 +25,8 @@ Example:
- [x] Delete a note - [x] Delete a note
- [x] Modify a note - [x] Modify a note
- [x] Show all notes in a scrollable TextView in a raw terminal with [termimad](https://crates.io/crates/termimad) - [x] Show all notes in a scrollable TextView in a raw terminal with [termimad](https://crates.io/crates/termimad)
- [ ] Show all notes from `DATE` or `Category` - [x] Show all notes from `DATE` or `Category`
- [x] Search a note by header - [x] Search a note by header
- [x] Search a note by word (kinda grep) - [x] Search a note by word (kinda grep)
- [ ] List all notes
- [ ] List all notes from a `Category`

View File

@ -70,9 +70,7 @@ pub fn make_app() -> App<'static, 'static> {
Arg::with_name("category") Arg::with_name("category")
.help("Show all notes from a category/date") .help("Show all notes from a category/date")
.short("c") .short("c")
.short("d") .long("category"),
.long("category")
.long("date"),
) )
.arg(Arg::with_name("header").help("Name of the note.")), .arg(Arg::with_name("header").help("Name of the note.")),
) )