[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama 84a0c49e32 1/3: Replace / with _ in new note fil
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ellama 84a0c49e32 1/3: Replace / with _ in new note filenames. |
Date: |
Mon, 29 Jan 2024 03:57:58 -0500 (EST) |
branch: externals/ellama
commit 84a0c49e32085839f966c26241c11bb56cb4720b
Author: Steven Edwards <steven@stephenwithav.com>
Commit: Steven Edwards <steven@stephenwithav.com>
Replace / with _ in new note filenames.
Close #55
---
ellama.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ellama.el b/ellama.el
index 7d8afc6298..73e69eace1 100644
--- a/ellama.el
+++ b/ellama.el
@@ -387,7 +387,8 @@ PROMPT is a variable contains last prompt in this session."
(defun ellama-generate-name (provider action prompt)
"Generate name for ellama ACTION by PROVIDER according to PROMPT."
- (let ((prompt-words (split-string prompt)))
+ (let* ((cleaned-prompt (replace-regexp-in-string "/" "_" prompt))
+ (prompt-words (split-string cleaned-prompt)))
(string-join
(flatten-tree
(list (split-string (format "%s" action) "-")