PowerShellFar — Windows PowerShell host for Far Manager

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

Re: PowerShellFar - Windows PowerShell host for Far Manager

Post by NightRoman » Wed 26 May, 2010 16:29

Latest post of the previous page:

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

= 4.3.21 =

NOTE: update manually (not by Update-PowerShellFar.ps1). This script and its
parameters are redesigned to be less sensitive to future changes in archive
list and archive contents.

*) Far /w mode
-- Fixed TabExpansion and Complete-Word-.ps1 menu position.

*) TabExpansion
-- Applications are also added to candidates (gcm * -type application). It's a
little bit noisy, perhaps (that's why it was not done), but it looks like we
better have these candidates in the list, too.

*) Script debugging dialog
-- New button [View]: Opens an external viewer to view the running command
output. This action is not available for some commands, e.g. editor console
commands.

*) Command output (continued)
-- The command "Invoke script from editor" ([F5] in the editor with .ps1 file)
has the same effect as if it is invoked from the input command box (similar to
>>: commands from the command line). Output, if any, is shown in the internal
viewer when the command is done. External viewer is used only on debugging via
[View], see above.

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

Re: PowerShellFar - Windows PowerShell host for Far Manager

Post by NightRoman » Tue 01 Jun, 2010 11:33

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

= 4.3.22 =

*) FarNet raw UI moved to $Far.UI
-- PSF core and scripts now use this API and $Host.UI.RawUI, not Console.
-- Your affected scripts may have to be updated. Also, do not call Console
methods directly; instead, use FarNet or PSF APIs ($Far.UI or $Host.UI.RawUI).

*) TabExpansion #-patterns
{#|#xyz|xyz#}[Tab] patterns are expanded into custom patterns from the
TabExpansion#.txt in the PSF home directory. Patterns are basically any
strings, one per line. # in patterns is treated as the caret insertion
point after expansion. These patterns can effectively cover not standard
or rare but still useful cases.

Examples:
#[Tab] -> all patterns
#*null -> [AllowNull()], [ValidateNotNull()], ...
$#[Tab] -> $LastExitCode, $MyInvocation.MyCommand.Definition, ...
[Al#[Tab] -> [Alias('#')], # is removed and the caret is set there

If TabExpansion.ps1 is used in other hosts then this feature is used to expand
command history entries there.

*) Other changes
-- PowerShell.hrc for Colorer -- Added operator ::.
-- Assert-Far -- Added a few helper switches.
-- Help -- Minor improvements.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 13 Jun, 2010 17:32

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

= 4.3.23 =

*) Update-FarNet.ps1
-- This script replaces the old Update-PowerShellFar.ps1 (you may delete it).
-- New feature: for any FarNet product it asks to confirm its download/update,
so that you can skip not used packages and still use the script for updates of
other packages.

*) Edit-TextLink-.ps1
Links can include character numbers in addition to line numbers:
C:\Program Files\Far\FarEng.lng(36,22)
At C:\Program Files\Far\FarEng.lng:36 char:22
These links are opened at line 36 and char 22 (columns may depend on tabs)

*) >>: commands output viewer
-- Enabled switching to editor [F6] from the output viewer. Note: the tmp file
is deleted on switching but Far prompts you to save data when editor exits.
Switching to editor is used (for example) to open error sources from error
messages using Edit-TextLink-.ps1

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Mon 19 Jul, 2010 19:08

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

= 4.3.24 =

*) $Psf.Settings.MaximumPanelFileCount sets the limit for panel files to be
shown in an object panel without confirmation. Default is 1000, should be
enough for data preview in most cases. Try:
>: 1..10000 | Out-FarPanel

*) Edit-TextLink-.ps1 is renamed to Open-TextLink-.ps1 and:
-- Recognizes and opens URL addresses (by Start-Process, like Windows Run);
-- Supports Select-String output format links: <File>:<Line>:<Text>
(You may remove the old file Edit-TextLink-.ps1)

*) Menu-More-.ps1: commands "Edit text link" and "Copy text link" moved to main
PSF menu (see Profile-.ps1).

*) Panel-Database-.ps1
-- Uses sys.databases instead of sp_helpdb (it gets more useful info and shows
some problem databases, too).

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Mon 26 Jul, 2010 11:28

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

= 4.3.25 =

*) See FarNet: IEditor.BeginAccess/EndAccess are removed. PSF core and all the
scripts are updated accordingly.

*) TabExpansion.ps1
-- fixed minor issues on type/namespace expansion

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Wed 04 Aug, 2010 11:02

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

= 4.3.26 =

*) TabExpansion.ps1
-- Undone the previous change and fixed the original issues properly.

*) New library FarNet.Tools.dll (see FarNet)
These tools are created and used directly, not via $Far methods. For example to
create a SubsetForm add the library and then call New-Object:
Add-Type -Path $env:FARHOME\FarNet\FarNet.Tools.dll
$form = New-Object FarNet.Tools.SubsetForm
...

