PowerShellFar — Windows PowerShell host for Far Manager

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

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

Latest post of the previous page:

http://code.google.com/p/farnet/
(+ latest FAR.NET and documentation)

Reminder: PowerShell V2 CTP2

1.1.49

PSF CORE

- OBSOLETE $Psf.HotLine was moved to FAR.NET; use it as $Far.Line

- Member panel: fixed unwanted extra properties in V2 CTP2 (e.g. for DataRow:
RowError, RowState and etc.)

- Invoke script from editor (F5): set system current directory and PS current
location to the file directory before invoking; this is perhaps less flexible,
but it is more expected. Also, set FAR title to 'Running...' and 'Done' before
and after invoking.

SCRIPTS

- Get-KeyMap-.ps1:
*) renamed from Get-KeyMap.ps1 because it depends on FAR.NET.
*) description of macros with restrictions starts with '+'.
*) if description is empty then sequence is shown instead.

- Go-Selection-.ps1:
"Go to selection start\end": it works not only in editor but also in command
line and dialog edit boxes. Profile-.ps1 enables these PSF user menu items for
Dialog and Panels areas, so that this operation can be used by macros.

- Profile-Editor-.ps1:
Removed processing of Left and Right ("go to selection start\end") because now
it can be done by uniform macros in all suitable areas.

- Panel-Macro-.ps1:
Simplified a lot and improved due to new FAR.NET macro tools. As a result, macro
member panel is automatically improved, at least validation of input is better.

- Profile-Editor-.ps1:
Removed some code to be used via macros. Still left some code calling Go-Home-
on [Home] key as an example. Mouse right click: show trivial Cut \ Copy \ Paste
menu.

- UserCode-.ps1:
Revison of code and usage. Added call to Robocopy-.ps1 (from panels) to copy the
current folder item to another panel. Added call to Set-Breakpoint-.ps1 for the
editor and *.ps1 file in it.

EXTRAS

This new folder will contain rarely needed tools mostly for configuration tasks
and other extra files, e.g. for Colorer.

- New script Install-Macro-.ps1 uses new FAR.NET macro features and allows to
install key macros for some available PSF tools. This is a demo, normally you
should use only what you need from this script and you may also want to change
used keys and hotkeys.

- Some of distributed files and scripts moved to EXTRAS directory.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FAR.NET and documentation)

Reminder: PowerShell V2 CTP2

1.1.50

- Invoke script from editor (F5): improved logic of external viewer window
activation.

- Start-MSBuild-.ps1: slightly improved error messages.

- Some work on documentation.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FAR.NET and documentation)

1.1.51

PLUGIN

*) Operation ``Invoke script from editor (F5)'': set FAR title after invoking to
``Done <time>''. It is useful when a script has no output: at least changed time
tells that the script really was invoked.

NEW SCRIPT SET-SELECTION-.PS1 AND RELATED CHANGES

*) It changes the selected text in editor, command line or any dialog editbox.
For now there are three options: -ToLower, -ToUpper (similar to EditCase plugin)
and -Replace (covers removed Escape-Selection-.ps1, see below).
*) Updated script Profile-.ps1 to add items ``To lower case'', ``To upper case''
to the user menu, so that these operations can be called by macros.
*) Updated script Extras\Install-Macro-.ps1 to install this macro in three
areas: Editor, Shell, Dialog. It uses keys CtrlU, CtrlShiftU for -ToLower,
-ToUpper (a la Visual Studio and some other editors).
*) Updated Test-Editor-.ps1 to cover new and changed functionality by tests.

REMOVED SCRIPT ESCAPE-SELECTION-.PS1

*) It is removed because in fact its functionality is completely covered by
Set-Selection- (see above). Of course, you may keep and use the old script.
*) Updated script UserCode-.ps1 (items ``Escape'', ``Unescape'') accordingly.

SCRIPT DEBUG-MSG-.PS1

