From 5d18ed181ad051932eab8692191108059aa593d0 Mon Sep 17 00:00:00 2001 From: Volodymyr Patuta <90917-fiplox@users.noreply.framagit.org> Date: Sat, 12 Dec 2020 17:54:52 +0100 Subject: [PATCH] prompt for show --- src/rnote/process.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rnote/process.rs b/src/rnote/process.rs index b9fe746..68397d3 100644 --- a/src/rnote/process.rs +++ b/src/rnote/process.rs @@ -106,7 +106,12 @@ pub fn show(matches: &ArgMatches) -> Result<()> { .interact_text()?; notes::show_category(&category)?; } - false => return Err(anyhow!("No option is given. Abort.")), + false => { + let s: String = Input::with_theme(&ColorfulTheme::default()) + .with_prompt("String to search") + .interact_text()?; + notes::show(&s)?; + } }, }, }