Copying After Selecting

@Andreas_Hegenberg I thought it would be a good idea to copy selected text when you release your finger from the trackpad.

So, your thumb clicks the trackpad and holds it down. Your index finger selects the text. Then your thumb lets go, and the text is copied.

Copy.bttpreset (1.0 KB)

Unfortunately, it doesn't work. Can BTT do that? Thanks!

@Frank1 , maybe this might be useful for you Copy on select text? ? Or use use-case is somewhat different?

Thanks a lot, @xidiot

It turns out that automatically copying selected text isn't a good idea, because it ends up copying a lot of text that wasn't meant to be copied.

A gesture is probably a better option: If text is selected, execute Cmd + C. If no text is selected, the same gesture executes Cmd + V.

That would be nice, but it doesn't work, even though BTT shows the conditions as met (green). I'll never understand this logic stuff :downcast_face_with_sweat: Can someone tell me where I'm going wrong, please?

Condition 1: The selected text is not nothing. So text is selected.

Condition 2: The left mouse button is pressed

So, the thumb holds down the trackpad (= left-click). The index finger selects text.

Now, a one finger double-tap with should copy the selected text.

you can not do a one finger double-tap while another finger is already touching the trackpad (because that would be two fingers then and only one of them double tapping)

In general I would be careful with such auto copy solutions (as they can really cause weird behavior).
Maybe a simplified "Text Selection Did Change" menu could work for you? Text Selection Did Change | BetterTouchTool Documentation

Hmm, and how am I supposed to hold the left click if I’m not supposed to touch the trackpad with a finger?:joy:

And why can I configure it if it can’t possibly work? I know, because it works with other triggers :slightly_smiling_face:

I don't get it—it's not auto copy. After selecting some text, you need a trigger to copy it (1 finger double-tap).

Okay, then I'll just keep it simple. This works :slight_smile:

BTT allows you to configure any conditions, there is no way for the conditions editor to know what is really possible or not :slight_smile: You can also configure it to require 100 touching fingers, even if that might be a challenge

Retrieving selected text is itself a sort of auto copy, because in order to evaluate the selected text variable, BTT needs to grab that text first.

IME 1 finger double taps w/o a key modifer are kinda wacky and tend trigger often unintended. If you are mostly selecting a word/paragraph/everything you can try some form of what I do:

command 1 finger tap=double click + command+C+hud overlay that shows selected_text or {clipboard_content}

option 1 finger tap=triple click + command C + hud

cpntrol 1 finger tap=command+a (select all) + command C + hud

*note you dont have to select the text first, just hover over (at least in #1 case) the word and then actovate trigger. Same with all-no havng to select the text. Also should note you can play around with #2 and by using applescript it can either select the whole line or the whole text till period. Forget the details but basically triple click=select line and the definition what a line is is fungible. Best of luck

That's true. But triggering the copy function when nothing is selected... does nothing, as far as I know. To prevent even “nothing” from happening, the advanced condition is set to “only if text is selected”. :slight_smile:

I do the paste with Cmd + 1-finger double-tap.

But I'll try your solution anyway. Thank you very much :slight_smile:

@Andreas_Hegenberg The trigger below also moves up in the Recently Used list when no text is selected, but the HUD isn't displayed ... that actually shows it wasn't triggered :thinking:

That's due to how advanced trigger conditions work (the trigger is triggered & marked as recently used, but then the advanced trigger conditions evaluate to false so the actions are not executed)

yah thats kinda why I posted that because of that complicatio posted obv by the all knowing oracle :wink: Ijust thought why not post it give you a simpler implentation and npt have to deal with the ADV treigger condtions etc. And also I think (in my opinion :slight_smile: ) that being able to select text and/pr whole paragraphs and more without havinyp select the disered text first is quite cool and for me definetly a hugh time saver and gve rid of a much loathed task of selecting hat I want to copy first then having to run the copy tigger.

The way I posted requires none of any of that stuff. Hover over text foesnt even have to eb exact and press trigger and boom it selects the word automatically which then leads to it automatically copying it and then automitvally showing copied text in a HUD or you could have floating window whatever. Same workflows with the other 2 i posted, super simple and no need to selct anything beforehand with takes time and is a PIA