PowerShellFar — Windows PowerShell host for Far Manager

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

Post by NightRoman »

Latest post of the previous page:

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

1.1.37

Recommended FAR 1.71.2315

- Various menu items are enabled \ disabled according to the current area.
- Test-Dialog-.ps1: added new FAR IUserContol to emulate dialog MouseClicked.
- Test-Dialog-.ps1: removed button

Code: Select all

 as not needed - starting from FAR
1.71.2309 you can invoke PowerShell commands from any FAR dialog using F11 \
PowerShellFar \ Invoke input code...
- Revised obsolete plugin code and scripts, see FAR.NET 3.3.37 History.txt

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.38

FAR DESCRIPTIONS

- New script Edit-Descript-.ps1 to edit pseudo multiline descriptions in the
internal editor. Default pseudo line delimiter is " _ ", it is of course shown
in panels or when you modify text by standard one-liner Ctrl-Z. In editor these
delimiters are replaced with new lines. You can call it from panels, editor and
viewer for the current item or define a file as a parameter.
- Profile-.ps1: added "Edit description" to the user menu.
- New built-in function Export-Descript.

FIXED

- OEM encoding in built-in function Import-Descript.
- Some cases of incorrect $Psf.CurrentPath, e.g. for a temp panel.

OTHER

- New: PowerShellFar.UserPanel.SetGetData, see Panel-Process-.ps1
- Panel-Process-.ps1 - CtrlR updates not only properties of already shown
processes, but the list itself too, i.e. new processes are shown, exited
processes are removed. + New parameter -Where to filter processes dynamically.
- TabExpansion-.ps1: 1) takes into account that "System." can be omitted; 2)
wildcards are not permitted anymore, only substrings (starts with *), example:
[*commandt<TAB> (then you can use wildcards just in the list incrementally).

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.39

HOW TO INSTALL:
COPY ALL FILES from "Plugin" to "%FARHOME%\Plugins.NET\PowerShellFar\"

NEW

- Property Description of file system items (e.g. result of Get-*Item) is now
writable. New demo script Test-Descript-.ps1 shows it.
- $Host.UI.RawUI: implemented most of missed functionality. Warning: so far
$Host.UI.RawUI is recommended only for reading data, writing in FAR is a bit
different story.
- MemberPanel and PropertyPanel: it is allowed to edit null values or unknown
data types (using =... in FAR command line). Only string can be entered and only
if assignment of a string is allowed by an object.

FIXED

- Show-CallStack.ps1

CHANGED

- "Editor console" menu: .psfconsole files are stored in %TEMP%\psfconsole. If
there are existing files then on "Editor console" you are prompted to open one
of them or to press escape for a new one.

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.40

NEW DIALOG AND CONTROL ACCESS (SEE FAR.NET)

- New script Generate-Dialog-.ps1 generates creation code for any opened dialog.

- TabExpansion and Complete-Word-.ps1 work on any edit control in any dialog (in
addition to the editor and the command line). Complete-Word- takes words from
the control history if any or from the command line history if the control has
no history.

- $Psf.HotLine is now ILine from the editor, the command line or (NEW!) edit or
combobox control in any dialog. In other words you can now operate almost on any
text being edited in FAR. TabExpansion and Complete-Word-.ps1 actually both use
this $Psf.HotLine.

SEARCH-REGEX-.PS1: NEW INPUT DIALOG AND MORE

- Search-Regex-.ps1 was simplified and made much easier to use. Added a dialog
to enter not defined input data and options, see more in help (e.g. run it and
press F1). The new version is not compatible with the old one due to the params
-Path, -Include, -Force removed, but nothing is missed: you can move that params
to Get-ChildItem and use pipeline:
>: Get-ChildItem -Path .. [-Include ..] [-Force] | Search-Regex- ..

OTHER CHANGES

- Improved some cases of $Psf.Paths, SelectedPaths and other similar properties,
so that they work fine also for a temp panel, for example.
- Show-CallStack: *) more info about the last errors; *) fixed potential dead
lock when it is called from an event handler.
- Function Show-Balloon: default timeout is 30 sec.; old value 0 sec. was not
good at some machines.
- Improved some internal operations with script blocks instead of commands.

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.41

- This is mostly a technical build for FAR 1.71.2346
- Search-Regex-.ps1: added checkbox 'Background input' to the input dialog -
useful for relatively simple but very time consuming commands like this:
DIR C:\ -REC -INC *.TXT

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.42

