[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama 139508c1e3 2/3: Merge pull request #56 from step
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ellama 139508c1e3 2/3: Merge pull request #56 from stephenwithav/replace-forward-slash-with-underscore-in-file-names |
Date: |
Mon, 29 Jan 2024 03:58:00 -0500 (EST) |
branch: externals/ellama
commit 139508c1e389d7a6e70e109db921fc0cac4d0807
Merge: 73512d3742 84a0c49e32
Author: Sergey Kostyaev <s-kostyaev@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Merge pull request #56 from
stephenwithav/replace-forward-slash-with-underscore-in-file-names
Replace / with _ in new note filenames.
---
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) "-")