summaryrefslogtreecommitdiffstats
path: root/cmd-choose-client.c
AgeCommit message (Collapse)Author
2009-11-14Sync OpenBSD patchset 539:Tiago Cunha
Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the command entry structs and a couple of functions to check/set the flags.
2009-09-07Sync OpenBSD patchset 320:Tiago Cunha
Reference count clients and sessions rather than relying on a saved index for cmd-choose-*.
2009-08-25Include <ctype.h>.Tiago Cunha
2009-08-25Sync OpenBSD patchset 294:Tiago Cunha
Add a choose-client command and extend choose-{session,window} to accept a template. After a choice is made, %% (or %1) in the template is replaced by the name of the session, window or client suitable for -t and the result executed as a command. So, for example, "choose-window "killw -t '%%'"" will kill the selected window. The defaults if no template is given are (as now) select-window for choose-window, switch-client for choose-session, and detach-client for choose-client (now bound to D).