Toggle "Hide invisibles" in BBEdit Macro (v11.0.4)

Toggle hide invisibles in BBEdit Macro (v11.0.4)

WordPerfect had (has) a keyboard shortcut (Alt+F3) to toggle display of hidden characters. I've created a macro to toggle display of hidden characters in BBEdit too.

Toggle hide invisibles in BBEdit.kmmacros (4.0 KB)

I've also created a macro to toggle word wrap (Alt+F4):

Image-000795
Image-000795
On an average day, I toggle these features about 100 times, so automating them was long overdue. :wink:

While never averse to the use of a macro, wouldn't it be easier to assign the shortcuts in BBEdit itself?

2 Likes

Those are very nice macros, and I imagine they probably took at least a bit of time to put together, so you're probably going to hate me for this, but ...

... I'm pretty sure those settings (in System Settings > Keyboard > Keyboard Shortcuts) are all you need to recreate your macros. For the invisibles, assigning the same shortcut to two alternating menu items will apply it to whichever one is active, so it works as a toggle. And for soft wrapping, you only need one because the menu item's name doesn't change.

I never change soft wrap settings, but I've had a shortcut to toggle invisibles for a very long time, and haven't had any issues with it. I normally leave soft wrapping alone, but in my brief testing, this seemed to work just fine.

-rob.

1 Like

Or, you know, do what @Nige_S suggested and skip System Settings too :). Not sure why I never looked there!

-rob.

2 Likes