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 » Tue 16 Feb, 2010 12:01

Latest post of the previous page:

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

= 4.3.5 =

*) Module FarMacro: New cmdlet Edit-FarMacro allows to edit macro sequences in
the editor with syntax coloring (Colorer plugin) and syntax checks on saving
($Far.Macro.Check()). See also about_FarMacro.help.txt

*) Script Panel-Macro-.ps1: it is now based on the FarModule completely. In
particular the -Editor mode is removed, use new Edit-FarMacro cmdlet instead.

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 20 Feb, 2010 20:17

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

= 4.3.6 =

UPDATE STEPS

Remove the registry key "Far2\Plugins\FarNet" and make sure you do not start
old FarNet after that, otherwise you will get never used FarNet registry data.

The PowerShellFar registry settings moved from: "Far2\Plugins\PowerShellFar" to
"Far2\Plugins\FarNet.Modules\PowerShellFar.dll". You should reset configuration
or move the old registry properties, for example, using the registry panel.

See FarNet History.txt for changes there, some scripts may be affected.

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 01 Mar, 2010 11:48

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

= 4.3.7 =

See FarNet History.txt for changes there, some scripts may be affected.

Registry: PSF command history moved from "SavedDialogHistory\PowerShellFarHistory"
to its module data location: "Plugins\FarNet.Modules\PowerShellFar.dll\CommandHistory"
Move\rename it using two registry provider panels (or maybe just remove the old location).

New cmdlet Assert-Far: the helper for testing and debugging. If the conditions
fail it breaks execution and prompts for choices: one is to break into the PSF
debugger (may continue), another is to open a script in the editor at the
assertion line (stops).

In fact, "Assert-Far $false" (same as "Assert-Far") is a hardcoded breakpoint.

Assert-Far with the parameter -Title is designed for production scripts:
it shows a simple message and stops in a friendly way without much noise:
Assert-Far ($Far.Window.Kind -eq 'Editor') "Run from editor!" -Title "Oops"

Debugger dialog:
-- New button [Break] stops the pipeline (throws PipelineStoppedException).
-- Replaced [Goto] with [Edit] and [Goto] buttons and fixed a [Goto] bug.

FarMacro module: added support of Consts and Vars areas. Cmdlet Edit-FarMacro
and script Panel-Macro-.ps1 also support these areas and allow to work there.
All standard Far data types are supported: text, dword, qword.

ObjectPanel: fix: when it is used as a temp panel for any objects it should be
updated on copying objects from another panel.

Panels: obsolete and not used property and parameter "AutoSize" was removed
from panels and cmdlets. There are no plans to use it in the future: default
columns are good enough for data preview.

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 02 Mar, 2010 21:17

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

= 4.3.8 =

