]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Tue, 1 Oct 2013 03:52:02 +0000 (12:52 +0900)
committerPHO <pho@cielonegro.org>
Tue, 1 Oct 2013 03:52:02 +0000 (12:52 +0900)
dot-files/_percol_d/rc_py [new file with mode: 0644]

diff --git a/dot-files/_percol_d/rc_py b/dot-files/_percol_d/rc_py
new file mode 100644 (file)
index 0000000..b4f2387
--- /dev/null
@@ -0,0 +1,29 @@
+# Prompt
+percol.view.PROMPT = ur"<bold><blue>Pattern:</blue></bold> %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(),
+})