Multi Commander > Script

New Tab on Target Panel with File/Folder Focus Path

(1/1)

Matthias515566:
New Tab on Target Panel with File/Folder Focus Path

--- Code: ---MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGET

--- End code ---
Show the Focus File/Folder Path on Target Panel

--- Code: ---MC.Explorer.Goto TARGET="${focusfilepath}"

--- End code ---

Matthias515566:
I wad going to make this bcommand better, but it donĀ“t work.

--- Code: ---MC.Explorer.Goto TARGET="${focusfilepath}"
MC.SetActivePanel LEFT
--- End code ---

Maybe someone have a idea how to make this work.

Mathias (Author):
What is not working ?


--- Code: ---MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGET
--- End code ---
Open a new tab that will show the path of the file in focus.

What do you want to happen?

Mathias (Author):
Ahh wait..
You want to open a new tab with path X, but KEEP the current panel as active.. ?

Then you had it almost correct

--- Code: ---MC.SetActivePanel PANEL=INACTIVE
--- End code ---
(you forgot the PANEL= part)
and you need INACTIVE because the first command NewBrowser or Goto Will steal focus..

Matthias515566:
Thank you very much. Now it works. Yes i forget "Panel=". And "INACTIVE" is not in the documentation.

Folder-Path without new tab on the other side:

--- Code: ---MC.Explorer.Goto TARGET="${focusfilepath}"
MC.SetActivePanel PANEL=INACTIVE
--- End code ---
Folder-Path in a new Tab on the other side:

--- Code: ---MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGET
MC.SetActivePanel PANEL=INACTIVE
--- End code ---

Navigation

[0] Message Index

Go to full version