Improved TabExpansion of type and namespace names. Changed the global type
cache $TabExpansionCache from DataTable to Hashtable. Some of improvements:
-- more names are covered, this works now: [mi[Tab] -> [Microsoft. ...
-- A dot is added automatically to namespace names (ready for the next [Tab])

Other new TabExpansion features:
[*...[Tab] -- global search: the type cache is not used; example: [*farmac[Tab]
is expanded to type names with 'farmac'; it should always work after loading of
the FarMacro module.
[...*[Tab] -- '*' tells to update the global cache before expansion; example:
[farmac*[Tab] should always work after loading of the FarMacro module; compare:
[farmac[Tab] does not work if FarMacro is loaded after $TabExpansionCache
creation.

Export-FarSettings.ps1 and Import-FarSettings.ps1 use the file FarSettings.xml
where PSF commands are exported to and imported from. On import PSF commands
are merged with existing in the registry.

Fix: Complete-Word-.ps1 was not updated for recent FarNet changes.

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 03 Mar, 2010 11:51

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

= 4.3.9 =

Technical build for FarNet 4.3.9.

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 06 Mar, 2010 15:21

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

= 4.3.10 =

PanelKeyEventArgs.Preprocess was removed, see FarNet news. Affected scripts
should be updated. Updated scripts in PSF: Search-Regex-.ps1, Test-Panel-.ps1.

Test-Panel-.ps1: added demo handler of the new event KeyPressing.

The $Psf.Settings.FormatEnumerationLimit (default is $FormatEnumerationLimit)
is used for object panel columns and list panel values display. Example: invoke
this command:
>: Get-ChildItem hkcu:\ | Out-FarPanel
.. and see that only a few first items is shown in the Property column. Compare
with standard PowerShell output:
>: Get-ChildItem hkcu:\
.. results should look more or less the same (visually, of course, panel output
is not text output, it shows live objects in the panel, not dead text).

Fix: Module FarMacro: a few issues with paths with end '\'.

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 15 Mar, 2010 17:11

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

= 4.3.11 =

DATA PREVIEW IN PANELS

Improved preview of enumerable types and some frequently used types in panels.

Simplified internal procedures of column set selection from properties. Default
column sets now may be not the same as in previous versions. Preview is preview.

Default column set selection in table panels: if there are too many properties
(more than $Psf.Settings.MaximumPanelColumnCount) then best candidates for N, Z
and O columns are moved to the left. Example:
>: Get-WmiObject Win32_PnPEntity | Out-FarPanel
.. the first columns are Name, Description, Status. Compare: in the old version
the column Name was not shown at all.

OTHER CHANGES

Copy objects from an object panel to another object panel: the target panel
should be updated automatically.

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 28 Mar, 2010 15:46

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

= 4.3.12 =

The PSF core and several scripts were adapted to the recent FarNet refactoring
changes in editor and editor lines API. See FarNet history for details. Scripts
working with that API have to be updated, more likely.

In addition: $Psf property HotText was renamed into ActiveText (just to be more
formal and to follow ILine.ActiveText). HotLines was removed as not really used.

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 06 Apr, 2010 13:55

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

= 4.3.13 =

Table and list panels: new feature "Apply command": [CtrlG] opens an input box
and prompts to enter a command to be invoked for each object $_ in the selected
or the current objects in a table panel or the target object in a list panel.

Table panel column meta information defined by hashtables: the key 'Type' which
defines Far panel column kind is renamed to 'Kind', so that the name is the
same as in the FarNet SetColumn class.

List and table panels and scripts:
*) Property ExcludeMembers (string[]) is replaced with ExcludeMemberPattern
(string, regular expression pattern). This way is simpler and more flexible.
*) Added new property HideMemberPattern for members to be included into the
member list but shown with IsHidden flag set.

Added parameters ExcludeMemberPattern and HideMemberPattern to the Out-FarPanel
cmdlet (HideMemberPattern is used in the new module FarInventory to hide some
noisy but still sometimes useful WMI properties).

New module FarInventory. This is a script module with a bunch of functions. It
contains just a few now, to be continued. See about_FarInventory.help.txt for
details or run this:
>: Import-Module FarInventory; help about_FarInventory

Fixed: [CtrlR] in object panels with custom columns used to show an empty panel
instead of refreshing the objects.

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 11 Apr, 2010 14:54

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

= 4.3.14 =

Module FarInventory

*) New functions: Show-InventoryPanel, Show-LogicalDiskPanel

*) Corrected Get-Uninstall for x64 machines (registry data should be taken from
more than one key). Note that in 32 bit process Get-Uninstall does not get info
about installed 64 bit products; in 64 bit process Get-Uninstall should get
information about 32 and 64 products.

TabExpansion

*) Added expansion of WMI class names immediately after Get-WmiObject, gwmi,
Invoke-WmiMethod, Register-WmiEvent, Remove-WmiObject, Set-WmiInstance with
optional -Class parameter. Examples:
gwmi win[Tab]
Get-WmiObject -Class *process[Tab]

*) Fixed some cases with expressions like this:
(Get-WmiObject Win32_Service -Filter 'Name="Spooler"').[Tab]

*) TabExpansion does not hides errors now:
(Get-WmiObject Win32_Service -Filter 'Name="Spooler").[Tab]

*) TabExpansion shows an empty list now:
(Get-WmiObject Win32_Service -Filter 'Name="Oops"').[Tab]

Others

*) Fix: script block as Expression in Columns in table panels did not work from
panels created in PS modules (e.g. FarInventory). Also, the global variable $_
is now removed after use.

*) Fix: Reindent-Selection-.ps1: initial indent size was not always correct.

