We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to send the current line to the chatgpt-shell, like:
(defun send-line-to-chatgpt-shell-main () (interactive) (b0ef/select-line) (chatgpt-shell-send-region nil) (deactivate-mark t) )
The problem is that the mark is still active in the buffer, so when I return to the buffer, I have to deactivate-mark with ESC
I'm not really sure what's the best way to do this, but I'm sure you have a solution;)
The text was updated successfully, but these errors were encountered:
Sorry for the delay. Take a look at chatgpt-shell-send-region implementation. Modify it to something like this:
chatgpt-shell-send-region
(defun chatgpt-shell-send-current-line () (interactive) (let ((chatgpt-shell-prompt-query-response-style 'shell) (line-text (buffer-substring (line-beginning-position) (line-end-position)))) (chatgpt-shell-send-to-buffer line-text)))
The above function should do it. Gonna close issue, but please reopen if otherwise.
Sorry, something went wrong.
No branches or pull requests
I'm trying to send the current line to the chatgpt-shell, like:
The problem is that the mark is still active in the buffer, so when I return to the buffer, I have to deactivate-mark with ESC
I'm not really sure what's the best way to do this, but I'm sure you have a solution;)
The text was updated successfully, but these errors were encountered: