PowerShellFar — Windows PowerShell host for Far Manager

Анонсы новых плагинов. Обсуждение плагинов ведется ниже.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

Latest post of the previous page:

1.1.20 (and FAR.NET 3.3.20)
http://code.google.com/p/farnet/

VIEW CALL STACK ON ERRORS ($ErrorActionPreference = 'Inquire')

For the sake of better troubleshooting of your scripts and just for experience I
set $ErrorActionPreference = 'Inquire' in demo Profile-.ps1 (just in case if you
use it or you can set it in your profile).

Advantages: you have a choice what to do on an error: continue; silently
continue; break; suspend and invoke intermediate commands in Editor console; use
NEW FEATURE - view call stack on error (<Esc> in error message dialog).

Disadvantages: can be annoying if you simply compose a new command; not all
scripts allow interaction, e.g. inside DB transactions (but actually in this
case you can explicitly set $ErrorActionPreference = 'Stop\Continue' in a
script or any other scope).

Anyway, it is up to you what $ErrorActionPreference to use, but the new feature
'view call stack' useful for troubleshooting is available only in error dialog,
i.e. when $ErrorActionPreference = 'Inquire'.

OTHER CHANGES

- Minor improvements in TabExpansion-.ps1
- Fixed example 'Tables' in Test-DataPanel-.ps1
- Editor console: <= and => are used as command output markers.
- Plugin menu command "Run selected code" being invoked from the command line
with no selection (i.e. full text) clears the command line on success and keeps
the text on errors so that you can correct the text immediately.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

1.1.21 (and FAR.NET 3.3.21)
http://code.google.com/p/farnet/

DATABASE TOOLS

- New script Panel-Table-.ps1: show tables and views of an open connection $DB
in a panel. <Enter> opens a selected table by Panel-Data-.ps1: depending on a
table and a connection you can insert, delete and update records; <Esc> returns
you back to the parent panel with tables.

- New script Panel-Database-.ps1 (designed and tested for SQL Server Express):
shows all databases; <CtrlPgDn> opens database properties, <Enter> opens list of
tables in the database (it is done by Panel-Table-.ps1, see above).

- You can now configure your table panels to take some fields values from
another (lookup) table panel. See how it is done in Panel-TestNotes-.ps1: when
you <Enter> Category field then another Panel-TestCategories-.ps1 is called
where you: can <Esc> to exit with no changes, <Enter> to set selected Category
as new value in TestNotes record, or before <Esc> or <Enter> you can work with
lookup table as if it is opened directly, i.e. you can add, remove, edit
records (use <CtrlPgDn> to enter a record because <Enter> is used for lookup).

- Other minor changes in scripts and code mostly related to new tools above.

TEST SCRIPTS

- Test scripts moved to Bench\Test directory and some test rules changed, read
About-Test.txt if you want to run some tests, especially database test panels.
- Functions from Test-DataPanel-.ps1 was transformed into Panel-Table-.ps1 and
advanced test scripts in Test directory; script itself was removed.

MISC

- Demo Profile-.ps1: $ErrorActionPreference = 'Stop' again. 'Inquire' mode is
really good for troubleshooting but it is too annoying for normal work when
errors are not due to bugs in code.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

1.1.22 (and FAR.NET 3.3.22)
http://code.google.com/p/farnet/

DATABASE AND PANEL TOOLS

Panel-Data-.ps1 (and underlying class DataPanel):
- Removed switch -BuildCommands. DataPanel will try to build commands itself
only when you delete, insert or update records. It is simple and effective.
- Added parameter -Title (~ IPanelPlugin.Info.Title) - panel title.
- If parameter -Connection is not defined then variable $DB is assumed. Thus,
parameter -Connection is optional now, and all the parameters were reordered to
make simple commands even simpler. For example with a new alias pd ~ Panel-Data-
you can open a data panel like this (but run Initialize-Test-.ps1 at first, i.e.
open your global connection $DB):
>: pd "select * from testnotes where note like '%<%>%'"
and in the result panel you still can delete, insert and update data really in
the database (!) - it is useful, but take care, these data are 'connected', not
just 'copied'.
- New property TablePanel.FarDescription (~ parameter -FarDescription of
Panel-Data-). Use it instead of IncludeColumns and ExcludeColumns when you want
the only column in Description. It is highly recommended if you expect thousands
of result records. Format-Table which is called when you use IncludeColumns and
ExcludeColumns can take ages.
- Added static property DataTable.MaxFormattedRows = 500 (you can set your value
in your profile) - for 'unknown' tables. See code comments in DataPanel.cs.
- Added property DataTable.Connection (get). Why? It can be passed in lookup
panels so that they can reuse already opened connection (just in case if it is
not in a global variable; a global variable is an easy solution, indeed, say,
for demos and simple tasks, but it is not good if you are about to use several
connections in the same session at the same time).
- Start sort mode of DataPanel is set to Unsorted to preserve the order produced
by SELECT with its powerfull ORDER BY capabilities.

- <ShiftEsc> closes the current panel together with all its parents (as before,
<Esc> closes the current panel and opens its parent if any).

MISC

- Fixed screen garbage on PowerShellFar output when panels are hidden and status
line is visible.
- Fixed an error on opening a Power panel from disk menu when PluginPreloadable
is false and this is the first action in a session.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

1.1.23 (and FAR.NET 3.3.23)
http://code.google.com/p/farnet/

EDITOR

New script Reformat-Selection-.ps1: it is similar to classic "Align block"
editor plugin command with "Reformat block" option, but it has some extra
features: primary indent (preserved exactly), prefix and secondary indent, see
the script for details. A command to run the script can be added to the user
menu, see example in Profile-.ps1, so that it is easy to call it with a macro.

EDITOR CONSOLE

<Del> in the last empty line as usually deletes the last output but now it keeps
commands. In other words, it deletes the last found block of lines between lines
"<=" and "=>" (output markers).

PROVIDER ITEM PANEL

Network paths were supported from the very beginning, but computer shares were
not. Now they are: you are prompted to select a computer share from a menu if
you run Panel-Item-.ps1 with a path like '\\ComputerName' or if you enter '..'
when the current path is already a share, e.g. '\\ComputerName\ShareName'.

BACKGROUND JOBS

If you close FAR safely (F10) and jobs still exist in the job list then for
any job you are prompted to abort it, wait for its exit, view its output if any
or discard all jobs and output. Note that it is done with WinForm message boxes
and Notepad because FAR UI is not available on exiting. This solution is simple
and it is enough in most cases; if it is not enough and your PowerShellFar is
set to be preloadable then there is an advanced way, see help: Background jobs.

TABEXPANSION FOR SCRIPTS

*) All PowerShell scrips in the system path directories are also included into
the list of candidates for expansion.
*) You can expand parameters of those scripts if 'param' statement and each
parameter are written one per line, i.e. like it is done in Bench scripts. As
usually, if you do -[tab] then all parameters are shown.
*) Examples:
panel-d[tab] -> Panel-Data-.ps1 Panel-Database-.ps1
Panel-Data-.ps1 -t[tab] -> -TableName -Title
Panel-Data-.ps1 -[tab] -> <all parameters>

MISC

Demo user menu in Profile-.ps1: removed the item "Run test script Try-.ps1" - it
is not really useful for everybody, but anybody can add it only if he wants.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

1.1.24 (and FAR.NET 3.3.24)
http://code.google.com/p/farnet/

This version is almost all about TabExpansion, a key feature of PowerShell. Now
this mechanism is more simple, yet powerful and its core is really integrated
into PowerShellFar.

Just like in PowerShell.exe by default there is only standard very poor built-in
function TabExpansion. Advanced function TabExpansion- is not enabled by default
and it is implemented as a separate script TabExpansion-.ps1. The reasons are:

