CVSROOT:        /cvs
Module name:    src
Changes by:     n...@cvs.openbsd.org    2014/10/20 16:29:26

Modified files:
        usr.bin/tmux   : cmd-attach-session.c cmd-bind-key.c 
                         cmd-break-pane.c cmd-capture-pane.c 
                         cmd-choose-buffer.c cmd-choose-client.c 
                         cmd-choose-tree.c cmd-clear-history.c 
                         cmd-clock-mode.c cmd-command-prompt.c 
                         cmd-confirm-before.c cmd-copy-mode.c 
                         cmd-delete-buffer.c cmd-detach-client.c 
                         cmd-display-message.c cmd-display-panes.c 
                         cmd-find-window.c cmd-has-session.c 
                         cmd-if-shell.c cmd-join-pane.c cmd-kill-pane.c 
                         cmd-kill-server.c cmd-kill-session.c 
                         cmd-kill-window.c cmd-link-window.c 
                         cmd-list-buffers.c cmd-list-clients.c 
                         cmd-list-commands.c cmd-list-keys.c 
                         cmd-list-panes.c cmd-list-sessions.c 
                         cmd-list-windows.c cmd-load-buffer.c 
                         cmd-lock-server.c cmd-move-window.c 
                         cmd-new-session.c cmd-new-window.c 
                         cmd-paste-buffer.c cmd-pipe-pane.c 
                         cmd-refresh-client.c cmd-rename-session.c 
                         cmd-rename-window.c cmd-resize-pane.c 
                         cmd-respawn-window.c cmd-rotate-window.c 
                         cmd-run-shell.c cmd-save-buffer.c 
                         cmd-select-layout.c cmd-select-pane.c 
                         cmd-select-window.c cmd-send-keys.c 
                         cmd-set-buffer.c cmd-set-environment.c 
                         cmd-set-option.c cmd-show-environment.c 
                         cmd-show-messages.c cmd-show-options.c 
                         cmd-source-file.c cmd-split-window.c 
                         cmd-suspend-client.c cmd-swap-pane.c 
                         cmd-swap-window.c cmd-switch-client.c 
                         cmd-unbind-key.c cmd-unlink-window.c 
                         cmd-wait-for.c key-bindings.c tmux.h 

Log message:
Instead of setting up the default keys by building the key struct
directly with a helper function in the cmd_entry, include a table of
bind-key commands and pass them through the command parser and a
temporary cmd_q.

As well as being smaller, this will allow default bindings to be command
sequences which will probably be needed soon.

Reply via email to