Miscellaneous tidying of choose API, including:

- rename client and session to start_client and start_session in
  window_choose_data struct. also add TREE_OTHER define and reorder the
  struct
- rename window_choose_ctx to window_choose_data_run
- don't pass a cmd_ctx into window_choose_create (will let it use a
  different client later). instead take type, session, client
- add window_choose_data_free and use it to dispose of wcd rather than
  each cmd-*.c doing it individually
- change so ref counting is done by wcd_add and wcd_free rather than
  callers. this means 1 ref for each item but what of it :-)
- also add a ref to tree_session - not sure if this is needed?
- all the callbacks except choose-client and find-window are the same so
  remove them and add window_choose_default_callback
- reorder/rename some other bits and pieces for tidyness
7 files changed
tree: 7b2f3526edeec9fb799a1228df00bd3b34439675
  1. .gitignore
  2. .mailmap
  3. CHANGES
  4. FAQ
  5. Makefile.am
  6. NOTES
  7. SYNCING
  8. TODO
  9. arguments.c
  10. array.h
  11. attributes.c
  12. autogen.sh
  13. cfg.c
  14. client.c
  15. clock.c
  16. cmd-attach-session.c
  17. cmd-bind-key.c
  18. cmd-break-pane.c
  19. cmd-capture-pane.c
  20. cmd-choose-buffer.c
  21. cmd-choose-client.c
  22. cmd-choose-list.c
  23. cmd-choose-tree.c
  24. cmd-clear-history.c
  25. cmd-clock-mode.c
  26. cmd-command-prompt.c
  27. cmd-confirm-before.c
  28. cmd-copy-mode.c
  29. cmd-delete-buffer.c
  30. cmd-detach-client.c
  31. cmd-display-message.c
  32. cmd-display-panes.c
  33. cmd-find-window.c
  34. cmd-has-session.c
  35. cmd-if-shell.c
  36. cmd-join-pane.c
  37. cmd-kill-pane.c
  38. cmd-kill-server.c
  39. cmd-kill-session.c
  40. cmd-kill-window.c
  41. cmd-link-window.c
  42. cmd-list-buffers.c
  43. cmd-list-clients.c
  44. cmd-list-commands.c
  45. cmd-list-keys.c
  46. cmd-list-panes.c
  47. cmd-list-sessions.c
  48. cmd-list-windows.c
  49. cmd-list.c
  50. cmd-load-buffer.c
  51. cmd-lock-server.c
  52. cmd-move-window.c
  53. cmd-new-session.c
  54. cmd-new-window.c
  55. cmd-paste-buffer.c
  56. cmd-pipe-pane.c
  57. cmd-refresh-client.c
  58. cmd-rename-session.c
  59. cmd-rename-window.c
  60. cmd-resize-pane.c
  61. cmd-respawn-pane.c
  62. cmd-respawn-window.c
  63. cmd-rotate-window.c
  64. cmd-run-shell.c
  65. cmd-save-buffer.c
  66. cmd-select-layout.c
  67. cmd-select-pane.c
  68. cmd-select-window.c
  69. cmd-send-keys.c
  70. cmd-send-prefix.c
  71. cmd-server-info.c
  72. cmd-set-buffer.c
  73. cmd-set-environment.c
  74. cmd-set-option.c
  75. cmd-show-buffer.c
  76. cmd-show-environment.c
  77. cmd-show-messages.c
  78. cmd-show-options.c
  79. cmd-source-file.c
  80. cmd-split-window.c
  81. cmd-start-server.c
  82. cmd-string.c
  83. cmd-suspend-client.c
  84. cmd-swap-pane.c
  85. cmd-swap-window.c
  86. cmd-switch-client.c
  87. cmd-unbind-key.c
  88. cmd-unlink-window.c
  89. cmd.c
  90. colour.c
  91. compat.h
  92. compat/
  93. configure.ac
  94. control-notify.c
  95. control.c
  96. environ.c
  97. examples/
  98. format.c
  99. grid-cell.c
  100. grid-view.c
  101. grid.c
  102. input-keys.c
  103. input.c
  104. job.c
  105. key-bindings.c
  106. key-string.c
  107. layout-custom.c
  108. layout-set.c
  109. layout.c
  110. log.c
  111. mode-key.c
  112. names.c
  113. notify.c
  114. options-table.c
  115. options.c
  116. osdep-aix.c
  117. osdep-darwin.c
  118. osdep-dragonfly.c
  119. osdep-freebsd.c
  120. osdep-hpux.c
  121. osdep-linux.c
  122. osdep-netbsd.c
  123. osdep-openbsd.c
  124. osdep-sunos.c
  125. osdep-unknown.c
  126. paste.c
  127. resize.c
  128. screen-redraw.c
  129. screen-write.c
  130. screen.c
  131. server-client.c
  132. server-fn.c
  133. server-window.c
  134. server.c
  135. session.c
  136. signal.c
  137. status.c
  138. tmux.1
  139. tmux.c
  140. tmux.h
  141. tools/
  142. tty-acs.c
  143. tty-keys.c
  144. tty-term.c
  145. tty.c
  146. utf8.c
  147. window-choose.c
  148. window-clock.c
  149. window-copy.c
  150. window.c
  151. www/
  152. xmalloc.c
  153. xterm-keys.c