Wooshy.docs icon indicating copy to clipboard operation
Wooshy.docs copied to clipboard

Support for selecting text (if selectable)

Open roelvangils opened this issue 1 year ago • 5 comments

I have another idea! :) Now that you implemented support for ⌘+C, I think a shortcut for selecting the matched text would also make a lot of sense. Only if the text is selectable, of course. And I suggest ⌘+A for that ("Select all"). It would make it easy to select entire paragraphs of text based on a snippet of text you search for in that paragraph.

Currently, ⌘+A selects all the text in Wooshy's search field, but I think that is not needed (it is standard behaviour). I mean, I have never used it there.

Thanks for considering! Open for discussion as well!

roelvangils avatar Sep 11 '22 14:09 roelvangils

what's the use case?

currently you can press enter to reach the input field, and press command a. so that would save one keystroke? not sure i'm getting it sorry.

godbout avatar Sep 11 '22 17:09 godbout

I'm not talking about selecting the text in input fields but selecting paragraphs of text. Currently, when you Enter, Wooshy will click the target. That is great. But I would like to use Wooshy as a way to quickly select found text (anywhere) and then do something with it, such as cutting it or sending it to another application (such as Alfred or DeepL or something).

roelvangils avatar Sep 11 '22 19:09 roelvangils

so do you mean something like this?:

https://user-images.githubusercontent.com/121373/189689432-4f813741-2daa-476b-a14f-77e3cf53c068.mp4

then you do command a and it grabs the whole paragraph?

those stuff look like paragraphs but they're actually several different UI Elements stick together. wouldn't be trivial to use the AX to do that. what could be done is generate a triple click, which would select the paragraph. although this is inconsistent, even within the vanilla macOS:

https://user-images.githubusercontent.com/121373/189689988-7aa1ee7e-1415-4bbe-9b51-c056c482c431.mp4

godbout avatar Sep 12 '22 15:09 godbout

also, what should be copied? paragraph? whole text? as usual, that's more complicated than it sounds. need specifics.

godbout avatar Sep 12 '22 15:09 godbout

btw this is already achievable, although not natively within Wooshy: https://github.com/godbout/Wooshy.docs/issues/51#issuecomment-1223800660

godbout avatar Sep 12 '22 15:09 godbout