From 34c8b87c25c51521261ef20f49c34b924501890f Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 5 May 2009 16:47:43 +0000 Subject: [PATCH] generic extension key classes: ext (bash, vim), new (vim7) --- base.css | 12 +-- readline.inc.pl | 10 +- readline.plp | 2 + vim.inc.pl | 244 ++++++++++++++++++++++++------------------------ vim.plp | 4 +- 5 files changed, 140 insertions(+), 132 deletions(-) diff --git a/base.css b/base.css index 2806139..747f759 100644 --- a/base.css +++ b/base.css @@ -381,15 +381,13 @@ ul.keys li.ni { padding: 1px; /* same size as borderlessless keys */ } -dl.legend dt.vim, -ul.keys li.vim { +dl.legend dt.ext, +ul.keys li.ext { border-style: dashed; - -moz-border-radius: 0; /* incompatible with border-style */ } -dl.legend dt.vim7, -ul.keys li.vim7 { - border-style: dotted; - -moz-border-radius: 0; +dl.legend dt.new, +ul.keys li.new { + opacity: .4; } /* l/r help columns */ diff --git a/readline.inc.pl b/readline.inc.pl index 9253532..f617218 100644 --- a/readline.inc.pl +++ b/readline.inc.pl @@ -20,6 +20,13 @@ use utf8; '+~' => '+&', # emacs '^_' => ["undo", 'co'], + '+~' => ["user$sign{_}name exp$sign{_}and", 'mi ext'], # common emacs => '+&' + '+!' => ["cmd expand", 'mi ext'], + '+@' => ["host$sign{_}name exp$sign{_}and", 'mi ext'], + '+$' => ["variable expand", 'mi ext'], + '+^' => ["history expand", 'co ext'], + '+/' => ["filename expand", 'ci ext'], + '^a' => ["begin of line", 'pm'], '^b' => ["char back$sign{_}w$sign{_}ard$sign{_}s", 'pm'], '+b' => ["word back$sign{_}w$sign{_}ard$sign{_}s", 'pm'], @@ -32,7 +39,7 @@ use utf8; '+f' => ["word forward", 'pm'], '^g' => ["abort cmd, bell", 'mv'], '^h' => ["back$sign{_}space", 'mo'], - '^i' => ["complete", 'mi', '(tab)'], + '^i' => ["auto$sign{_}complet$sign{_}e", 'mi', '(tab)'], '^j' => '^m', '^+j'=> ["vim mode", 'me'], '^k' => ["delete till eol", 'mo ring'], @@ -41,6 +48,7 @@ use utf8; '^m' => ["enter line", 'co', '(enter)'], '^n' => ["history next", 'co'], '+n' => ["match history", 'co'], + '^o' => ["enter and next", 'co ext'], '^p' => ["history back", 'co'], '+p' => ["rev match history", 'co'], '^q' => '^v', # Quote diff --git a/readline.plp b/readline.plp index a49c6d3..0e6a3da 100644 --- a/readline.plp +++ b/readline.plp @@ -82,6 +82,8 @@ $keys->print_rows($get{static} || '543');
key<:= $sign{arg} :>
Commands with a dot need a char argument afterwards. +
bash +
Default assignment in Bash shells, but not common readline