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 command to open chat with selected text in markdown quotes #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mentatbot[bot]
Copy link
Contributor

@mentatbot mentatbot bot commented Aug 7, 2024

Implemented a new command <leader>ask that allows users to open a chat conversation with the selected text in visual mode. The selected text is stripped of indentation and wrapped in markdown quotes for easier readability and interaction with the model. Added the corresponding function GPTAsk in chatvim.py and updated the key mappings in chatvim.vim.

Closes #6

Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!

Implemented a new command `<leader>ask` that allows users to open a chat conversation with the selected text in visual mode. The selected text is stripped of indentation and wrapped in markdown quotes for easier readability and interaction with the model. Added the corresponding function `GPTAsk` in `chatvim.py` and updated the key mappings in `chatvim.vim`.
@mentatbot mentatbot bot requested a review from jakethekoenig August 7, 2024 20:04
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.

Command to open chat with selection in markdown quotes
0 participants