Commit 60b17c9c authored by Tobias Johansson's avatar Tobias Johansson

peco_select_history can take initial query

parent 55b6a97b
peco
----
Based directly on the percol plugin. Based directly on the percol plugin.
Please bind peco_select_history in your favorite key. Please bind peco_select_history to your favorite key.
If you'd like to bind CTRL+R If you'd like to bind CTRL+R
```
function fish_user_key_bindings function fish_user_key_bindings
bind \cr peco_select_history bind \cr 'peco_select_history (commandline -b)'
end end
```
function peco_select_history function peco_select_history
history|peco|read foo if test (count $argv) = 0
set peco_flags --layout=bottom-up
else
set peco_flags --layout=bottom-up --query "$argv"
end
history|peco $peco_flags|read foo
if [ $foo ] if [ $foo ]
commandline $foo commandline $foo
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment