From aadffb17a3cbbfc5e3c0dad4c8587eff79aaae9b Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 5 Mar 2023 19:16:41 +0800 Subject: feat: repl command replaces `.editor` with `.multiline` (#18) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You can use `.multiline` command to put multiline content ``` 〉.multiline { ::: abc ::: cdf ::: } ``` It's much easier than `.editor`. --- src/utils.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/utils.rs') diff --git a/src/utils.rs b/src/utils.rs index 5bc1237..9dfbbd7 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -14,12 +14,6 @@ pub fn copy(src: &str) -> Result<()> { .map_err(|err| anyhow!("Failed to copy, {err}")) } -pub fn paste() -> Result { - ClipboardContext::new() - .and_then(|mut ctx| ctx.get_contents()) - .map_err(|err| anyhow!("Failed to paste, {err}")) -} - pub fn now() -> String { let now = Local::now(); now.to_rfc3339_opts(SecondsFormat::Secs, false) -- cgit v1.2.3