Skip to content

Commit eabe5e5

Browse files
Merge pull request #49 from PowershellFrameworkCollective/Development
2.0.8
2 parents 1015257 + 616d4cc commit eabe5e5

File tree

7 files changed

+27
-178
lines changed

7 files changed

+27
-178
lines changed

PSUtil/PSUtil.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ModuleToProcess = 'PSUtil.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '2.0.4'
6+
ModuleVersion = '2.0.8'
77

88
# ID used to uniquely identify this module
99
GUID = '9ef51588-c40c-4064-910d-9b624b758cf6'
@@ -26,7 +26,7 @@
2626
# Modules that must be imported into the global environment prior to importing
2727
# this module
2828
RequiredModules = @(
29-
@{ ModuleName='PSFramework'; ModuleVersion='0.10.30.165' }
29+
@{ ModuleName='PSFramework'; ModuleVersion='0.10.31.176' }
3030
)
3131

3232
# Assemblies that must be loaded prior to importing this module

PSUtil/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Changelog
2+
## Version 2.0.8 (2019-01-13)
3+
- New: Keybinding for `Shift+SpaceBar` on PSReadline 2.0 that inserts a whitespace, helping to mitigate the typing issue in the windows release version.
4+
- Upd: Switched input property tab completion to PSFramework implementation: PSFramework-Input-ObjectProperty
5+
- Upd: Default keybinding for expanding aliases was changed to `Alt` + `q`. The previous one was inoperable under PSReadline 2.0 or later.
6+
- Fix: Get-PSUPathAlias returns empty objects (thanks Corbob)
7+
28
## Version 2.0.4 (2018-12-23)
39
- Fix: Persisting default aliases redirection fails
410

PSUtil/functions/path/Get-PSUPathAlias.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
$aliases = Get-PSFConfig -FullName psutil.pathalias.$Alias
2727

28-
foreach ($alias in $aliases)
28+
foreach ($currentAlias in $aliases)
2929
{
3030
[pscustomobject]@{
31-
Alias = ($alias.fullname -replace '^psutil.pathalias.')
32-
Path = $alias.value
31+
Alias = ($currentAlias.fullname -replace '^psutil.pathalias.')
32+
Path = $currentAlias.value
3333
}
3434
}
35-
}
35+
}

PSUtil/internal/TEPP/assignment.ps1

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@ Register-PSFTeppArgumentCompleter -Command Unregister-PSRepository -Parameter Na
2424
Register-PSFTeppArgumentCompleter -Command Register-PSRepository -Parameter PackageManagementProvider -Name 'PSUtil-Module-PackageProvider'
2525
#endregion Module
2626

27-
#region Select
28-
Register-PSFTeppArgumentCompleter -Command Select-PSFObject -Parameter Property -Name PSUtil-Input-Object
29-
Register-PSFTeppArgumentCompleter -Command Select-PSFObject -Parameter ExpandProperty -Name PSUtil-Input-Object
30-
Register-PSFTeppArgumentCompleter -Command Select-PSFObject -Parameter ExcludeProperty -Name PSUtil-Input-Object
31-
Register-PSFTeppArgumentCompleter -Command Select-PSFObject -Parameter ShowProperty -Name PSUtil-Input-Object
32-
Register-PSFTeppArgumentCompleter -Command Select-PSFObject -Parameter ShowExcludeProperty -Name PSUtil-Input-Object
27+
#region Input Object Property
28+
Register-PSFTeppArgumentCompleter -Command Select-Object -Parameter Property -Name PSFramework-Input-ObjectProperty
29+
Register-PSFTeppArgumentCompleter -Command Select-Object -Parameter ExpandProperty -Name PSFramework-Input-ObjectProperty
30+
Register-PSFTeppArgumentCompleter -Command Select-Object -Parameter ExcludeProperty -Name PSFramework-Input-ObjectProperty
3331

34-
Register-PSFTeppArgumentCompleter -Command Select-Object -Parameter Property -Name PSUtil-Input-Object
35-
Register-PSFTeppArgumentCompleter -Command Select-Object -Parameter ExpandProperty -Name PSUtil-Input-Object
36-
Register-PSFTeppArgumentCompleter -Command Select-Object -Parameter ExcludeProperty -Name PSUtil-Input-Object
37-
#endregion Select
32+
Register-PSFTeppArgumentCompleter -Command Expand-PSUObject -Parameter Name -Name PSFramework-Input-ObjectProperty
33+
#endregion Input Object Property
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Set-PSFConfig -Module 'PSUtil' -Name 'Keybinding.GetHelp' -Value "F1" -Initialize -Description "The key chord(s) the open help functionality is bound to. Will provide help for the currently typed command."
2-
Set-PSFConfig -Module 'PSUtil' -Name 'Keybinding.ExpandAlias' -Value "Shift+Spacebar" -Initialize -Description "The key chord(s) the alias expansion functionality is bound to. Will expand all aliases in the current input."
2+
Set-PSFConfig -Module 'PSUtil' -Name 'Keybinding.ExpandAlias' -Value "Alt+Q" -Initialize -Description "The key chord(s) the alias expansion functionality is bound to. Will expand all aliases in the current input."
33
Set-PSFConfig -Module 'PSUtil' -Name 'Keybinding.CopyAll' -Value "Ctrl+Shift+c" -Initialize -Description "The key chord(s) the copy all functionality is bound to. Will copy all lines of the current input to the clipboard."
44
Set-PSFConfig -Module 'PSUtil' -Name 'Keybinding.BrowseHistory' -Value "F7" -Initialize -Description "The key chord(s) the browse history functionality is bound to. Will open a gridview and allow you to pick from your input history, then insert the chosen line(s) as your current input."
55
Set-PSFConfig -Module 'PSUtil' -Name 'Keybinding.SendToHistory' -Value "Alt+w" -Initialize -Description "The key chord(s) the send to history functionality is bound to. Your current input will be sent to history without actually executing it. Access it by using the Arrow-UP key."

PSUtil/internal/scripts/keybindings.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
if ((Get-PSFConfigValue -FullName "PSUtil.Import.Keybindings" -Fallback $true) -and (Get-Module PSReadline))
1+
if ((Get-Module psreadline).Version.Major -ge 2)
2+
{
3+
Set-PSReadlineKeyHandler -Chord 'Shift+SpaceBar' -BriefDescription Whitespace -Description "Inserts a whitespace" -ScriptBlock {
4+
[Microsoft.Powershell.PSConsoleReadLine]::Insert(' ')
5+
}
6+
}
7+
8+
if ((Get-PSFConfigValue -FullName "PSUtil.Import.Keybindings" -Fallback $true) -and (Get-Module PSReadline))
29
{
310
foreach ($file in (Get-ChildItem -Path (Join-PSFPath $script:ModuleRoot 'internal' 'keybindings')))
411
{

PSUtil/internal/tepp/input.Tepp.ps1

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)