Skip to content

Commit fe06a3d

Browse files
authored
Breaking change: don't initially show preview (#348)
- Makes it more consistent with file and history commands - Intended to resolve #264
1 parent a864fb9 commit fe06a3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PSFzf.TabExpansion.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,13 @@ function script:Invoke-FzfTabCompletionInner() {
282282
$arguments = @{
283283
Layout = 'reverse'
284284
Expect = "$expectTriggers"
285-
PreviewWindow = 'down:30%'
285+
PreviewWindow = 'hidden'
286286
}
287287
if ($isTabTrigger) {
288-
$arguments["Bind"] = @('ctrl-/:change-preview-window(down,right:50%,border-top|hidden|)')
288+
$arguments["Bind"] = @('ctrl-/:change-preview-window:down|right|right:hidden')
289289
}
290290
else {
291-
$arguments["Bind"] = @('tab:down', 'btab:up', 'ctrl-/:change-preview-window(down,right:50%,border-top|hidden|)')
291+
$arguments["Bind"] = @('tab:down', 'btab:up', 'ctrl-/:change-preview-window:down|right|right:hidden')
292292
}
293293

294294
# need to handle parameters differently so PowerShell doesn't parse completion item as a script parameter:

0 commit comments

Comments
 (0)