Nicholas Marriott wrote:
> On Fri, Feb 05, 2010 at 12:55:22AM +0100, clemens fischer wrote:
> You want a -p option to confirm-before, I guess and the ability to
> insert the prompt text, which would be nice for both.
I've got a better idea, I hope. Change the syntax of the "-p" option to
"command-prompt" like this:
-p prompts
where <prompts> are <text>[<delimiter><default-answer>],... Behaviour:
if some prompt is skipped, the default-answer text is the replacement
for "%%" and "%n".
A new option could be added: "-s <delimiter>" changing the delimiter
inside a prompt.
This change would accomodate me, as I could give the prompt text as the
default answer, and it might be helpful to others while not adding
another command.
Adding a "-p" option to "confirm-before" would help that command as
well, but not in my case, because this means wasting key bindings for
each of the key-tables.
I would like to make patches myself, but I'm having problems with cvs.
It was possible to "download" the repo, but not updating it:
cvs [update aborted]: connect to
tmux.cvs.sourceforge.net(0.0.0.0):2401 failed: Connection refused
Currently I cannot perform a "login" with the same error. I'd much
rather prefer mercurial or git.
>> This is for urxvt (schmorps unicode rxvt): it sends ESC+[+5+~ outside
>> tmux, and "tmux info|g kpp" -> ":110: kpp: (string) \033[5~".
>
> It should work fine then and it does for me, are you using HEAD?
Yes. Here are my key bindings:
$ tmux list-keys -t vi-copy
C-b: page-up b: previous-word
C-c: cancel e: next-word-end
C-e: scroll-down g: history-top
C-f: page-down h: cursor-left
C-h: cursor-left j: cursor-down
Enter: copy-selection k: cursor-up
C-y: scroll-up l: cursor-right
Escape: clear-selection n: search-again
Space: begin-selection q: cancel
$: end-of-line w: next-word
/: search-forward BSpace: cursor-left
0: start-of-line NPage: page-down
:: goto-line PPage: page-up
?: search-backward Up: cursor-up
G: history-bottom Down: cursor-down
H: top-line Left: cursor-left
J: scroll-down Right: cursor-right
K: scroll-up C-Up: scroll-up
L: bottom-line C-Down: scroll-down
M: middle-line
^: back-to-indentation
The other keys in that table work as intended.
BTW, I like the way "ratpoison" (the x11 window-manager) implements key
tables: there's a "newkmap <table>" command and the "definekey" command
has a mandatory <table> argument. Tmux is different in that some tables
relate to builtin "modes" like copy-, edit- and choice-mode, but
defining own keymaps would allow grouping commands and defining complex
bindings without cluttering up the limited key-space. I think this can
be better than scripting the complex commands, because users wouldn't
need to write the scripts and could keep related stuff together.
> Well it isn't that complicated, if you want to use status-keys vi,
> just make sure you leave a pause after pressing escape to switch to
> command mode, or reduce escape-time.
I am running software.schmorp.de/pkg/rxvt-unicode.html, and I finally
understood how vi-edit is supposed to work! Funny, in vim I don't think
much about the modes.
clemens
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users