*) Data are shown together with their type names.
*) Data are sent as arguments (as usual) or via pipeline (new feature).
*) EXAMPLES
>: Debug-Msg- $Far
>: $Far | Debug-Msg-

SCRIPT GO-SELECTION-.PS1

*) Fix: it did not work in command line and dialog editbox when an editor was
opened.

TABEXPANSION

*) Expansion of @variable, e.g. @co[tab] -> @CommandLineParameters

COLORER

*) PowerShell.hrc:
-- reviewed representation of constants and system variables
-- parameter variables @name are supported, too
-- numbers are slightly simplified
*) RomanConsole.hrd: changed colors to make them closer to Visual Studio and
Graphical PowerShell colors.
*) RomanRainbow.hrd: (NEW FILE): RGB palette; it is used for example for creation
of colored HTML pages from source files (by colorer.exe). It is generated from
RomanConsole.hrd, i.e. HTML should have same colors as FAR editor.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FAR.NET and documentation)

1.1.52

*) Test-Dialog-.ps1 uses IControl.Drawing to draw a user control. It shows main
techniques: calculates absolute coordinates using absolute IDialog.Rect and
relative IControl.Rect and writes text by IFar.WritePalette and IFar.WriteText
methods using standard FAR palette or only standard background or foreground.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FAR.NET and documentation)

= 1.1.53 =

*** IMPORTANT: NEW POWERSHELL VERSION ***

This version requires PowerShell V2 CTP3. Older versions of PowerShell will not
be supported. Even with new bugs (yes, there are a few) PowerShell V2 CTP3 is
much better and more powerfull than any older version.
http://go.microsoft.com/fwlink/?LinkID=131969

V2 CTP3 CHANGES

*) The PSF engine did not require any changes for V2 CTP3, but some scripts
were updated due to breaking changes in V2 CTP3.

*) Built-in help comments were included in scripts, so that you can now (just a
few examples):
>: My-Script.ps1 -?
>: man My-Script.ps1
>: help My-Script.ps1 -full

*) TabExpansion mechanism is updated so that it uses new CTP3 features where it
is possible.

*) Reindent-Selection-.ps1 takes into account new block comments <#..#>.

*) Colorer: PowerShell.hrc is updated to reflect changed and new CTP3 features:
renamed\removed\new cmdlets, block comments, auto-help comments, etc.

OTHER CHANGES

*) New script Invoke-Shortcut-.ps1 opens a shortcut file (.lnk) in FAR in a few
ways. See comments there or just use new CTP3 feature auto-help, that is type
one of the commands:
>: Invoke-Shortcut-.ps1 -?
>: man Invoke-Shortcut-.ps1 -full
(assume the script is the system path)

*) Fixed occasional mysterious error message "Not enough storage..." on running
the first interactive command in a session from the FAR command line or the
editor console.

*) PSF command history - Ctrl-R removes duplicates (it is more standard shortcut
than Delete; Delete still does the same, but in the future this action may be
changed, perhaps).

*) Install-Macro-.ps1 - added "easy prefix" macro ']' in Shell area (John Doe
proposed '>', but it is a matter of preference, of course; besides, ']' allows
one hand typing). So, ']' in empty command line is expanded to '>: '.

*) Test-Dialog-.ps1: fixed variable conflicts in user control Drawing handler:
used extra block &{..} that makes variables local and avoids the conflicts.

Happy New Year!

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FAR.NET and documentation)

= 1.1.54 =

*** REMINDER: POWERSHELL V2 CTP3 ***

*) New script Panel-FileTransfer-.ps1 uses new CTP3 module FileTransfer. Starts
or manages file transfer jobs in a panel. Suitable for transferring very large
files from\to Web or across network; you start jobs and then you can exit FAR
or even restart the machine: jobs will be still working in the background.

*) New script Download-FarUpdate.ps1 downloads FAR and plugin archives from Web
(nightly builds) to a special update directory. Only new files are downloaded.

