obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

Support hotkey for applying a specific custom prompt

Open wenzhengjiang opened this issue 11 months ago • 4 comments

Is your feature request related to a problem? Please describe. I have a custom prompt for simplifying selected text in a certain way. Right now I have to

  1. trigger "apply custom prompt"
  2. select my specific prompt.
  3. apply. I use this custom prompt very frequently, so it would be very nice to bind it with a hotkey.

(I do not use the existing "Simplify selection" because I want to see the simplified text with explanation and some other things)

Describe the solution you'd like Need to add a new option in the hotkey setting page.

Describe alternatives you've considered N/A

Additional context N/A

wenzhengjiang avatar Jan 09 '25 06:01 wenzhengjiang

Would you like to work on this one?

logancyang avatar Jan 09 '25 20:01 logancyang

Sure. Feel free to assign it to me.

wenzhengjiang avatar Jan 14 '25 00:01 wenzhengjiang

To support hotkey, we need to first create a custom command for a given custom prompt.

wenzhengjiang avatar Feb 02 '25 01:02 wenzhengjiang

👍 for this issue. I think there's a similar feature in the Templater plugin. From the settings view, you can choose a specific template, creating a command to create or insert that template. I think we could implement this feature using a similar approach?

aviatesk avatar Feb 06 '25 11:02 aviatesk