file list to panel

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
mrQQ
Posts: 62
Joined: Sat 07 May, 2005 11:57

file list to panel

Post by mrQQ »

hello,

is it possible to somehow load a list from some command output to a panel of far manager?

for example dir /b *.jpg and load the output to a panel in far?

thanks
Shmuel
Posts: 6839
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 530 times

Re: file list to panel

Post by Shmuel »

Give the file .temp extension and press Enter on it. It will be opened by the TmpPanel plugin.
However, in order to open correctly from any directory, the file should contain full paths rather than just file names.
For additional details please read the plugin's help.
KlepetoX
Posts: 129
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic
Has thanked: 2 times
Been thanked: 1 time

Re: file list to panel

Post by KlepetoX »

Yes, it is possible, here is an example:

Code: Select all

dir /b *.jpg > %temp%\filelist.temp
rem output into panel
tmp:%temp%\filelist.temp
rem output into menu
rem tmp:+menu %temp%\filelist.temp
del %temp%\filelist.temp
You can create macro if you need it often.
KlepetoX
Posts: 129
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic
Has thanked: 2 times
Been thanked: 1 time

Re: file list to panel

Post by KlepetoX »

And here is simple macro. Lists all files with current extension in panel:

Code: Select all

Macro {
  key="F12";
  area="Shell";
  description="List all files with current extension in panel";
  action=function()
    Panel.Select(0,0)
    mf.clip(5,2)
    Keys"CtrlAdd CtrlIns CtrlSubtract ShiftF4" print("x.temp") Keys"Enter ShiftIns ShiftF10"
    Panel.SetPos(0,"x.temp")
    Keys"Enter CtrlG"
    print("del x.temp")
    Keys"Enter"
  end;
}
User avatar
HaRT
Moderator
Posts: 10866
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Re: file list to panel

Post by HaRT »

mrQQ
Given that tmp is TmpPanel's prefix, use tmp:< dir /b *.jpg — no scripts or explicit temporary files needed.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Post Reply

Return to “Support and Troubleshooting”