Author Topic: New Tab on Target Panel with File/Folder Focus Path  (Read 17901 times)

Matthias515566

  • Power Member
  • ****
  • Posts: 323
    • View Profile
New Tab on Target Panel with File/Folder Focus Path
« on: April 04, 2016, 08:47:59 »
New Tab on Target Panel with File/Folder Focus Path
Code: [Select]
MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGET
Show the Focus File/Folder Path on Target Panel
Code: [Select]
MC.Explorer.Goto TARGET="${focusfilepath}"

Matthias515566

  • Power Member
  • ****
  • Posts: 323
    • View Profile
Why works this not?
« Reply #1 on: April 28, 2016, 13:31:30 »
I wad going to make this bcommand better, but it donĀ“t work.
Code: [Select]
MC.Explorer.Goto TARGET="${focusfilepath}"
MC.SetActivePanel LEFT

Maybe someone have a idea how to make this work.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: New Tab on Target Panel with File/Folder Focus Path
« Reply #2 on: April 28, 2016, 14:24:27 »
What is not working ?

Code: [Select]
MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGETOpen a new tab that will show the path of the file in focus.

What do you want to happen?
« Last Edit: April 28, 2016, 14:26:07 by Mathias (Author) »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: New Tab on Target Panel with File/Folder Focus Path
« Reply #3 on: April 29, 2016, 19:21:43 »
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: [Select]
MC.SetActivePanel PANEL=INACTIVE(you forgot the PANEL= part)
and you need INACTIVE because the first command NewBrowser or Goto Will steal focus..
« Last Edit: April 29, 2016, 19:27:33 by Mathias (Author) »

Matthias515566

  • Power Member
  • ****
  • Posts: 323
    • View Profile
Re: New Tab on Target Panel with File/Folder Focus Path
« Reply #4 on: April 30, 2016, 09:12:48 »
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: [Select]
MC.Explorer.Goto TARGET="${focusfilepath}"
MC.SetActivePanel PANEL=INACTIVE
Folder-Path in a new Tab on the other side:
Code: [Select]
MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGET
MC.SetActivePanel PANEL=INACTIVE