Skip to content

Commit

Permalink
Improve README with the purpose of code
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Mar 3, 2024
1 parent 4b4a313 commit 56363d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ winget install --exact --id junegunn.fzf
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
```

And this
And this is the implementation

```pwsh
# Do not add --height option for fzf, it shows nothing in keybind use
Expand All @@ -34,7 +34,11 @@ function Invoke-Fzf-History ([String]$fuzzy) {
$orderedCommands.Keys | & $reverse | fzf --scheme=history --no-sort --no-height --query $fuzzy
}
```

And an example keybinding for me, you can replace the `Ctrl+r` with your preferred

```pwsh
Set-PSReadLineKeyHandler -Chord Ctrl+r -ScriptBlock {
param($key, $arg)
Expand Down

0 comments on commit 56363d9

Please sign in to comment.