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

backslash cannot be used in llm chat #516

Open
grota opened this issue Jun 18, 2024 · 2 comments · May be fixed by #560
Open

backslash cannot be used in llm chat #516

grota opened this issue Jun 18, 2024 · 2 comments · May be fixed by #560

Comments

@grota
Copy link

grota commented Jun 18, 2024

Hopefully this is not something stupid on my part, but I cannot seem to be able to use the backslash \ in llm chat (not in single nor in multiline mode).
Both typing interactively and pasting text have this problem; in the latter case the backslash is simply taken out.

As you can imagine this is problematic when pasting code.

The workaround is to use a literal Ctrl-v before \ then it appears, but when the prompt is long, with snippets of code, I have to open a scratch buffer in the editor and prefix each backslash with a literal Ctrl-v char which is error prone and something that in principle should not be asked to the user (in neovim you can type ctrl-v twice in insert mode).

llm prompt does not seem to have this problem.

@grota
Copy link
Author

grota commented Aug 27, 2024

I figured out that the problem was the 2 readline statements for the arrow keys.
I created a PR #560 with an explicit bind for the backslash

@grota
Copy link
Author

grota commented Aug 27, 2024

Also removing the existing 2 mappings works, see related #495

@grota grota linked a pull request Aug 30, 2024 that will close this issue
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 a pull request may close this issue.

1 participant