summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-05 19:16:41 +0800
committerGitHub <noreply@github.com>2023-03-05 19:16:41 +0800
commitaadffb17a3cbbfc5e3c0dad4c8587eff79aaae9b (patch)
tree9f892583dbca7ea8b10d0a1d305ad3b8920df61b /src/utils.rs
parent625f0343cbdc5a7bf11b649b98e239d9dcf53f6e (diff)
downloadaichat-aadffb17a3cbbfc5e3c0dad4c8587eff79aaae9b.tar.gz
feat: repl command replaces `.editor` with `.multiline` (#18)
You can use `.multiline` command to put multiline content ``` 〉.multiline { ::: abc ::: cdf ::: } ``` It's much easier than `.editor`.
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs6
1 files changed, 0 insertions, 6 deletions
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<String> {
- 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)