- Refactoring for the new FAR.NET drop (menus and list controls).
- Test-Dialog-.ps1: new button
  • tests new dynamic list controls.
    - Complete-Word-.ps1 - do not show error message if there is no input.
    - Profile-Editor-.ps1 - call Show-Hlf-.ps1 only for .hlf files
    - Show-Hlf-.ps1 - removed return value not used any more by Profile-Editor-.ps1

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.43

IMPORTANT: this version requires PowerShell V2 CTP

It is not a release version, features may not work, be removed, changed, etc. If
you do not want to risk then stay with PowerShell V1 and PowerShellFar 1.1.42 +
FAR.NET 3.3.42 and wait for the next CTP (end of April, they say) or the next
release (date unknown).

Download and install PowerShell V2 CTP (this link is for English version):

http://www.microsoft.com/downloads/deta ... laylang=en
Mind other links at this page:
- you HAVE TO install AT FIRST (!!) WS-Management 1.1
- you may (but DON'T HAVE TO) install .NET Framework 3.0 to use Graphical
PowerShell (it's only a demo, I would not recommend it) and Out-GridView (it is
quite nice, but perhaps .NET 3.0 is too much if it is only for this).

CHANGES

TabExpansion-.ps1

- Expansion of script parameters uses new PSParser API (see GetScriptParameter
in TabExpansion-.ps1); as a result, now you don't have to put one parameter per
line to make this working, it should work for any script (or it is a defect of
GetScriptParameter, report it).
- Type and namespace names are expanded not only after '[' but also immediately
after New-Object: e.g. New-Object System.da[Tab]

PowerShell.hrc for Colorer

- new operators -split and -join
- new language keywords Data and Cmdlet
- new system variables $CommandLineParameters $PSVersionTable $Culture $UICulture
- new cmdlets Get-PSBreakpoint Get-PSCallStack Remove-PSJob New-PSBreakpoint
ConvertFrom-StringData Start-PSJob Disable-PSBreakpoint Import-LocalizedData
Stop-PSJob Enable-PSBreakpoint Get-Runspace Wait-PSJob Remove-PSBreakpoint
New-Runspace Invoke-WMIMethod Step-Into Remove-Runspace Remove-WMIObject
Step-Out Get-PsJob Set-WMIInstance Step-Over Receive-PSJob Out-GridView

Other Changes

- Improved input box called on missed cmdlet parameters, Read-Host and etc.:
better arrangement of prompt messages and enabled TabExpansion on [Tab].
- Search-Regex-.ps1 - new parameter [switch] -Groups and checkbox in the input
dialog - it tells to put to a panel found regex groups instead of full matches.
- New Test-Msg-.ps1 - a few extreme cases of FAR.NET message boxes.
- Auto name of .psfconsole file: 24 hours time format.

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.44

First debugging features (new in V2 CTP)

- New scripts Set-Breakpoint-.ps1 and Test-Debugger-.ps1 uses new PS debugging
features. Function, command and variable breakpoints look working fine already,
line breakpoints sometimes do not work (perhaps due to PS beta issues). More
info: see scripts or just run Test-Debugger-.ps1 and press F1 in the dialog.


Running scripts from the editor (also for debugging)

- F5 in the .ps1 script editor invokes this script in the current PowerShell
runspace. Key F5 is hardcoded for now, but you can assign another key to
$Psf.InvokeScriptFromEditor() via PSF User Menu and a macro.
- Output is written into a tmp file and an external viewer is started to view it.
Why external? - to be able to view output and at the same time perform some
operations with modal UI, e.g. debugging.
- New $Psf.Settings settings: ExternalViewerFileName and ExternalViewerArguments
allow to set alternative viewer and its arguments, see more in .CHM and example
in Profile-.ps1 (e.g. if you use FAR with ConEmu).
- Invoke-Editor-.ps1 - changed processing of *-.ps1 scripts - it sets error mode
to 'Inquire' and calls new $Psf.InvokeScriptFromEditor().


$Host.UI.

- .ReadLine() - implemented.
- .Prompt() - re-implemented as a dialog with several input fields. E.g. it is
good for script cmdlets with several missed mandatory parameters; in fact it is
a very simple way to make auto-generated input data dialogs (also with history
automatically stored by cmdlet parameter names). Note: script cmdlets are new in
V2 CTP. Silly example: run Trace-Command without parameters and you will get a
dialog with 2 input fields.


TabExpansion and Complete-Word-

- '*' is added automatically to the end of the initial pattern, so that you can
type any remaining substring, e.g. for GET-PSJOB you may type only g[TAB]jo, not
g[TAB]*jo. Note: '*' can be undone by backspace.
- TabExpansion expands all variable names, not global only; it is useful when
execution is suspended and you deal with the current scope variables.
- TabExpansion expands 'win32..[TAB]' as WMI classes from ROOT\CIMV2, e.g.
win32_des[TAB] -> Win32_DesktopMonitor, Win32_Desktop.
- Fixed expansion of script parameters with default values.


Refactoring (perhaps breaking)

- For better performance and to avoid misuse: type of $Psf.*Items, $Psf.*Items2,
$Psf.*Paths, $Psf.*Paths2 and .*Items of AnyPanel and derived panels were
converted from Collection<> to IEnumerable<>. If you already use them
effectively then you will not notice this change. Otherwise you have to improve
your scripts:
*) use them as pipeline input: '$Psf.Items | ...';
*) use them with 'foreach($item ...', not with 'for($index ...';
*) and if you REALLY need them as arrays then use @(): @($Psf.Items).


