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

Subissue: Consider triggering commands on type #177

Open
dlqqq opened this issue Feb 17, 2025 · 1 comment
Open

Subissue: Consider triggering commands on type #177

dlqqq opened this issue Feb 17, 2025 · 1 comment
Labels

Comments

@dlqqq
Copy link
Member

dlqqq commented Feb 17, 2025

Problem

Right now, a command is only triggered if the user selects the command from the chat commands menu by pressing Enter. However, this may be annoying to some users who want to type out the commands manually.

Proposed Solution

Consider triggering commands whenever the user types a new word. This can be done by providing a signal that emits the previous word whenever a new word is typed.

Additional context

If the user is pasting a large amount of content into the chat input, I don't think we should scan the entire pasted section for chat commands. This imposes the constraint that "chat commands must be typed in order to be triggered". I think this is very reasonable, but I'm open to feedback on this.

@dlqqq dlqqq added the enhancement New feature or request label Feb 17, 2025
@jtpio
Copy link
Member

jtpio commented Feb 17, 2025

If the user is pasting a large amount of content into the chat input, I don't think we should scan the entire pasted section for chat commands. This imposes the constraint that "chat commands must be typed in order to be triggered". I think this is very reasonable, but I'm open to feedback on this.

One case where it could still be useful to trigger the command after copy pasting is if a user follows a tutorial, or finds a command somewhere they would like to use. For example in the case of Jupyter AI someone may share a command to generate a notebook, and someone else would like to copy and paste it all at once, instead of having to first type /generate and then paste the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants