PowerShellFar — Windows PowerShell host for Far Manager

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

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

Latest post of the previous page:

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).

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sat 29 Jan, 2011 08:02

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

= 4.3.38 =

*) Breaking synchronous commands
[CtrlBreak] is used instead of [CtrlC] in order to break synchronous commands
(including started from the global editor console). Asynchronous commands in
local and remote editor consoles are still stopped by [CtrlC].

*) Cmdlet Show-FarMessage
New switch -Draw to draw message-like boxes.

*) Test-ProgressForm-.ps1
Added ProgressBox examples.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 30 Jan, 2011 13:10

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

= 4.3.39 =

Technical build for FarNet 4.3.39

*) Cmdlets Out-FarPanel, Start-FarPanel
- Removed the ReverseSortOrder switch.
- The SortMode parameter now includes *Reversed values.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Thu 03 Feb, 2011 07:36

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

= 4.3.40 =

Technical build for FarNet 4.3.40

*) Panel-Macro-.ps1
Removed not needed call of Load().

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 13 Feb, 2011 19:00

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

= 4.4.0 =

*) Revision of FarNet panels
The PSF core and all the scripts are updated according to the new panel API.
There are many small changes in all panel scripts, mostly renaming-like.

*) PowerExplorer
PowerExplorer is the fully functional explorer designed for scripts. Interface
methods have related script block properties. Each method calls its script.

Test-Explorer-.ps1 shows a complex data tree with different kinds of explorers.

*) New-FarFile
Accepts System.IO FileInfo and DirectoryInfo as input and attaches it as Data.
All other properties are set automatically except Description.

*) PowerShell.hrc for Colorer
Arrays @() and hashtables @{} use the same style as (), {} blocks. It is now
easier to see orphan symbols without matching pairs, that is, syntax mistakes.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Wed 16 Feb, 2011 08:25

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

= 4.4.1 =

*) Test-Explorer-.ps1
It shows how just added search in explorer panels works (see FarNet History.txt)

*) Housekeeping (the core)
Removed use of Notepad on [ShiftF4] in panels. It was introduced and needed in
Far 1.x for Unicode data. Now it is useless, besides it is modal. [F4] rules.

*) Housekeeping (scripts)
AnyPanel
- SetDelete -> AsDeleteFiles
- SetEdit -> AsEditFile
- SetOpen -> AsOpenFile
- SetView -> AsViewFile
- SetViewAll -> AsViewAll
UserPanel
- SetGetData -> AsFiles
- SetWrite -> AsWriteFile

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 20 Feb, 2011 17:50

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

= 4.4.2 =

*) New cmdlet Start-FarSearch
See help:
>>: Get-FarHelp Start-FarSearch

Run Test-Explorer-.ps1 and try Start-FarSearch:

# Invoke from Flat or use -Recurse from Root:
>: Start-FarSearch { $_.Data.Definition -match 'throw' }

# Invoke from Root
>: Start-FarSearch { $_.Name -like 'PowerShellFar.*' } -Recurse -Directory

*) Test-Explorer-.ps1
- "Tree" test case: use HKCU:\Software\Far2\Plugins as the root.
- "Path" test case: use of TypeId and ExplorerTypeId on panel creation.
- New test case "Location": example of an explorer with 'ExploreLocation'.

*) MemberPanel, PropertyPanel
- Replaced warnings on editing read only members with editor locks.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sat 05 Mar, 2011 17:00

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

= 4.4.3 =

*) Revised panels
- Panels are based on explorers (but not all is used/enabled yet).
- Lots of changes for the new engine not mentioned in here.
- Removed UserPanel, use ObjectPanel instead.
- Removed ObjectPanelOnDots, it's not useful.
- SetSave() -> AsSaveData
- SetLookup() -> Lookup (combined)
- Fixed stack overflow on command line events

*) Adapted scripts
- Adapted all scripts that create panels to the new panel engine.

*) Renamed cmdlets to follow guidelines, hopefully
Start-FarPanel -> Open-FarPanel
Start-FarEditor -> Open-FarEditor
Start-FarViewer -> Open-FarViewer
Start-FarSearch -> Search-FarFile

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 13 Mar, 2011 18:52

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

= 4.4.4 =

*) ItemPanel (PS providers)
- It supports explorer features completely. As a result, search works fine.
- Improved performance of explorers in search mode.

*) Search-FarFile
- Added -Depth parameter.
- Added -Asynchronous switch: Tells to performs the search in the background and
to open the result panel immediately. Found items are added dynamically.

*) Scripts
A numbers of small changes dealing with changed or new explorer/panel features.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 20 Mar, 2011 13:06

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

= 4.4.5 =

*) Updates for FarNet changes.

*) Search-Regex-.ps1
Fixed shown count of found matches.

*) PowerShell.hrc
Fix http://code.google.com/p/farnet/issues/detail?id=5

*) SQLite database support
- Uses SQLite ADO.NET provider: http://sourceforge.net/projects/sqlite-dotnet2
- New script Connect-SQLite-.ps1 allows to connect to a database and optionally
to open it in the panel (assume Panel-DbData-.ps1 and Panel-DbTable-.ps1 are in
the system path). The panel is not just a viewer, it allows to add, delete and
edit database records.
- Initialize-Test-.ps1 allows to create a test DB Tempdb.sqlite in %TEMP%.
Then the command:
>: Connect-SQLite-.ps1 -Panel $env:TEMP\Tempdb.sqlite
.. opens the DB in the panel with two test tables ready to view or change data.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 27 Mar, 2011 13:19

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

= 4.4.6 =

*) Connect-SQLite-.ps1
If -Panel is specified and -Options is empty then it prompts for options.
This might be needed for example in order to set "DateTimeFormat=Ticks".

*) DataPanel
- Number of shown records is limited now, real life tables can be huge.
- Added help menu ([F1]) commands: Next range, Previous range, Record start
number, Record maximum count (default is $Psf.Settings.MaximumPanelFileCount).

*) FarNet menu: .NET \ Panels \ Decrease|Increase left column
- In PSF it works in all list panels (MemberPanel, PropertyPanel),
ObjectPanel-s and DataPanel-s with two columns, Search-FarFile and
Search-Regex-.ps1 panels and etc. Use via macros or by pressing [Space].

*) Bugs
- Crash on stopping a script by CtrlBreak in some cases.
- Could not enter nulls by [Shift{F8|Del}] in the list panel in some cases.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 03 Apr, 2011 14:17

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

= 4.4.7 =

*) DataPanel
- [F1] menu: "Record limit", "Record offset" (offset N tells to skip N records).
- [F3]/[CtrlQ]: noisy data members are excluded, only record fields are shown.
- Fixed: [F7] + [Esc] + [No] used to show an error and close the panel.

*) Panel-DbTable-.ps1

For SQLite databases it now shows views in addition to tables.

[Enter] on a table shows the input box with the select command to be used. As a
result, you can: 1) cancel (why not?); 2) change the command; 3) execute other
SQL command -- only SELECT commands are recommended, but if your command is
"DROP TABLE X" then it is executed as well, IT'S YOUR CHOICE.

Example (useful for SQLite): the table name is Files and the default command is
"SELECT * FROM [Files]". If Files does not have an explicit key column then the
opened table cannot be modified. This command: "SELECT rowid, * FROM [Files]"
allows to add/delete/modify records (SQLite tables always have the rowid).

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 10 Apr, 2011 16:27

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

= 4.4.8 =

*) DataPanel class, scripts, etc.

[F1] menu
- New Sort command; syntax is similar to ORDER BY in SELECT.
- New Filter command with a logical expression, see Expression Syntax:
http://msdn.microsoft.com/en-us/library ... expression
- Sort and Filter input boxes provide TabExpansion of columns, functions, etc.

Raw DataTable support
- Data are not from a database, they are in-memory data or imported from and
exported to XML files. Constructors: DataPanel(DataTable), DataPanel(xmlFile),
DataPanel(xmlSchema, xmlData).

*) New script Open-TODO-.ps1

This is a toy script but it can be useful, too, as it is or with changes.
The goal is to show how to use:
- DataTable with data stored in XML files;
- DataPanel in order to view and modify that data.

Example of Far Manager file association:
- Mask: *TODO.xml
- Command: >: Open-TODO- (Get-FarPath) #

*) Out-FarPanel cmdlet
If it is opened when a module panel is active then this panel is restored on
the output panel exit (it used to be closed when the output panel starts).

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Mon 18 Apr, 2011 19:16

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

= 4.4.9 =

*) DataPanel
- New properties ViewSort, ViewRowFilter allow to set predefined sort/filter.
- XML data may have 2+ tables, use TableName or choose a table from a menu.
- New properties XmlFile, XmlReadMode, XmlSchema, XmlWriteMode, TableName.
- Added control of the source XML file time in order to detect conflicts.
- Hidden not calculated columns are excluded by default in the table panel.
- Hidden, calculated, autoincrement fields are hidden in the member panel.
- Removed redundant constructors, only the default is left.
- Fix: [F1]\Filter: fixed default text in the input box.

*) Connect-SQLite-.ps1
Improved discovery of the SQLite assembly or provider. In particular, it is
fine simply to have System.Data.SQLite.dll in the FarNet home directory (no
installation and/or registration is needed in this case). Starting with 1.0.69
(released a few days ago) SQLite.Interop.dll is also needed.

*) Open-TODO-.ps1
- Changed column/field names: Text -> Name, Memo -> Text, M -> T.
- [F4] in the table opens the editor to edit Name and Text values together.
If the result editor text is empty then the record is deleted.

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sun 24 Apr, 2011 09:31

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

= 4.4.10 =

*) Search-FarFile cmdlet
- Added parameters XFile and XPath, see FarNet history for details.

*) FormatPanel (base of ObjectPanel and ItemPanel)
- Better performance (avoided expesive repetitive calls of Get-FormatData).

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Tue 03 May, 2011 02:33

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

= 4.4.11 =

*) FarInventory module
- Renamed Show-*Panel -> Open-*Panel

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

Re: PowerShellFar — Windows PowerShell host for Far Manager

Post by NightRoman » Sat 07 May, 2011 17:42

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

= 4.4.12 =

*) Meta class
- Cache of scripts created from strings (better performance on searches).

Post Reply

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