*) Script Update-Far.ps1 is renamed into Install-FarUpdate.ps1 and moved to
Bench directory. Changes: 1) as far as now FAR updates are 7z files, RAR in the
script is replaced with 7z or 7za (whatever found first); 2) all the files from
the archive are now updated (including for example Headers.c)

*) Script Panel-Process-.ps1: 1) panel data are updated automatically when
idle; 2) [Enter] opens the current process menu with new command "Show WMI
properties"; 3) on exit from a child panel the current process is restored.

*) Script Install-Macro-.ps1 moved from Extras to Bench directory. Thus, all
the utility scripts are in Bench directory now. Directory Extras is for other
tools, e.g. files for Colorer.

*) Get-FarPath cmdlet - new parameter -Mirror, it helps to get destination
paths on the opposite panel with source item names.

*) Start-FarPanel cmdlet - a few new parameterers that set some basic panel
properies before panel start.

*) Helper class PowerShellFar.ScriptComparison: yet another way to set
DataComparison in IPanelPlugin (but recommended way is to use a parameter in
Start-FarPanel, see Panel-Process-.ps1, Panel-FileTransfer-.ps1)

*) ObjectPanel - fixed a few problems for items that are not PSObject.

*) Minor UI improvements (hopefully). For example in some menus [Esc] was
actually associated with some actions - this was rather confusing, fixed now.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FAR.NET and documentation)

= 1.1.55 =

** REMINDER: POWERSHELL V2 CTP3 **

*) New cmdlets New-FarMenu and New-FarItem help to write menu code in easy
PowerShell style (.NET style is still available, of course). The scripts in
Bench now use this new approach. The code is shorter, and more important,
TabExpansion works for cmdlets and their parameters.

*) New cmdlets New-FarList and Out-FarList - same as above but for list menus.
Bench scripts use them instead of $Far.CreateListMenu() and Select-Menu-.ps1.

*) Select-Menu-.ps1 is removed as not needed. Keep it yourself or better use
new Out-FarList. Note that in code you cannot just replace Select-Menu- with
Out-FarList because a few parameter names are changed, they now conform
IListMenu names, see:
>: man Out-FarList

*) New cmdlet New-FarFile creates plugin panels items in PowerShell way.

*) New cmdlet Show-FarMsg is a PowerShell alternative of 5 $Far.Msg() methods.
BTW, OBSOLETE: FAR.NET IFar.CreateMessage() and IMessage will be removed soon.

*) New test Test-Watch-Output-.ps1 just shows how Watch-Output-.ps1 works (in
particular with long lines and many lines).

*) Download-FarUpdate.ps1 - cosmetic changes and some new output messages, for
example what downloaded files really have new build numbers.

*) TabExpansion - fixed: parameters of some commands were not sorted.

*) Logic of FAR.NET IKeyMacroHost.Install() is changed, so that it is easier to
use; as a result, the script Install-Macro-.ps1 is simplified a little bit. In
two words: 1) we don't have to call Save() and Load(); 2) we can install all
the macros by one call (if we want).

*) Install-Macro-.ps1: new macro [ShiftBS] shows how to run PSF from command
line without prefix (it is not something new, just in case). BTW, this mode
has a bonus: if a command fails (often due to mistakes in it) its text is still
in the command line, ready for correction, even cursor position is the same -
this really saves time on composing complex commands.

*) Built-in PowerShell function 'help' is replaced with another one for two
reasons: 1) redirection to 'more' is useless in PSF; 2) if Get-Help fails then
Get-Usage is called (assume it is in %PATH%), so that you can get some help for
PSF cmdlets, e.g.
>: man New-FarFile # should work and get help
>: help Out-FarList # ditto
>: Get-Help Out-FarList # still fails (with confusing msg)
(N.B. use of Get-Usage is temporary, standard PowerShell help will be provided
for PSF cmdlets as soon as PowerShell has tools for that, as they promise).

