From 00a2cef9c618037f003dad7cad4f8f14433d1c12 Mon Sep 17 00:00:00 2001 From: Osamu OKANO Date: Thu, 23 May 2013 19:59:35 +0900 Subject: [PATCH] split percol.load into README and percol_select_history.fish --- plugins/percol/README | 7 +++++++ plugins/percol/percol_select_history.fish | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 plugins/percol/README create mode 100644 plugins/percol/percol_select_history.fish 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_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