Text replacement using BTT

Description of what you are sharing
This is an example on how to use BetterTouchTool Key Sequences to replace typed text.
This example will replace thx with "Thank you very much!
Copy & Paste this into BTT.

The example is available here:

Screenshots (optional)

One important note:
Here in System Preferences -> Keyboard -> Text I can set it without using BTT.
image

1 Like

that's true, however it's very different as it only supports some apps and can only paste one line of text as far as I know.

3 Likes

Yeah, the functionality built in the OSX won't work in Firefox for example, unfortunately :confused:

Is there a way to copy (or type) formatted text?

2 Likes

thanks, I have a search term I constantly have to type into Chrome and this makes life so much easier!

Any news on this?

Thank you so much for this! SUCH a help!

I just got a new mac, running Monteray. When I try and enter text I get a pop up window. It only records modifiers not regular keys. What am I doing wrong?

Either some app has activated secure input mode on your machine, or BTT does not have the accessibility permissions in System Preferences => Security & Privacy => Privacy => Accessibility.

Possibly try to restart your machine.

I've been using BTT for a long time, but am absolutely a noob when it comes to the power of this app!

Anyway... any way to make a dropdown menubar item for the text replacements I add? I see it has Groups, which is great.

probably yes, but Iā€˜m not 100% sure what you mean by dropdown menu item? Do you want a custom item in your menu bar?

Yes, a custom item in my menu bar is what I'm thinking. :slight_smile:

How to set this up depends a bit on what you want.
If you just want to add items and show them in a menu you can do it like this:

Here is a simple menu bar item preset:
paste_item.bttpreset (6.3 KB)

However these context menu's are also scriptable with the latest BTT versions. So you could also display content retrieved from somewhere else. If possible best describe your exact use case then I can give a better example

image

My apologies for vague-posting...

I've been using the Clipy app as my clipboard history and text snippet manager for many many years, but it isn't actively developed and MacOS 15 has caused some of its functions to stop working.

So, as a replacement for Clipy, I've been testing using Alfred's "Clipboard History" and its "Snippets" Features (both of which I like, as I can use ctrl+cmd+V for the former, and ctrl+cmd+B for the later.

I've also tested using BTT's "Show Clipboard History" via ctrl+cmd+V and its "Key Sequences / Typed Words > Paste Text" to trigger Snippets for which I want keyboard shortcuts (which works fine although many of my Snippets don't have or need key-combo triggers).

While both of those options (Alfred and BTT) seem like they will cover my basic needs, what I'm REALLY missing is Clipy's menu bar icon which lets me quickly access both my Clipboard History and my Snippets. The Clipy menus (History & Snippets) can also appear wherever my mouse pointer is, when using the ctrl+cmd+V (History) and ctrl+cmd+B (Snippets) shortcuts.

That was really long... but you asked! :slight_smile:

Can you export the snippets from clipy? Then you might be able to use them in BTT without configuring each of them

There will soon be a way to get clipboard history via scripting, then showing it like this will be possible in BTT as well.

That's great to hear!

I can export the Snippet "Collections" from Alfred (i.e. "Colors (Nurbid)" ), which opening in BBEdit gives me the individual snips in json:

{
"alfredsnippet" : {
"snippet" : "#333333",
"uid" : "8590D652-008D-45F5-A2EB-CA2635396B8D",
"name" : "1. #333333 (Dark Gray)",
"keyword" : ""
}
}

Well... with your help, a lot of copy & paste, and some creative use of colored icon blocks... I managed to create this handy little menu for pasting commonly used CSS color codes (and various other things...). :slight_smile:

Can you paste text without any format?

Hello,
I use Keyboard Sequences for snippets and found out:
When I deactivate a group of sequences and type in a sequence of that group (for example .mfg) with the setting to delete the number of characters (here 4 because of .mfg) the .mfg will be deleted (although I deactivated the whole group). If I deactivate the single sequence the 4 characters stays.
I thought: if I deactivate a whole group every sequence in the group is deactivated. It seems that some settings are still activated. Is there a reason?