Far.NET3

Here you can discuss about your favorite plug-in.
Locked
nightroman
Posts: 15
Joined: Wed Mar 14, 2007 3:23 am

Far.NET3

Post by nightroman » Thu Mar 15, 2007 7:46 am

Far.NET3 XML Documentation

Included XML documentation is not perhaps a perfect form of documentation but it is always up-to-date and it is actually the most practically useful for development.

Visual Studio Object Browser automatically uses XML comments well enough. Another possible way is to use for example "Reflector for .NET" (use Google search) (it is free). It displays documentation in MSDN-like style, provides powerful navigation and search (including .NET and any loaded .NET assemblies).

jonib
Posts: 70
Joined: Thu Mar 31, 2005 3:00 am
Location: Sweden

Post by jonib » Thu Mar 15, 2007 8:07 am

I have downloaded "Reflector for .NET" but don't know if I'm using it right.

Where in the documentation would I have found what parameters "Far.CreateDialog();" needed?

nightroman
Posts: 15
Joined: Wed Mar 14, 2007 3:23 am

Post by nightroman » Thu Mar 15, 2007 9:28 am

In Reflector tree (left panel):
- navigate to FarNetIntf -> Far Manager -> IFar -> CreateDialog
- press <space>
- enjoy information at the right panel

Also, take a look at Reflector View -> Options and set options as you like.

jonib
Posts: 70
Joined: Thu Mar 31, 2005 3:00 am
Location: Sweden

Post by jonib » Thu Mar 15, 2007 11:40 am

Thanks

I used the search but it did not find it until I changed to "Search Member", so now I might be more productive. :D

nightroman
Posts: 15
Joined: Wed Mar 14, 2007 3:23 am

Post by nightroman » Sun Mar 18, 2007 10:02 am

The plugin help is ready: FarNET.doc.3.3.7.rar at: http://code.google.com/p/farnet/downloads/list

The vesion 3.3.7 itself is expected by Monday.

nenadl
Posts: 1
Joined: Fri Aug 24, 2007 5:14 am

QuickView

Post by nenadl » Fri Aug 24, 2007 5:16 am

Is there a way to make a quickview panel at the moment? I can see that the type of panel is available in several properties but they are all read-only.

nightroman
Posts: 15
Joined: Wed Mar 14, 2007 3:23 am

Post by nightroman » Mon Sep 03, 2007 5:58 pm

nenadl

The short answer is "yes". For example quick view works almost in any panel created by the plugin PowerShellFar which is a user of Far.NET3. See example there: AnyPanel.OnGettingFiles() which is a handler of IPanelPlugin.GettingFiles event.

Here is a complete example in PowerShell (panel with 2 items "Hello" and "World"):

Code: Select all

$p = $Far.CreatePanelPlugin()

$f = $Far.CreatePanelItem()
$f.Name = 'Hello'
$f.Data = 'Hello data'
$p.Files.Add($f)

$f = $Far.CreatePanelItem()
$f.Name = 'World'
$f.Data = 'World data'
$p.Files.Add($f)

$p.add_GettingFiles({
	if (!($_.Mode -band [FarManager.OperationModes]::QuickView)) {
		return
	}
	$f = $_.Files[0]
	$outpath = Join-Path $_.Destination $f.Name
	$f.Data > $outpath
})

$p.Open()
When you press <CtrlQ> you see "Hello data" or "World data" in the quick view panel. This is a silly example but I hope it gives an idea.

Locked