PowerShellFar — Windows PowerShell host for Far Manager

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

Latest post of the previous page:

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

= 5.0.41 =

Improved navigation of KeyValuePair's in object and member panels.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.42 =

Object panel: Take into account possible problematic objects with some
properties or ToString() throwing exceptions.

TabExpansion: Avoided redundant parts in choice menu items in some cases.

Update-FarManager.ps1, Update-FarNet.ps1: parameter Platform: default value
(x86|x64) is taken from Far.exe file info.

Panel-Mongo-.ps1: Adapted for the latest Mdbc. Added support of file collections.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.43 =

TabExpansion: Fixed issues on not yet imported module command parameters.

Improved cmdlet help for panels, especially Out-FarPanel.

Internal: Removed scriptblock cache. PS V3 uses its own.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.44 =

TabExpansion

- Improved expansion of types and namespaces. Removed type caching, all works
fast enough. As a result, types added later are processed without re-caching.

- If a type name contains any wildcard character then a search for all types is
performed. '*' is not added to end as it used to be, so that it is possible to
search for types which names "end with". E.g. [*client<Tab> gets types which
names end with 'client'.

- Special "#". WORD#<Tab> is used for command history, like in the console
host. Expansion gets commands containing WORD.

- Special "=". WORD=<Tab> is used for lines from TabExpansion.txt from the same
directory as TabExpansion.ps1. Expansion gets lines containing WORD and sets
the cursor to the symbol "#", if any. Old TabExpansion#.txt can be removed.

NOTE: Special "#" and "=" should work in other hosts if TabExpansion.ps1 is
used there. Tested with Microsoft PowerShell console and ISE hosts.

NOTE: This is probably the last PS V2 compatible TabExpansion. It will continue
to exist and work for V2 but for V3 TabExpansion2 will be used. New development
will be there. Some new features are coming soon.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.45 =

TabExpansion2 for PowerShell v3

New script TabExpansion2.ps1 in the module home directory is automatically used
for PowerShell v3. The old TabExpansion.ps1 is also there, it is used for
PowerShell v2.

There are many new useful features. One of the best (personally) is argument
completion for some popular cmdlets and ability to add custom completers for
external or even build-in commands.

TabExpansion2.ps1, unlike the old one, supports custom extensions via profiles.
New script Bench\TabExpansionProfile.ps1 is a profile used by the author. Use
it as the base for your own. See the script comments and code for the details.

Custom completers are new and some features may change, like rules for result
completers. Other completers are more or less standard, they are less likely
going to change.

Removed Test-TabExpansion-.ps1 from the package. It's a boring test now.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.46 =

TabExpansion2

- Removed $token parameter from result processors.
- Upgraded TabExpansionProfile.ps1 result processors accordingly.
- Added support for InputProcessors in addition to ResultProcessors.
- Added one custom input processor which completes .NET types and namespaces
like TabExpansion.ps1 does. Personally, this way is much more useful than the
built-in completion.

Search-Regex-.ps1

- Extra options:
* SimpleMatch instead of the old trick *pattern.
* WholeWord ensures word bounds at pattern start/end words.

- Command line mode: if InputObject is specified and it is a script block then
it will be invoked in the background for getting input files. Analogue in UI:
"Input" command + "Background input" checked.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.47 =

TabExpansionProfile.ps1, TabExpansion2.ps1, TabExpansion.ps1

- Special processing of results for ISE lists (V3).
- Type/namespace order: namespaces first, types second.
- Generic types are completed with "[]", "[,]", etc. at ends.
- Faster type and namespace completions, even with new features.
- Added ResultType to New-CompletionResult and used in completers accordingly.
NB: If you use ISE, this value is important for icons in ISE completion lists.
- Magic. TabExpansionProfile.ps1 Out-FarPanel completer gets properties, try:
Get-Process | Out-FarPanel [Tab]
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.48 =

TabExpansionProfile.ps1, TabExpansion2.ps1

- Completion in comments moved from TabExpansion2 to TabExpansionProfile. In
other words, it is up to a user. TabExpansion2 is now just a bare engine for
invoking completers added by profiles.
- Completion of help comments (.Synopsis, etc.) is for FarHost only. It's
complicated in ISE and useless in console.
- Improved work around read only built-in results.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.49 =

Code completion in script editors analyses not just the current line but the
whole code, e.g. completion in multiline statements including continued lines
(` at EOL) should work fine.

TabExpansion2.ps1

- Improved diagnostics of user profile and completer issues like unexpected
output and invalid result type. Errors are silent, examine $Error on problems.

TabExpansionProfile.ps1

- Completion of Find-FarFile:Name takes into account pre-typed parts.
- Completion of help comment tags (.Synopsis, etc.) works in ISE, too.
- Improved completion of "one line code" in comments, also works in ISE.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.50 =

Code completion in script editors

- Covered statements that continue after the current line.
- Corrected completion of variables from the current script.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.51 =

Multiline commands in PowerShell editor consoles

- Like in ISE, [ShiftEnter] just adds a new line without invoking the command.
- [Enter] at any position of the last command area invokes the whole area code.
- As a result, it is possible to paste multiline code and invoke it by [Enter].
- Introduced the marker line <> for empty output. It is needed now in order to
separate commands because they are not one-liners anymore.
- Multiline commands are not added to the history.
- Updated TabExpansion for multiline commands.
- Updated editor console help.
- Updated powershell.hrc in order to recognize the new marker <>.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.52 =

TabExpansion

- Like in ISE, completion list items can be different from their completion
texts (e.g. shorter, without common leading parts, etc.).

TabExpansionProfile.ps1, Type/Namespace completion

- Fixed cases of incorrect replacement on type name completion.
- Like in ISE, completion lists show ListItemText instead of CompletionText.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.53 =

NOTE: Simple manual upgrade steps may be needed.

CONFIGURATION VIA PROFILES

PowerShellFar is configured via profiles with special fixed names located in
"%FARPROFILE%\FarNet\PowerShellFar". Each profile is invoked on the relevant
event, once per session. Profiles are invoked in the global scope.

HOW TO UPGRADE. Rename profile scripts and copy them to the profile directory.
Cosmetic changes may be needed depending on how profiles were called before.

Supported profiles:
- Profile.ps1 - use new or upgraded
- Profile-Editor.ps1 - use new or upgraded
- Profile-Local.ps1 - new feature
- Profile-Remote.ps1 - new feature

"Profile.ps1" is the main session profile invoked on loading PowerShellFar. It
replaces the old setting "StartupCode". Renamed "Profile-.ps1" to "Profile.ps1".

"Profile-Editor.ps1" is the editor profile invoked on the first use of editor.
It replaces the old setting "StartupEdit". Renamed "Profile-Editor-.ps1" to
"Profile-Editor.ps1".

NEW: "Profile-Local.ps1" and "Profile-Remote.ps1" are session profiles invoked
on opening local and remote editor consoles, once per each new session.

Updated the manual and added the new topic "Profiles".

If the old file "%FARPROFILE%\FarNet\PowerShellFar\Settings.resources" exists
remove it because PowerShellFar does not have any settings saved there now.

CODE COMPLETION IN LOCAL AND REMOTE CONSOLES

TabExpansion2/TabExpansion which is used in the main session is enabled in
local and remote editor consoles, too. It is also initialized on the first
completion and the same completer rules and expansion profiles are used.

Fixed some code completion issues in remote consoles.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.54 =

Fixed incorrect comparison of keys (transition to Far3, v5.0.0). E.g. break
keys in some menus did not work.

Fixed issues in the "Background job" dialog shown on Far exit with existing
jobs. Used the PSF external viewer instead of Notepad for viewing jobs output.

Added the switch /ro to the default PSF external viewer command, so it is:
<this-far.exe> /ro /m /p /v <file>
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.55 =

INITIALIZATION

Internal changes in session initialization. Like in ISE and ConsoleHost v3, the
default apartment state is STA. As a result, for example, it is possible to use
System.Windows.Forms.Clipboard, WPF forms, and other features that require STA.

NOTE: If MTA is still required set the env var: PSF.ApartmentState=MTA. Please,
report such cases, perhaps a better option is needed.

NOTE: New initialization caused an insignificant change in one test. If you
notice any significant changes in PowerShellFar behaviour, please report.

OTHER CHANGES

Amended items in completion lists for commands and provider items.
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman »

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

= 5.0.56 =

Fixed TabExpansion in the editor console opened from the debugger dialog.

Script Connect-SQLite-.ps1 - Redesigned for use of the NuGet package and the
env var (can be set globally or in a profile). This is more portable and does
not require installation of assemblies to GAC or registration of the provider.

Fixed several issues in database demo scripts.
Post Reply

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