*) Cmdlets New-FarEditor, Start-FarEditor - a few tricks with cmdlet parameters
(aliases, ValueFromPipelineByPropertyName) in some cases allow shorter commands
see help topic "PowerShellFar command examples".

*) Revised PowerShellFar.hlf reflects many recent changes. Also, many script
topics moved to script auto-help comments, this place looks more natural now.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FAR.NET and documentation)

* REMINDER: POWERSHELL V2 CTP3 *

= 1.1.56 =

*) PSF panels - removed two facilities making more evil than good: running code
from command line without prefix and use of artificial automatic variable $this
(some reasons are explained at forum). From now on rules are simple and uniform
for PowerShell code in command line: 1) we always use prefix; 2) the code is
standard PowerShell code without confusing helpers like variable $this.

*) PSF command history list: [CtrlEnter] now always allow to edit the selected
command before invocation. In panels and editor console it inserts the command,
in other areas it opens the "Invoke input code" dialog with the command text.

*) New script Go-To-.ps1 - a la far:goto but argument is not just a string, it
is a PowerShell expression. Also we can go to, for example, Registry provider
item panel. Profile-.ps1 sets an alias 'go' for this script.

*) REMOVED: Panel-Item-.ps1 is removed because Go-To-.ps1 actually replaces it.

*) TabExpansion
- improved expansion of script parameters: it should work in more exotic cases;
- all result strings are now sorted and duplicated strings are removed.

*) Out-FarPanel now by default does not append objects to already opened panel
because it is often confusing. Instead it opens a new panel. New switch -Append
should be used if we really want to append objects.

*) Download-FarUpdate.ps1 - can work with new .ini section [info]; also, now it
does not fail on unknown .ini options, it writes warnings.

*) Clear-Session.ps1 - fixed use of variable property Options.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FAR.NET and documentation)

= 1.1.57 =

ANNOUNCEMENT: FAR.NET 3.3.57 is presumably the last version for FAR 1.x. PSF
itself should not be changed for FAR 2.x. But it is quite possible that next
FAR.NET will have some breaking changes (not many, but...). In this case PSF
1.1.57 will be the last version compatible with FAR.NET 3.3.57 and they will
be frosen together. If you find new or know some old issues in this version,
report them as soon as possible.

*) ObjectPanel and its derived (but not yet DataPanel) - you can set a script
block as FarName and FarDescription, not just a property name, see example for
Out-FarPanel below (same as $panel.FarName = {...}).

*) Cmdlet Out-FarPanel - new parameters FarName, FarDescription (property name
or script block getting a string to display), IncludeColums, ExcludeColumns.

Code: Select all

# Examples (use Descriptions panel mode)
Get-Process | Sort-Object WS -Desc | Out-FarPanel -Include WS, Id
Get-Process | Out-FarPanel -FarName { $_.Name + ' ' + $_.Id} -FarDescription Company
Get-Command -Type ExternalScript | Get-Help | Out-FarPanel -FarDescription { $_.Synopsis -replace '\s', ' ' }
(The last command will get meaningful synopsis only for scripts that included
in the system path and use V2 CTP3 auto-help comments, for example all PSF
Bench scripts)

*) FAR 1.75.2520 introduced the macro function Editor.Sel() so that it is more
effective to use it for [Left]\[Right] macros instead of a script. Thus, PSF
commands "Go to selection start|end" will be removed one day, and the script
Go-Selection-.ps1 will be disconnected (not removed completely, it is still
useful for other tasks). See how Install-Macro-.ps1 uses new Editor.Sel().

*) Fix in Download-FarUpdate.ps1 - '(NEW BUILD)' was not shown for FAR itself.

*) New scripts Build-FarEnc.ps1 and Test-HtmlLink.ps1 - they are not included
into PSF but submitted to FAR sources by Skirda: enc\tools\contrib\nightroman.
Now anytime you can download the latest fresh FAR API enciclopedia sources and
build Russian or English CHM help file yourself by Build-FarEnc.ps1 (you have
to have HTML Help Workshop or just hhc.exe, of course).

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar — выполнение команд PowerShell в единой сессии

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FarNet and documentation)