Misc

- New script Clear-Session.ps1, see its comments for details.
- $Psf and $Far are constant for all scopes, i.e. they really never change now.
- $Host.PrivateData is not supported any more; exception on any access.
- Panel-Macro-.ps1 - fixed a few multiline sequence editor issues.
- Fix: IEditor.Open(): if a file is already opened then start position, if any,
was not set (e.g. you could not go to error line from "PowerShell errors" list,
if a file is already in the editor).

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.45 ( NOTE: required FAR.NET is still 3.3.44 )

NEW BUILT-IN CMDLETS (See help topic "Cmdlets")

- Get-FarItem
- Get-FarPath
- New-FarEditor
- New-FarViewer
- Start-FarEditor
- Start-FarViewer


REMOVED SCRIPTS

They are still working and you may keep them from the previous version:
- Get-Data-.ps1 (replaced by cmdlet Get-FarItem)
- New-Editor-.ps1 (replaced by cmdlet New-FarEditor)


OBSOLETE PSF PROPERTIES

They are still working, but they will be removed in the next version:
- $Psf.*Items, $Psf.*Items2 (replaced by cmdlet Get-FarItem)
- $Psf.*Paths, $Psf.*Paths2 (replaced by cmdlet Get-FarPath)


ADVANCED TABEXPANSION IS ENABLED BY DEFAULT

- The script TabExpansion-.ps1 was moved from Bench to the plugin directory and
it is automatically loaded from there once and only when needed. Profile-.ps1:
'manual' installation of TabExpantion was removed - it is not needed any more.
Reminder: the script is independent on a host, i.e. you can use it in console
host too. It is also OK to use your own TabExpansion.ps1 in PowerShellFar.


OTHER CHANGES

- Added new cmdlet names to PowerShell.hrc for Colorer.
- Global function Show-Balloon (loaded internaly from the old PowerShellFar.ps1)
was moved to the script Show-Balloon.ps1, so that you still can use it. The
script is independent on the PowerShell host.

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.46

IMPORTANT: V2 CTP2

This version requires PowerShell V2 CTP2. It is not a release version, features
may not work, be removed, changed, etc. If you do not want to risk then use:
- PowerShell V2 CTP + PowerShellFar 1.1.45 + FAR.NET 3.3.44
- or PowerShell V1 + PowerShellFar 1.1.42 + FAR.NET 3.3.42
Download:
http://www.microsoft.com/downloads/deta ... laylang=en

CHANGES FOR V2 CTP2. NEW DEBUG FEATURES.

There are lots of changes, but many of them are too small to be mentioned.
The most important changes are in debugging: breakpoint dialog has new step
buttons [Step], [Over], [Out] and they look working fine. See also the script
Set-Breakpoint-.ps1 - helper for setting breakpoints right in the script editor
and play with demo script Test-Debug-.ps1 (which works in ConsoleHost, too).


NEW FAR PANEL CMDLETS

To get the list of new panel cmdlets run this:
>: Get-Command *-Far*Panel -CommandType Cmdlet

