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

Feature request: Command+I in-line chat / Shortcut to chat with current selection #304

Open
matthiasgeihs opened this issue Aug 28, 2024 · 4 comments

Comments

@matthiasgeihs
Copy link

Is your feature request related to a problem? Please describe.
Thinking about switching from GitHub Copilot.
What I'm currently missing in Twinny, is the ability to use Cmd+i to open an inline chat window like Copilot does.

Describe the solution you'd like
Add a shortcut to open an inline chat about the current code text (around cursor or selected text).

Alternatively, introduce a default shortcut that switches to the chat and focuses the input field. (There are a couple of methods to assign a shortcut for switching to the chat window, but none of them automatically focuses the input. Would also be great if the chat window automatically assumes the context around the cursor.)

@rjmacarthy
Copy link
Collaborator

Hello @matthiasgeihs for this, you can use twinny.sidebar.focus and assign a custom key binding. As for the inline chat view, this is under proposal by the vscode team and I plan to add something when it becomes available for extension developers.

@matthiasgeihs
Copy link
Author

I've seen Continue make the inline chat work somehow.

The issue with using twinny.sidebar.focus for quick chat is that the focus doesn't go to the input text field, if the chat is already open. (So it requires another mouse click to start chatting.) Maybe that can be changed?

@rjmacarthy
Copy link
Collaborator

When you say "inline chat" please could you provide some kind of example?

As for that other issue, I understand your point, perhaps it can be made better :)

Many thanks.

@matthiasgeihs
Copy link
Author

I'm referring to their "Refactor functions where you are coding" feature:
https://github.com/continuedev/continue?tab=readme-ov-file#refactor-functions-where-you-are-coding

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

No branches or pull requests

2 participants