C-Loftus / talon-ai-tools

Query LLMs and AI tools with voice commands
MIT License
39 stars 14 forks source link

'from clip' source for running prompt #73

Closed jaresty closed 3 weeks ago

jaresty commented 3 weeks ago

I would like to be able to run a prompt on the contents of my clipboard. I would also like to be able to put the result into my clipboard.

We discussed having the concept of 'prompt sources'. We already have prompt destinations. Valid examples of prompt destinations are these:

I would like to have a way to specify a prompt sources similarly. A couple of examples are these:

There was some concern that it would be confusing to use the position alone to indicate source versus destination. For that reason, we were thinking that using 'from' to denote that this is a source would be helpful. Here are a couple examples:

pokey commented 3 weeks ago

can you elaborate on that grammar?

jaresty commented 3 weeks ago

@C-Loftus can you help? The idea was modeled on unix pipes (i.e. something on the left is a source and on the right is output) and we also wanted to prefix with 'from' so it's clearer (versus just saying 'model selection apply' or 'model clip apply'

jaresty commented 3 weeks ago

Valid options for 'from' that we had so far were 'selection' and 'clip'

jaresty commented 3 weeks ago

Part of the issue is our outputs currently have 'clip', 'selected', 'browser', 'above', and 'below' at the end, so we need a way to distinguish source and destination.

pokey commented 3 weeks ago

Shall we discuss in a meetup? I'd generally argue for consistency with cursorless grammar to the extent possible, to reduce cognitive dissonance

pokey commented 3 weeks ago

See also https://github.com/cursorless-dev/cursorless/issues/495

jaresty commented 3 weeks ago

I'd love to discuss but can't make the normal meetup times. I'll send a message on slack.

jaresty commented 3 weeks ago

This has been implemented now.