From: PHO Date: Tue, 1 Oct 2013 03:52:02 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=606fc17d6a055b9fc6fb8dcb62342a193f161962;p=sugar.git Auto commit by The Sugar System. --- diff --git a/dot-files/_percol_d/rc_py b/dot-files/_percol_d/rc_py new file mode 100644 index 0000000..b4f2387 --- /dev/null +++ b/dot-files/_percol_d/rc_py @@ -0,0 +1,29 @@ +# Prompt +percol.view.PROMPT = ur"Pattern: %q" + +# Style +percol.view.CANDIDATES_LINE_BASIC = ("on_default", "default") +percol.view.CANDIDATES_LINE_SELECTED = ("green", "bold", "underline") +percol.view.CANDIDATES_LINE_MARKED = ("red", "bold", "underline") +percol.view.CANDIDATES_LINE_QUERY = ("yellow", "bold") + +# Emacs-like keymap +percol.import_keymap({ + "C-h" : lambda percol: percol.command.delete_backward_char(), + "C-d" : lambda percol: percol.command.delete_forward_char(), + "C-k" : lambda percol: percol.command.kill_end_of_line(), + "C-y" : lambda percol: percol.command.yank(), + "C-a" : lambda percol: percol.command.beginning_of_line(), + "C-e" : lambda percol: percol.command.end_of_line(), + "C-b" : lambda percol: percol.command.backward_char(), + "C-f" : lambda percol: percol.command.forward_char(), + "C-n" : lambda percol: percol.command.select_next(), + "C-p" : lambda percol: percol.command.select_previous(), + "C-v" : lambda percol: percol.command.select_next_page(), + "M-v" : lambda percol: percol.command.select_previous_page(), + "M-<" : lambda percol: percol.command.select_top(), + "M->" : lambda percol: percol.command.select_bottom(), + "C-m" : lambda percol: percol.finish(), + "C-j" : lambda percol: percol.finish(), + "C-g" : lambda percol: percol.cancel(), +})