*) Install-Macro-.ps1: corrected Common macros for the AutoCompletion area.

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 14 Apr, 2010 17:30

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

= 4.3.15 =

PSF console
-- Editor title shows extra information about the session: "Local session" for
the local async sessions, "<ComputerName> session" for remote sessions. The
global session editor title is just a file name, as usual.

FarNet changes
-- $dialog.GetControl($i) -> $dialog[$i]

Module FarInventory
-- New function Show-EnvironmentPanel

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 21 Apr, 2010 13:05

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

= 4.3.16 =

Start-MSBuild-.ps1
-- Use of MSBuild depending on existence: 4.0, else 3.5, else 2.0.

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 Apr, 2010 11:29

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

= 4.3.17 =

Table panels
-- Automatic columns preserve property order for homogeneous sets
-- Improved automatic column arrangement and fixed a bug there
-- Automatic Name column with a null value used to fail

Tracing tools
-- Use of newer FarNet tracing tools.
-- Cmdlet Trace-Far now has two parameter sets:
*) Trace (old): uses Trace class (for trivial tracing);
*) Event (new): uses TraceSource "FarNet" (new FarNet 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 » Fri 14 May, 2010 11:03

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

= 4.3.18 =

New option $Psf.Settings.OutputPreference
-- Values: 'Default', 'Console'; it is normally set in the profile but it can
be changed dynamically, too:
>: $Psf.Settings.OutputPreference = ...
Default: as it was before (the engine decides how to output);
Console: output of commands from panels is written to the user screen. The
good: output is colored (errors, warnings, etc.). The bad: only the tail of
long output can be seen after invocation. Output can produce unwanted but
harmless screen effects on commands with Far UI and on PowerShell debugging.

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 May, 2010 13:22

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

= 4.3.19 =

*) Commands output
-- command line commands with prefixes '>:' write to the console;
-- command line commands with prefixes '>>:' show output in viewers;
-- command box commands always show output in viewers;
-- removed $Psf.Settings.OutputPreference, there is nothing to configure;
(Reminder: user menu and file association are command line commands, too)

*) Console output
-- fixed screen defects on UI in the middle of execution with output;
-- added configurable output colors: $Psf.Settings.*ForegroundColor;
-- echo commands using colors, do not echo commands with no output.

Demo of new console output with all colors and message types:
>: .\Test-Write.ps1

*) Background jobs
Starting jobs by prefix >>: was not really useful. The prefix is now reused for
commands with viewer output (see above). Jobs should be started by usual prefix
>: and the cmdlet Start-FarJob. Start-FarJob allows to specify arguments and
switches; that is why job command prefixes are not enough.

Note: you can define your own prefixes and commands and do whatever you want,
see Test-RegisterCommand-.ps1 for the example. In particular you can define a
prefix for invoking jobs, just like it was before. In contrast: features like
>: and >>: cannot be defined from scripts.

*) Member panel
-- issue: input enum values should be case insensitive.

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 May, 2010 15:39

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

= 4.3.20 =

NOTE: this time update manually (not by Update-PowerShellFar.ps1) because the
FarNet package has slightly changed.

*) Transcription of command output

Output of >: commands is written to the user screen and to the current session
transcription file. The transcription file is in the %TEMP% directory, its name
is "PowerShell_transcript.<timestamp>.txt"

The transcription file is lazy opened, kept opened until the end of the session
and deleted if Far exits normally.

Use Show-FarTranscript [-External] to view the transcribed session output. Note
that external show is especially useful on script debugging.

Output of >>: commands is written to files:
"PowerShell_transcript.<timestamp>.<pid>.<counter>.txt".
Their life is shorter: they are deleted as soon as their viewers are closed.

*) Update-PowerShellFar.ps1
-- Adapted to the changed FarNet package.

*) Generate-Dialog-.ps1
-- update: replaced GetControl() with $dialog[]
-- FarNet fix: generated button text should not have brackets

*) PowerShell.hrc (Colorer)
-- Added $Transcript to special PS variables (see Start-Transcript, -Path)

*) Start-Far.ps1
-- Start Far with /w, not /rc switch (Far 2.0.1566)

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

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.

Post Reply

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