= 2.0.0 =

ANNOUNCEMENT

From now on PowerShellFar 2.x is for Far 2.x. Versions 1.x are officially not
supported. It is not recommended to keep PowerShellFar 1.x scripts in the
system path when you use PowerShellFar 2.x.

This is the first and mostly technical phase of transition from Far 1.x to 2.x.
Next FarNet and PowerShellFar versions will use new Far API more effectively.

INSTALLATION

*) If you use or used PowerShellFar in Far 2.x then remove all PSF files from
Far directory.

*) If you will continue use of PSF 1.x with Far 1.x then make sure that your
PSF script directory (Bench) is not used by new and old PSF versions.

BREAKING CHANGES

*) These are FarNet changes, but PSF scripts may use FarNet API directly, so
that check and update your scripts. See breaking changes in FarNet History.txt

OTHER CHANGES

*) External viewer: when you use incorrect settings and PSF cannot start it
then it shows an informative message and starts the default external viewer.

*) Simplified and optimized ObjectPanel code internally.

*) Other changes are migration changes, functionality is not affected.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar - Windows PowerShell host for Far Manager

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FarNet and documentation)

= 2.0.1 =

** REMINDER: Far 2.x, read History.txt = 2.0.0 = **

*) Install-FarUpdate.ps1 - now it can update plugins from .7z archives, too.
You may set -Target path or let the script resolve the target by a .dll file
from the archive.

*) Changed location of PSF console files from %TEMP%\psfconsole to %APPDATA%\
PowerShellFar\psfconsole. These files are not really temporary, so that %TEMP%
location is not suitable.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar - Windows PowerShell host for Far Manager

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FarNet and documentation)

= 2.0.2 =

*) New script Start-Far.ps1 - It is a helper for running FAR from PowerShell
console in /rc mode (restore console on exit). On exit from FAR it sets the
last panel directory current and updates the current PowerShell location.

*) Script Download-FarUpdate.ps1 - If there are new builds downloaded it
prompts to install them immediately using Install-FarUpdate.ps1.

*) Script Go-To-.ps1 - If '*' is used as a path parameter then you are prompted
to select one of standard system folders from a list.

*) Script Invoke-Shortcut-.ps1 did not work with spaces in paths. Fixed.

*) IFar.GetHistory() now returns correctly ordered strings. As a result, the
script Show-History-.ps1 was simplified. It behaves slightly differently but
faster and its new behaviour is similar to FAR.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar - Windows PowerShell host for Far Manager

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FarNet and documentation)

= 2.0.3 =

*) Good news: [CtrlC] stops running interactive commands. Normally it is not
recommended, but sometimes it is OK, just think. Note: it has nothing to do
with background jobs (stopped by [Del] in the job list) and script blocks in
menus or event handlers in editor, panels, etc. (they cannot be stopped).

*) Show-History-.ps1 uses new IFar.GetHistory() with extra parameter 'filter',
to show only 'View' and 'Edit' file paths from history, not 'Ext.'.

*) PowerShell.hrc for Colorer - comments '###' are treated as 'Outlined', so
that Colorer command 'Outliner list' shows functions, filters and all lines
with '###' comments. It can be used effectively for navigation in a script.

*) New database approach. In scripts working with databases we now use
DbProviderFactory and DbConnection parameters or predefined variables. This
allows to work with wider range of databases, in particular with modern SQL
Server Compact (.sdf files): very promising free desktop/mobile database.
As a result:
- Added new scripts Panel-DbData-.ps1, Panel-DbTable-.ps1
- Updated script Panel-Database-.ps1 (example of how to connect now)
- Updated Bench\Test scripts to work with both SqlClient and SqlServerCe.
- Removed scripts Panel-Data-.ps1, Panel-Table-.ps1; if you use them - do not
worry, keep them, for now they should work and should not conflict with new
scripts, hopefully. But it is strongly recommended to migrate to new scripts.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar - Windows PowerShell host for Far Manager

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FarNet and documentation)