*) anybody can replace MS TabExpansion with anything he wants in a profile,
advanced TabExpansion- is one possible alternative and it can be edited itself.

*) TabExpansion- is implemented as "autoloaded function"; thus, it is not loaded
if it is not really used.

*) TabExpansion-.ps1 is used by the author for both PowerShellFar (in FAR) and
standard PowerShell (in PowerShell.exe console).

TABEXPANSION INTERFACE CHANGES

*) Added plugin menu item "Expand text" which calls TabExpansion for the text in
the editor or the command line.

*) *.ps1 files: TabExpansion is simply called on <Tab> if the line is not empty
and the cursor is not after space or tab, otherwise tab is inserted as usually.

*) Removed Expand-PowerShell-.ps1 (its functionality was moved to the core). If
you really want to call this directly, call public $Psf.ExpandPowerShell().
Also removed not needed now $Psf.add_TabExpansion().

NEW TABEXPANSION OF (see help for details and examples):

*) parameters of a script alias;
*) members of a static object;
*) members of an object defined by a simple expression (see warning);
*) types and namespaces directly or with wildcards (see note about cache).

HOUSEKEEPING

Removed scripts Download-Feed.ps1, Download-Feed-.ps1 and Panel-Feed-.ps1
because they are not really related to FAR (keep them if you want, they are
still valid now, but will not be supported). The idea was to show an example of
UserPanel in Panel-Feed-.ps1, but it is done now in other scripts Panel-Process-
and Panel-Table-.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.25 (+ Far.NET 3.3.25 + updated Far.NET docs)

DIALOGS

Test-Dialog-.ps1 shows new Far.NET features: IDialog.AddBox() with right\bottom
set to 0; "smart" relative Top\Bottom values (see help: IDialog.NoSmartCoords);
IControl.Rect (good for relative positions, too); IDialog.Cancel:IButton (if set
and pushed then Show() returns false).

SETTINGS

Added PowerShellFar configuration dialog which is called in a standard way, i.e.
from the "Options\Plugin configuration" menu.

HOUSEKEEPING

- Improved Search-Regex-.ps1 (e.g. restoring the start folder on exit).
- REMOVED obsolete Set-Settings-.ps1, use the configuration dialog instead.
- REMOVED script New-Regex.ps1 as not related to FAR and not used by the others.
- RENAMED Test-UserCommand-.ps1 into UserCode-.ps1 (it is not a test after all);
depending on how it was used you may have to update your "User code command" in
the configuration dialog.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.26 (and Far.NET 3.3.26)

COLORER

PowerShell.hrc version 1.3.4: 'regexp' and 'sql' support:
- 'regexp' scheme is used in string operand of -match, -notmatch, -replace, ..
- Here strings are processed with 'regexp' or 'sql' schemes starting with lines
#REGEX or --SQL respectively. Note that regex normally should be created with
option IgnorePatternWhitespace or use inline instruction (?x). See examples in
PowerShell.hrc (<documentation>) and SQL examples in Panel-TestNotes-.ps1
- REMOVED prototype definition from PowerShell.hrc; thus, the prototype and
PowerShell.hrc have to be registered in different way - see <documentation> in
the file.

RomanConsole.hrd:
- Included console palette RomanConsole.hrd (white background). PowerShell.hrc
is actually designed with this palette in use, other palettes can be less
suitable or even practically unusable.

PANELS

- New panel class PowerShellFar.TreePanel allows to display panel items as a
tree with some standard features. Example script Panel-TestTree-.ps1 shows how
to use it and describes several points of interest.

MISC

- Fixed "Job prefix" bug in configuration dialog.
- New demo script Test-CallStack-.ps1, see the source and comments.
- Minor changes in Show-History-.ps1.
- Hardcoded pieces of PowerShell code moved from .cs files to .ps1 files in the
Resources directory; consider them as yet more PowerShellFar examples (note that
they are not called directly).
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.27 (+ Far.NET 3.3.27 + documentation PowerShellFar.chm)

