diff --git a/plugins/percol/README b/plugins/percol/README new file mode 100644 index 0000000..e1d964f --- /dev/null +++ b/plugins/percol/README @@ -0,0 +1,7 @@ +Please bind percol_select_history in your favorite key. + +If you'd like to bind CTRL+R + +function fish_user_key_bindings + bind \cr percol_select_history +end diff --git a/plugins/percol/percol.load b/plugins/percol/percol.load new file mode 100644 index 0000000..56de6cb --- /dev/null +++ b/plugins/percol/percol.load @@ -0,0 +1,13 @@ +function percol_select_history + history|percol|read foo + if [ $foo ] + commandline $foo + else + commandline '' + end +end + +# ~/.oh-my-fish/custom/*.load +# function fish_user_key_bindings +# bind \cr percol_select_history +# end diff --git a/plugins/percol/percol_select_history.fish b/plugins/percol/percol_select_history.fish new file mode 100644 index 0000000..533716d --- /dev/null +++ b/plugins/percol/percol_select_history.fish @@ -0,0 +1,8 @@ +function percol_select_history + history|percol|read foo + if [ $foo ] + commandline $foo + else + commandline '' + end +end