*) New test/demo Test-ProgressForm-.ps1
It demonstrates typical use cases of the new FarNet tool ProgressForm and
explains in code comments the common 4-steps scenario.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Mon 16 Aug, 2010 17:56

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

= 4.3.27 =

*) Show-FarMessage cmdlet
Allow null as the input text (show an empty message, do not fail).

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Fri 20 Aug, 2010 12:41

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

= 4.3.28 =

*) Test-Dialog+.ps1
Added test of IsTouched property of edit-boxes and combo-edits.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Fri 27 Aug, 2010 14:09

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

= 4.3.29 =

*) Search-Regex-.ps1
It calls new $Far.UI.SetProgressFlash() when it is done.

*) Import-Panel-.ps1
Added support for the Txt format (tab delimited data files).

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 12 Sep, 2010 12:36

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

= 4.3.30 =

*) Select-Bookmark-.ps1
-- Updated for changes in Far 4.3.30
-- Stack bookmarks are included, too
-- Fixed an old bug

*) Install-Macro-.ps1
Added a few utility macros working with editor bookmarks including the call to
Select-Bookmark-.ps1

NB: for correct work with bookmarks use Far 2.0.1667+

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Wed 01 Dec, 2010 17:53

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

= 4.3.31 =

*) PowerShell.hrc for Colorer
Outlined: improved for functions, added for variables $global:X and $script:X
(with prefix). This allows to insert functions and variable names from the
outliner menu.

*) Object panel columns a la Out-GridView in some cases:
- Same primitive types: 1 column (TypeName)
- Mixed types: 3 columns (##, Value, Type)
Compare these two panels:
>: '42', 'foo' | Out-FarPanel
>: 42, 'foo' | Out-FarPanel

*) Minor fix: removed misused IEditor.IsModified from editor scripts.

*) Removed cmdlet Trace-Far
It is not proven to be useful. Just call [Diagnostics.Trace]::Trace* methods
directly (see Test-Stepper-.ps1) or use more advanced .NET TraceSource class.
As a result:
- Test-Stepper+.ps1 does not trace (too much for a demo)
- Test-Stepper-.ps1 shows use of standard .NET tracing

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 12 Dec, 2010 15:48

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

= 4.3.32 =

*) Removed Go-Home-.ps1
The code and commands are moved to FarNet.RightControl module. Updated
Profile-.ps1 and Profile-Editor-.ps1 accordingly.

*) Install-Macro-.ps1
-- Added mouse macros for FarNet commands Decrease/Increase font size.
-- Common\AltF11 is not used (to be used by another FarNet module).
-- Shell\CtrlC to copy selected text.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Tue 14 Dec, 2010 08:52

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

= 4.3.33 =

Technical build for the fixes in FarNet 4.3.33.

*) Reformat-Selection-.ps1
Added *.R files to '#' line comments file group

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 02 Jan, 2011 14:20

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

= 4.3.34 =

Technical build for the fixes in FarNet 4.3.34.

*) Test-Dialog+.ps1
Enabled for x64, too.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sat 08 Jan, 2011 06:50

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

= 4.3.35 =

*) Added the [Atl1] hotkey to the PSF menus
- Bare dialog to input and invoke code. It is designed for macros.
- Install-Macro-.ps1 uses the hotkey [Alt1] instead of [1].
- "F11 <PSF> Alt1" discards command output, if any.
- "F11 <PSF> 1" may be used for macros with output.
- See help "Command and macro examples".

*) FarDescription module
- Do not trim leading white spaces.
- Test-Descript-.ps1 covers this change.

*) Import-FarSettings.ps1
Preserves some local data of the Vessel module.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 16 Jan, 2011 18:58

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

= 4.3.36 =

*) FarMacro module
Moved the temporary files folder %APPDATA%\FarMacro to %TEMP%\FarMacro.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 23 Jan, 2011 15:22

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

= 4.3.37 =

*) Removed the hotkey [Alt1] from the main menu
- THIS CHANGE BREAKS MACROS: F11 <PSF> Alt1 ...
- Use the callplugin() instead, see FarNet's Readme.txt. Update affected macros
(and do not forget documentation/comments, too).
- Updated Install-Macro-.ps1

*) Better UI culture support, e.g. for scripts localization
$PSUICulture and $Host.CurrentUICulture are internally connected to the currect
culture of the PSF module. Thus, e.g. Import-LocalizedData may work with the
current culture by default (it uses $PSUICulture).

*) Cmdlet New-FarEditor
Replaced parameter Data with Host. As far as a caller creates the editor, it is
OK to consume the Host property: it is simpler to use than the Data.

*) Cmdlets Out-FarPanel, Start-FarPanel
Parameter Data is now IDictionary, not Object (due to FarNet changes).

*) New role of FarNet IEditor.Data, IPanel.Data:
Edit-FarDescription-.ps1, Panel-DbTable-.ps1, Search-Regex-.ps1,
Watch-Output-.ps1

*) Profile-.ps1
Removed menu action 'Edit recent file' (it's done by Vessel, if used).

Post Reply

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