DOCUMENTATION

This is the first version with documented code (download "PowerShellFar.chm").
This help file contains both Far.NET and PowerShellFar references, or, in other
words, everything you need for writing PowerShellFar scripts and automating FAR
via Far.NET. Note that "PowerShellFar.hlf" may still contain useful information
not included in .chm documentation (UI, scripts, techniques, tips and etc.)

"PowerShellFar.xml" (code comments) is also distributed now. It can be used for
example by .NET Reflector or in Visual Studio (just in case if somebody wants to
create an assembly dependent on PowerShellFar.dll - comments should be available
for Object Browser, intellisense and etc.)

All the code was revised to make documented features more consistent and easier
to use and to hide everything that should be used only internally. There is tiny
probability that some changes are breaking, e.g. AnyPanel: renamed method Find()
into GetPanel().

LOOKUP PANELS

At first this functionality was designed for DataPanel only. Now it can be used
in more cases, for example see new demo script Panel-TestLookup-.ps1 and
comments there for details.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.28 (+ Far.NET 3.3.28 + PowerShellFar.doc.1.1.28)

FIXED

- Word-completion bug in editor console (.psfconole files).

PLUGIN

- Added new plugin menu command "Snap-ins" allowing you to add or remove
registered PowerShell snap-ins. See also help.

- Most of menu commands now have corresponding public methods in $Psf, e.g.
"Snap-ins" ~ $Psf.ShowSnapIns(), "Expand code" ~ $Psf.ExpandCode() and etc.
In other words, almost any plugin UI feature can be called from PowerShell.

PANEL MENU

- Added AnyPanel.AddMenuItem() (panel menu called on [ShiftF3]). See demo script
"Panel-TestMenu-.ps1".

DATA PANEL

- Added simplified lookup for DataPanel: MemberPanel.CreateDataLookup() creates
a simple handler for DataPanel.SetLookup(). Example: Panel-TestNotes-.ps1 (old
example is not removed because it demonstrates how lookup actually works and can
be used in complex cases, e.g. when a value is calculated by lookup data).

WINKIT

Namespace Windows was renamed into WinKit. A few words about it: it is not
related to FAR. Everything is experimental and subject to change. Changes:
- Windows.NativeMethods.ShowWindow -> WinKit.Window.Activate
- Windows.NativeMethods.NewHardLink -> WinKit.Tools.CreateHardLink

OBSOLETE

Some methods were renamed for better consistency of existing and future public
names. The old methods still exist but will be removed in the next version:

- Remaned $Psf.CollectHistory() into $Psf.GetHistory().
- Remaned $Psf.InputPowerShell() into $Psf.InputCode().
- Remaned $Psf.ExpandPowerShell() into $Psf.ExpandCode().
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.29 (+ Far.NET 3.3.29 + PowerShellFar.doc.1.1.29)

PLUGIN

- Good news for those who uses PSF frequently - now PS is initialized in the
background, so that FAR starts much faster (if PSF was preloadable) and the
first PS command is invoked without a delay. Option "Plugin preloadable" was
removed from settings at all.
- BUT, FOR EDITOR EVENTS (just in case is you use):
this scenario does not allow you to install editor handlers from the main
profile ("Main startup code"); you have to move all such code to a separate
profile defined by new option "Editor startup code" (code executed once when you
open editor the first time). See more in updated help topic "Plugin settings".

- Removed operation "Close session". It was not really useful, but it was able
to make problems, e.g. on existing editor handlers added from scripts. When you
really need a new session then restart FAR or open another one.

FIXED

- Search-Regex-.ps1: fixed error message on [Enter] on already opened file.
- Fixed unwanted creation of global variables in internal operations of
TabExpansion and PropertyPanel ($line, $lastword, $item, $literalname, $name)
and in scripts (handler scriptblocks executed in global scope were converted
from {..} to {&{..}}, so that their variables are in a local scope).

NEW

