News:

MultiCommander v16.6 is released!

Main Menu

New Tab on Target Panel with File/Folder Focus Path

Started by Matthias515566, April 04, 2016, 08:47:59

Previous topic - Next topic

Matthias515566

New Tab on Target Panel with File/Folder Focus Path

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

Show the Focus File/Folder Path on Target Panel

MC.Explorer.Goto TARGET="${focusfilepath}"

Matthias515566

I wad going to make this bcommand better, but it don´t work.
MC.Explorer.Goto TARGET="${focusfilepath}"
MC.SetActivePanel LEFT


Maybe someone have a idea how to make this work.

Mathias (Author)

#2
What is not working ?

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

What do you want to happen?

Mathias (Author)

#3
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
MC.SetActivePanel PANEL=INACTIVE
(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:
MC.Explorer.Goto TARGET="${focusfilepath}"
MC.SetActivePanel PANEL=INACTIVE

Folder-Path in a new Tab on the other side:
MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGET
MC.SetActivePanel PANEL=INACTIVE