From d75588a3898020d31fd51555f5d5db21686e179d Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 3 Mar 2024 19:45:05 +0900 Subject: [PATCH] Trancate property early --- src/PSFzfHistory.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PSFzfHistory.psm1 b/src/PSFzfHistory.psm1 index 6b288cc..fdc8f2a 100644 --- a/src/PSFzfHistory.psm1 +++ b/src/PSFzfHistory.psm1 @@ -1,8 +1,8 @@ # Do not add --height option for fzf, it shows nothing in keybind use function Invoke-FzfHistory ([String]$fuzzy) { [Microsoft.PowerShell.PSConsoleReadLine]::GetHistoryItems() | - Reverse | Select-Object -ExpandProperty CommandLine | + Reverse | AsOrderedSet | fzf --scheme=history --no-sort --no-height --query $fuzzy }