Floating Menu Alpha Development Thread

The idea with this (and my last comment on this thread) is to accomplish this kind of smoothness with floating menu hovering.

@mkozjak was that a Safari PiP ?

@mkozjak in 4.181 I fixed some issues with the webview caching. I also added animation duration settings. It looks pretty good to me:

The rearranging issue is currently not solvable if you want to keep the items on top. I will soon add container's that will solve this.

1 Like

Yes, Safari on Ventura!

1 Like

Amazing work. Thanks. This looks great! I'll give it a spin tomorrow when my brew cask PR gets through.

Could you share your preset for that window of yours? Looks like a very nice fitting idea for the new feature!

My preset? Yes, I will share it soon.
What feature btw?

Thx! With feature I was referring to the floating menu and that I like your use case for it

1 Like

I have some issue with Web Item content resizings. Namely, responsive website doesn't want to take up all the available height. Width works.

The config is here:

The behavior is here:

Am I doing something wrong here?

with the current layout algorithm it's not possible to have an item always take the full available width/height. Only one of them will work depending on the chosen layout direction. It's pretty complicated to make this work, but it's on my todo list to lool into this.

Yeah, it is perfectly reasonable not to have this implemented. We shouldn’t get to mimic real browser behavior. That would be an overkill. Having the resizing capability as is is good enough

Can it be used as input for Shortcuts?

image

(Should we report bugs in separate threads?)

Managed to get a bug with my ai chatbot floating menu on version 4.181. After the hover, I resized (enlarged) my menu. Unhovering it, it ended up at the wrong location, as shown in the attached image. Logs attached too.
Untitled
BetterTouchToolDebug.zip (1.7 MB)

One more - After the unhover is done, if I had text input in keyboard focus when I had the menu hovered, it's still left there so I need to click on my app (eg. Sublime Text) to get the focus on my input back.

i use to have a beloved always on top floating browser that has since been deprecated.

Any change someone can mange to build something close to it? Andreas did a proof of concept here: Floating Menu Alpha Development Thread - #60 by Andreas_Hegenberg

image

Difference between the Real JavaScript and the Apple Java Script for Automation,
I get Data from Shortcuts, will the Automations one work better ?

Current Script:

(async () => {
  let shortcut = "Shortcut_Name";
  let result = await runAppleShortcut({name: shortcut});
  
  
  returnToBTT(`${result}`);
})();

the Real Java Script (not JAX) one should be faster and better suited for this use case.

I'm on vacation until tomorrow, further updates addressing various things will follow soon!

1 Like

Thanks.

A quick answer here when you're back:

I’ve been playing around with a copy/paste floating menu. It uses a textfield as input for the shortcut that runs when a button is pressed. @Brahim is this similar to what you are trying to do?


Also, @Frank1 this copy/paste menu is an example of one thing I might use the textfields for.

It seems that there is a bug in the help site. It's not possible to open the page "Item Types" that is between "Basics" and "Menu Scripting":
https://docs.folivora.ai/docs/1601_floating_menu_basics.html
https://docs.folivora.ai/docs/1603_scripting_floating_menus.html

Also there is a typo, there are 2 s in Floating Menus
Captura de pantalla 2023-08-01 a les 9.55.25