CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2015/12/13 07:32:38

Modified files:
        usr.bin/tmux   : cmd-attach-session.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-command-prompt.c 
                         cmd-confirm-before.c cmd-copy-mode.c 
                         cmd-detach-client.c cmd-display-message.c 
                         cmd-display-panes.c cmd-find-window.c 
                         cmd-if-shell.c cmd-join-pane.c cmd-kill-pane.c 
                         cmd-kill-session.c cmd-kill-window.c 
                         cmd-list-clients.c cmd-list-panes.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-queue.c 
                         cmd-refresh-client.c cmd-rename-session.c 
                         cmd-rename-window.c cmd-resize-pane.c 
                         cmd-respawn-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-environment.c 
                         cmd-set-hook.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-swap-pane.c 
                         cmd-swap-window.c cmd-switch-client.c cmd.c 
                         tmux.h 

Log message:
Instead of every command resolving the target (-t or -s) itself, prepare
the state (client, session, winlink, pane) for it it before entering the
command. Each command provides some flags that tell the prepare step
what it is expecting.

This is a requirement for having hooks on commands (for example, if you
hook "select-window -t1:2", the hook command should to operate on window
1:2 not whatever it thinks is the current window), and should allow some
other target improvements.

The old cmd_find_* functions remain for the moment but that layer will
be dropped later.

Joint work with Thomas Adam.

Reply via email to