= 2.0.4 =

*) FarNet IAnyViewer.ViewText() - switching to editor is enabled; as a result,
it is now possible to view commands output also in editor by [F6], with well
known advantages. See FarNet history for some more details.

*) ObjectPanel - hashtables and dictionaries objects - on [Enter] a new panel
with contaited items is opened. Old action: member panel is opened; it is still
available on [CtrlEnter].

*) Panel-DbTable-.ps1 fails if there is only one table in a database. Fixed.

*) Search-Regex-.ps1: dialog: if you leave edit box "Options" empty then it is
not an error, option "None" is assumed in this case.

*) Panel-Process-.ps1 shows how to call from PowerShell functions exported from
native DLLs. It is done by Add-Type with a piece of C# code.

*) Experimental tools from WinKit namespace were removed. If you use them then
keep the old WinKit.cs, build your own assembly from it or make it built-in in
scripts, see examples: Panel-Process-.ps1, Test-Zoo-.ps1.

*) More graceful death on fatal errors. If PowerShell engine cannot start then
PSF should not crash or hang. It keeps silence while you do not really use it,
then it shows an error and detaches itself from FarNet.

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar - Windows PowerShell host for Far Manager

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FarNet and documentation)

= 2.0.5 =

*) New IFar methods PostStepAfterKeys() and PostStepAfterStep(). This is a very
important achievement for "super-macros" that can be used now also with modal
dialogs, editors and viewers. PowerShellFar uses this mechanism by Stepper, see
the script Test-Stepper-.ps1, it shows how to open modal modes without
interruption of step sequences.

IMPORTANT: from now on FarNet + PowerShellFar can be used effectively for Far
Manager and any plugins unit testing (in any areas where plugins menu can be
called). The idea is to emulate various user actions by steps (script blocks
and keys) and to check validity of results dynamically by extra steps (script
blocks). See Test-Stepper-.ps1 again.

*) Download-FarUpdate.ps1: 1) restores current location and directory on exit;
2) reuses the same Net.WebClient object for all downloads; 3) calls Dispose()
for Net.WebClient.

*) Install-FarUpdate.ps1 used to fail if the target is not found or ambiguous,
now it writes a warning. As a result Download-FarUpdate.ps1 does not stop on
missed targets (e.g. if some standard plugins are not actually used).

User avatar
NightRoman
Posts: 5924
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 13 times
Been thanked: 14 times
Contact:

Re: PowerShellFar - Windows PowerShell host for Far Manager

Post by NightRoman »

http://code.google.com/p/farnet/
(+ latest FarNet and documentation)

= 2.0.6 =

*) New UI debugger tools, mostly dealing with various breakpoints. See the new
plugin menu item "9. Debugger...", select it and press [F1] for more details.
You can now add, view, enable, disable and remove breakpoints of 3 types: line,
command and variable. Each breakpoint can be either standard (breakes into the
debugger) or with action (triggers a piece of your code).

*) Removed the helper script Set-Breakpoint-.ps1 because its functionality is
completely covered by new built-in breakpoint tools.

*) Download-FarUpdate.ps1
- it can now download x64 builds, too
- adapted to new download list format

*) PowerShellFar.DataPanel - normally you have to set Factory property even if
you use known Odbc, OleDb or SqlClient database factory. Using a factory the
DataPanel is now able to work with any database provider.

*) Fixed a few issues with table names in Panel-DbData-.ps1, Panel-DbTable-.ps1

*) Start-MSBuild-.ps1 uses Microsoft.NET\Framework\v3.5\MSBuild.exe if found.
It allows to build *.*proj and *.sln files from VS 2008.

Post Reply

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