From f4255727e0b6e78b6c03be74ab982adb87a62247 Mon Sep 17 00:00:00 2001 From: Osamu OKANO Date: Wed, 22 May 2013 20:59:19 +0900 Subject: [PATCH 1/2] percol plugin --- plugins/percol/percol.load | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 plugins/percol/percol.load 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 From 00a2cef9c618037f003dad7cad4f8f14433d1c12 Mon Sep 17 00:00:00 2001 From: Osamu OKANO Date: Thu, 23 May 2013 19:59:35 +0900 Subject: [PATCH 2/2] 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