Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to send message from session buffer #184

Merged
merged 5 commits into from
Nov 29, 2024

Conversation

s-kostyaev
Copy link
Owner

@s-kostyaev s-kostyaev commented Nov 29, 2024

  • Add ability to edit session buffer and send message directly from it.
  • Add options to customize display buffer behaviour.

Added a new function `ellama-convert-org-to-md` that translates text
from org syntax to markdown syntax using Emacs Org Export
functionality. This function creates a temporary buffer, inserts the
provided org text, exports it to markdown, and returns the resulting
markdown string.
Ensured that the user's nick is always present at the end of the session
buffer. Added checks and insertions to handle cases where the buffer
might not have the user's nick, especially for new sessions or empty
buffers. Adjusted the insertion points and conditions to maintain
consistency across different scenarios.
Added a new function `ellama-get-last-user-message` to extract the
last unsent user message from the current session buffer. Also, added
a new command `ellama-chat-send-last-message` to interactively send
this last message.
@s-kostyaev s-kostyaev force-pushed the send-message-from-session-buffer branch from 9cab6cb to 1a3dd96 Compare November 29, 2024 20:14
Added custom options `ellama-chat-display-action-function` and
`ellama-instant-display-action-function` to control the display
behavior of chat and instant buffers respectively. Updated relevant
functions to use these new options when displaying buffers.
@s-kostyaev s-kostyaev changed the title WIP: Add ability to send message from session buffer Add ability to send message from session buffer Nov 29, 2024
@s-kostyaev s-kostyaev merged commit d8e5659 into main Nov 29, 2024
11 checks passed
@s-kostyaev s-kostyaev deleted the send-message-from-session-buffer branch November 29, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant