I think there isn't yet a way to show/hide Menu items based on the currently active app?
It would be great to be able to only show relevant buttons to the currently focused app, current time, ... and other variables.
Something like these trigger conditions that we have for other parts of BTT:
Yes, that's what I'm trying to do!
I want the shortcut to get the input and do something with it, in my case add it to a list.
@ocean-success Can't seem to get the input, IDK how to setup the Named trigger. And When I type and click enter, it doesn't trigger the shortcut with the input...
Also, did you find a way to clear the input field after triggering it ?
Do you mean named trigger like in the photo I shared? If so that named trigger is not needed at all, it’s just showing a confirmation HUD. Although I now see how that could be confusing as I’ve used the term “HUD” in multiple places.
As for clicking and pressing enter, they also don’t seem to work for me. What does work is the “Trigger Hovered Item When Menu Is Being Hidden” option, I’m using that on keyup. So keydown to show menu, hover over item/button with mouse, keyup to trigger item/button.
I think there isn't yet a way to show/hide Menu items based on the currently active app ?
This should be possible using either the standard app list or conditional activation groups. The general logic is:
• Items defined for "All Apps", currently always show (I might add an option to prevent this).
• If you add a menu with the same identifier to another app or to a conditional activation group, the global items will be merged with the app specific / CAG specific ones.
• If multiple CAGs are active at the same time and contain menus with the same identifier, their items will be merged.
• You can exclude apps from CAGs
If you have a concrete example you'd like to implement, I can show you how to do that.
Here is a simple example on how to trigger a shortcut when hitting enter in the textfield (and passing the textfield value as input). This makes use of the "run real javascript" action. You need to replace the values for shortcut, menu name and item name with the ones of your menu / the shortcut you want to trigger.
Never heard of conditional activation groups? Where can I find it ?
Yes, Basically, I made a floating menu activated with Shift+Ctrl
I'm using arc, it's easier for me to Show a menu, hover over the space I want and it switches, instead of ctrl+# (1,2,3,4,...)
Menu item 1 : ctrl+2
Menu item 2 : ctrl+3
Menu item 3 : ctrl+4
I use the floating menu for other things, so These 3 buttons for switching browser tabs should only be visible when the browser is active.
[been testing today with some scripts even if I'm on another app, activate the browser app first then Switch to the desired space, but it kept getting weird, creating new tabs...]
That would be really weird. BTT uses the same transformation for showing the shortcut in the UI and for sending it - so I don't see any way how this could break (if the UI shows the correct shortcut).
Sounds stupid, but could you try to restart your machine?
Is there a way to have a fade in/fade out animation on window hover resize? I'm thinking of testing some other options aside from the default animation since it's quite laggy because of the html/css responsive design resizes.