- New small job test in Test-Job-.ps1 (TEST 3)
- New predefined global function Show-Balloon (defined in PowerShellFar.ps1).
It is used to notify about startup code errors. You can use it too. E.g. type
in command line:
>: Show-Balloon 'Title' 'Message'

CHANGES

- Improved output of background jobs on Write-{Debug|Error|Verbose|Warning}.
- Minor simplification of Robocopy-.ps1

OBSOLETE

- As it was announced in 1.1.28 obsolete methods were removed:
$Psf.CollectHistory(), $Psf.InputPowerShell(), $Psf.ExpandCode().

HOUSEKEEPING

- Internal profile PowerShellFar.ps1 is not distributed any more, but it is
still used internally (Sources\Resources\PowerShellFar.ps1)
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.30 (+ Far.NET 3.3.30 + PowerShellFar.doc.1.1.30)

LIST MENUS (with incremental filter - NEW!)

- Far.NET introduced a new UI feature: list menu (IListMenu). It is used in
menus that are rather object lists than command sets. In PSF they are now:
Command history, Expand code (TabExpansion), Complete-Word-.ps1,
Select-Menu-.ps1, Show-History-.ps1. All these menus have incremental filter
and some of them still have permanent filter (primary). Both filters may work
together. Note that default permanent filter key changed to CtrlDown (but it is
configurable now).

SETTINGS

- $Psf.Settings has new properties, kind of user preferences, mostly UI. See
more in .hlf, .chm and some examples in Profile-.ps1

FIXED

- Panel-Object-.ps1: fixed call with -Append switch.

MISC

- "TabExpansion-.ps1": all parameter set (i.e. -[Tab]) is sorted and contains
unique names (it used to return parameters by groups which is not good now for
new incremental filter).
- Changed Job.State type from string to enum PipelineState (it is not breaking -
in scripts you may continue using strings).
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.31 (+ Far.NET 3.3.31 + PowerShellFar.doc.1.1.31)

FAR MACROS PANEL (multi-line sequences are supported)

- New script Panel-Macro-.ps1 (alpha) to explore and view/edit macros. Note that
F4 on a Sequence allows to edit multi-line macros in FAR editor. You work on a
macro in a panel, not in modal dialogs, so that you can save (CtrlS) a macro,
test it and continue edit immediately. See more in the script comments.

PROVIDER ITEM PANELS

- Enabled operation copy-here (ShiftF5) for more providers. E.g. working with
macros (i.e. Registry provider), see above, you can duplicate a macro in the
same area with a new name. As usual you can copy/move items to another item
panel (for macros use the second macro panel).

OTHER POWER PANELS

- Some functionality was added to Power panels for the sake of Panel-Macro-.ps1.
Actually it shows how to create and configure a provider item panel for special
data with special operations. This approach is very promising and it will be
further developed (read, changed).

MENUS AND LIST MENUS

- Quite a number of Far.NET changes to improve intelli-lists and other list
menus (TabExpansion, Complete-Word-.ps1, history, etc.). If you use in your
scripts IMenu filters, then you have to migrate to IListMenu. IMenu now is pure
set of commands and optional break keys, just like in FAR. IListMenu is designed
for much more. See history in Far.NET 3.3.31 and updated documentation.

TABEXPANSION

- TabExpansion-.ps1 - improved expansion of full paths (i.e. with slashes)
including registry and network paths.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://farnet.googlecode.com/files/Fix. ... o-.ps1.rar

Panel-Macro-.ps1:
*) Fixed a couple of bugs;
*) Improved: it can be also called from editor or viewer to edit a macro sequence in another editor.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.32 (+ Far.NET 3.3.32 + PowerShellFar.doc.1.1.32)

NEW: Update-Far.ps1

Update-Far.ps1 downloads new alpha version and updates FAR. It is OK and even
better to run this script from FAR (in this case you don't have to specify
parameter -FarDir) . Note that it is standard PowerShell script, not PSF.

NEW: step queue tools

