notaapp / talk

Issues and discussions for the notes app, Nota.
https://nota.md
59 stars 1 forks source link

Could You Please Support The Parameter "selectedText" in Customer Commands? #242

Open conradhuang opened 2 years ago

conradhuang commented 2 years ago

Hi Team,

I found it's very useful to expose the parameter "selectedText" in customer commands. Here're some use cases for your reference:

  1. capitalize the first word for the selected text
  2. sort the lines under the selection
  3. ...

Right now it seems the parameter is only supported in paste hook, but it would be more flexible if we can use it in customer commands, too. Thanks!

astoilkov commented 2 years ago

I like that. We will need to do Insert text at cursor via custom command as well in order to support this use case. Both requests make sense and complement each other well.

Thanks for the suggestion!