http://code.google.com/p/farnet/
(+ FarNet and API documentation)
= 4.3.1 =
!! This time update manually, do not use Update-PowerShellFar.ps1 and read
about FarNet folder structure changes. In short: PSF folder now is:
%FARHOME%\FarNet\Modules\PowerShellFar
REFACTORING: PLUGINS -> MODULES AND OTHER NAME FIXES
*) See breaking name changes in FarNet History.txt; your scripts that use
changed names should be updated. In PSF, in addition:
-- Show-FarMsg -> Show-FarMessage
-- Removed script Debug-Msg-.ps1. In fact, it was not very useful since the
debugger was implemented.
*) Removed the term "plugin" from two properties\options. Rename:
2 properties in $Psf.Settings (just in case if scripts use them) and
2 registry values of HKEY_CURRENT_USER\Software\Far2\Plugins\PowerShellFar:
-- PluginStartupCode -> StartupCode
-- PluginStartupEdit -> StartupEdit
POWERSHELL MODULES
(Yes, modules, just like in FarNet, the same approach but for PowerShell)
*) These modules are standard PowerShell modules. But they:
-- are normally designed for FarNet and used with the PSF FarHost;
-- do not use PowerShellFar directly (at least this is not recommended)
*) Default Modules directory
Directory "$($Psf.AppHome)\Modules" is added to $env:PSModulePath on loading,
so that all modules in this directory are available at runtime. As usual,
import them by Import-Module. In UI there is also the "Modules+" menu.
NEW MODULE FARMACRO
(Actually the first for the FarHost)
Cmdlet New-FarMacro moved there from the PSF core (it's good to keep some not
frequently used tools like this in modules: they are loaded only when needed).
Switch -Install is removed, instead a new cmdlet is added: Set-FarMacro.
New provider FarMacro with its default drive FarMacro:\. Provider panels work
for FarMacro automatically: edit, copy, move, rename, create, remove, and etc.
NOTE: The script Panel-Macro-.ps1 is not yet upgraded, it still works directly
with "old" Registry provider, not yet with "modern" FarMacro. To be continued.
For more details:
>: Import-Module FarMacro; man about_FarMacro
NEW MODULE FARDESCRIPTION
(Actually works for any host)
Though it is designed for Far it does not depend on Far or FarNet, it works in
any PS host (i.e. you can work on descriptions using standard Console and ISE
hosts or any others). But it uses Far description settings from the registry:
HKEY_CURRENT_USER\Software\Far2\Descriptions
All the code dealing with descriptions, including the Update-FarDescription
cmdlet, moved to this module.
For more details:
>: Import-Module FarDescription; man about_FarDescription
OTHER CHANGES
*) Menu action "Help" did not work in the cmdline with PSF prefixes. Fixed.
*) Provider panels: improvements for "unknown" not configured providers.
*) Show-KeyMap-.ps1: updated for FarNet 4.3.0 changes; added the dialog key
map; added more special keys; added area names to key names.
*) Reformat-Selection-.ps1: added detection of comments for some known file
types of PowerShell, Perl, Python, Ruby, PHP, SQL, Lua, Cmd, Basic.