Closed FelipeRearden closed 1 year ago
A window is maxmized if there exists an element matching .workspace > .workspace-split.mod-root.has-maximized
. So probably this will work:
if (activeDocument.body.find(".workspace > .workspace-split.mod-root.has-maximized")) {
// active window has maximized pane
} else {
// active window does not have maximized pane
}
A window is maxmized if there exists an element matching
.workspace > .workspace-split.mod-root.has-maximized
. So probably this will work:
Thanks for the reply @pjeby !
It worked PERFECT !!!!
Thank you very much for you help, I really appreciate 🙏
Hello @pjeby !
I have a question about a workflow that I am trying to create that I would like to share you.
Forgive me if is a dumb question. I am new to Templater and I don't know if what I am trying to create is feasible. → It is about a templater script and the command
Maximize Active Tab: Toggle
Idea
I wanna create a Templater script that runs different commands based on the state of the Maximize Pane:
→ If Maximize is ON run
cmd_a
→ If Maximize is OFF runcmd_b
This is an example of the same idea applied to the Workspaces Core Plugin → If the Active Workspace is Books run
cmd_a
→ If the Active Workspace in not Books runcmd_b
Question
Would be possible to create a script like that based is the Active Note is Maximized or Not ?
If Yes, would mind helping with the command that I have to add to the templater to evaluate if the Active Note is Maximized or not?
Thanks for reading this !
Have a great day.