Many FAR operations are executed only when FAR gets control, i.e. when your code
has finished. This restriction is quite a problem if you actually want several
such operations to be executed together. Step queue technique in PowerShellFar
may help:

- Plugin option Hotkey ~ $Psf.Settings.PluginHotkey; it should be set to the
PowerShellFar hotkey from the F11 menu. It is needed for step queue processing.

- New methods $Psf.Go()/ToGo(), plugin command "Go!" - tools of a step queue
processing. Script Test-Go-.ps1 shows what it is and how it works. See its
comments for more or just run it.

- Power panels (e.g. opened by scripts Panel-*.ps1 from Bench) can now be
started not only from panels but also from not modal editors and viewers.

PROVIDER ITEM PANEL

- Implemented work around Rename-Item problems with symbols *?[]. E.g. it was a
problem to rename a macro "Ctrl[" in Panel-Macro-.ps1. It should work fine now.

FAR MACROS

Panel-Macro-.ps1:
- Fixed a few bugs.
- You can call it from editor or viewer to edit a macro sequence in another
modal editor (call by "Invoke input code" or better add a command to the user
menu/code, see Profile-.ps1).
- [F4] (NEW) on a macro opens a modal editor to edit a sequence; if you want to
view/edit other properties as usual press [Enter] (in this case [F4] opens not
modal editors).

OBSOLETE

- Far.NET: IFar.AnotherPanel will be removed, use IFar.Panel2 instead.
- Will be removed or changed: [CtrlA] = "open properties" in ItemPanel (e.g.
Registry, key values). Use [ShiftEnter] instead.

MISC

- Settings.MaxHistoryCount: number of commands kept in the registry.
- MemberPanel and PropertyPanel remember the last current item name; when you
open a panel next time then an item with this name is current.
- SetEdit() moved from UserPanel to AnyPanel, so that you can override default
action; example: Panel-Macro-.ps1: [F4] opens an editor in customized Registry
panel (try the same in standard Registry panel - operation is not supported).
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.33 (+ Far.NET 3.3.33 + PowerShellFar.doc.1.1.33)

NEW

- Many new features were added to FAR.NET, see its History.txt; the most
interesting is pushing panels (you can now keep as many panels as you want) but
there are even more new features. PowerShellFar shows them in new test scripts.
- Script Panel-Test-.ps1 shows basic operations on base FAR.NET panels including
new features: custom key bar labels and custom info panel lines.
- Script Test-OpenFile-.ps1 shows how to use OpenFilePlugin FAR API.
User avatar
NightRoman
Posts: 6034
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 20 times
Been thanked: 49 times
Contact:

Post by NightRoman »

http://code.google.com/p/farnet/

1.1.34 (+ Far.NET 3.3.34 + PowerShellFar.doc.1.1.34)

SETTINGS AND CONFIG

- Prefixes (main and jobs) are removed from PSF settings and the config dialog.
FAR.NET now takes care of all plugin prefixes, see FAR Options \ Plugins
configuration \ .NET \ Prefix tools.
- PowerShellFar probably lost its hotkey, go to Options \ Plugins configuration \
.NET and set a hotkey by ampersand in Panels tools, Editor tools, Viewer tools
(yes, a plugin now may have different hotkeys in different areas).

PANELS

- Plugin menu command "Power panel" works also from not modal editors\viewers.

STEP QUEUE TOOLS

- Step queue processing was partially moved into FAR.NET, so that any FAR.NET
plugin can use it too. As a result PSF does not need the menu command "Go" and
configuration option hotkey, they were removed.
- New class PowerShellFar.Stepper implements all this and provides more control
on step processing. New script Test-Stepper-.ps1 is an example.

IMPROVED

- Avoided "Can not write at this moment..." limitation. A script does not fail
now, its output is written to the user screen (under panels). In other words,
Write-Host should work always. Write-Error still has some limitations, e.g. it
fails when it is called from Stepper steps (but it is not really a big deal).
Post Reply

Return to “Анонсы новых плагинов”