For details see the help topic "Cmdlets" and use new script Get-Usage.ps1 (all
the help topics are actually generated by it). NOTE: the cmdlets are ready to
use, but some features may change in the future.


REMOVED SCRIPTS

The following scripts are replaced by new cmdlets and not distributed. But they
are not broken, you may keep them on your own:
- Panel-Member-.ps1
- Panel-Object-.ps1


REMOVED OBSOLETE $PSF PROPERTIES

- $Psf.*Items, $Psf.*Items2 (replaced by cmdlet Get-FarItem)
- $Psf.*Paths, $Psf.*Paths2 (replaced by cmdlet Get-FarPath)


OTHER CHANGES

- New very handy script Get-Usage.ps1 (host independent). It is sometimes better
than "Get-Help -Full" and, moreover, it also works for cmdlets with no help (FAR
cmdlets for example don't have standard help and some new V2 CTP2 cmdlets, too).

- Cmdlet New-FarEditor: added parameter -Data ~ IEditor.Data

- PowerShell.hrc for Colorer: reflected V2 CTP2 changes and fixed color of hash
keys with the same names as PS keywords.

- New script Start-MSBuild-.ps1 - MSBuild helper. NOTE: this is a beta version,
subject to change or even remove.

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

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

Post by NightRoman »

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

Reminder: it is for PowerShell V2 CTP2 only

1.1.47

DEBUGGING

Debugger is getting visual: script source code is shown in the listbox with
the current debugger line selected (and checked). Use Test-Debugger.ps1 to
see how it works.

Editor console: Redraw() is called now on any output, so that you can see
output in progress (this is good for debugging first of all).

TABEXPANSION

Expansion of parameters: in addition to cmdlets and scripts it works also
for currently loaded functions, filters and script cmdlets.

Expansion of types and namespaces: not public types are excluded from
processing and not cached -> no "noise" and better performance (~30%).

Improved expansion of parameters in some tricky cases, e.g.
@(Get-Content $file -TotalCount ($x + $y) -e<TAB>
"@(Get-Content $file -TotalCount ($x + $y) -e<TAB>
'@(Get-Content $file -TotalCount ($x + $y) -e<TAB>

COLORER

PowerShell.hrc: polished some cases of CTP2 keywords.

RomanConsole.hrd: operators |, >, >>, and etc.: changed background color
from yellow to gray (yellow looks too agressive, say, like warning).

OTHER

PSF menu command 'Invoke selected code' also works for dialog edit boxes.

Fixed a minor issue in PowerShell.Invoker: Search-Regex-.ps1 used to show
incorrect status 'Failed' when it was actually 'Completed'.

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.48

TABEXPANSION

- Covered yet another parameter expansion case with any not alpha numeric
"garbage" in the beginning of a line (this also fixes a minor unfortunate
regression in the last drop):
#~?!"?$%^&*()<>' = Get-Content -e[TAB] -> Encoding and etc.

- Improved expansion of base and adapted members, e.g.
>: $xml = [xml]'<tests><test>test</test></tests>' # run this first
$xml.Ou[TAB] -> OuterXml
$xml.te[TAB] -> tests

PROGRAMMING

- $Psf.HotLine: it is OBSOLETE and will be removed. Actually it is not obsolete,
but moved to FAR.NET as $Far.Line, so that FAR.NET plugins can use it, too. As
usual, it is the current editor line in any area (editor, dialog or panels).

PSF UI

- PSF command history opened from a dialog edit box: CtrlEnter inserts text into
the edit box.

- In any list menu keys CtrlC and CtrlIns are used to copy text of the current
item to the clipboard.

SCRIPTS

- New script Get-KeyMap.ps1: Generates and shows HTML page with FAR key maps for
various areas as tables of 4 colums: key name, default FAR action, common macro,
area macro. It is useful to have this data all in one place to avoid or resolve
key conflicts.

- New script Go-Head-.ps1: "Go to the head panel file or item", see comments.

- Get-Usage.ps1: *) parameter set list is shown for parameters (if it is not
'__AllParameterSets'); *) it is converted from 'script' to 'script-cmdlet' (new
V2 feature).

- Test-Zoo-.ps1: used new PS feature "compile .NET source code on the fly": e.g.
Add-Type <C# code>. As a result, the temp file Test-Zoo-.dll is not used.

User avatar
NightRoman
Posts: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.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: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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: 5919
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 12 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.

Post Reply

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