Commit Graph

  • 6dcca5fda4 Add support for simple menus usable with mouse or keyboard. New command display-menu shows a menu (bound to the mouse on status line by default) and a couple of extra formats for the default menus. nicm 2019-05-10 18:04:06 +00:00
  • c5f6ea5c0d Merge branch 'obsd-master' Thomas Adam 2019-05-10 17:02:27 +01:00
  • 004a9b52f0 Add a function to draw a simple menu onto a screen. nicm 2019-05-10 14:12:47 +00:00
  • e5f06d2cf6 Merge branch 'obsd-master' Thomas Adam 2019-05-09 17:02:25 +01:00
  • cb10bfb8ef Save mouse buttons as well as position. nicm 2019-05-09 14:09:32 +00:00
  • 2e00d775e4 Merge branch 'obsd-master' Thomas Adam 2019-05-09 15:02:26 +01:00
  • 21d9750450 send-keys also needs to insert key commands in the right order. nicm 2019-05-09 13:12:59 +00:00
  • f431e20f3d Merge branch 'obsd-master' Thomas Adam 2019-05-09 11:02:25 +01:00
  • 3c68e51609 Change swap-window -d to be the other way round (stay with src window), so it works like swap-pane. nicm 2019-05-09 08:39:09 +00:00
  • 299b7289ea Add formats to show if pane is the marked pane and if any marked pane is set. nicm 2019-05-09 08:38:13 +00:00
  • 4bc45fc95a Merge branch 'obsd-master' Thomas Adam 2019-05-08 21:02:25 +01:00
  • f9682d2e55 Add a flag to redraw only the overlay, and remove the overlay on resize. nicm 2019-05-08 18:07:12 +00:00
  • a384245c5a Adjust how mouse targets are found so they always have a session, window and pane. nicm 2019-05-08 18:05:03 +00:00
  • b24d7d9c95 Merge branch 'obsd-master' Thomas Adam 2019-05-07 23:02:30 +01:00
  • 453a62c672 Merge branch 'obsd-master' Thomas Adam 2019-05-07 21:02:25 +01:00
  • 89db309e10 Move around the display-panes identify code to make it a bit more generic and hide the display-panes specific bits into cmd-display-panes.c. nicm 2019-05-07 20:01:41 +00:00
  • d53d3bce59 Adjust the same bit to adjust the selection for history-top and history-bottom as for cursor-up and cursor-down. GitHub issue 1723. nicm 2019-05-07 19:46:17 +00:00
  • 3439c02e9d Merge branch 'obsd-master' Thomas Adam 2019-05-07 17:02:25 +01:00
  • fcd0e3082b Rename the ENVIRONMENT section which was squatting on the standard manual page section and create a new ENVIRONMENT with the expected content. Move some information that was misplaced below the -u flag into that new section. Feedback and OK nicm@ jmc@ tb@ schwarze 2019-05-07 14:01:39 +00:00
  • d9767b8112 Merge branch 'obsd-master' Thomas Adam 2019-05-07 13:02:27 +01:00
  • 85a9c2f52b Treat keys in identify mode (display-panes) specially and handle them immediately rather than queuing them (the command can block the queue which means they were not being seen until it finished which was too late). Reported by denis@ and solene@, ok solene@. nicm 2019-05-07 11:24:03 +00:00
  • 69440d19b7 Do not use evbuffer_add_buffer because it is destructive and doesn't work in newer libevent. nicm 2019-05-07 10:25:15 +00:00
  • eac30a86d7 -attr -> -style. Nicholas Marriott 2019-05-06 21:57:14 +01:00
  • d4177e954c Merge branch 'obsd-master' Thomas Adam 2019-05-03 23:02:28 +01:00
  • 45ae9a8e35 Fix order of insertion in load_cfg. nicm 2019-05-03 21:21:00 +00:00
  • 9f75635596 Allow panes to be empty (no command), output can be piped to them with split-window or display-message -I. nicm 2019-05-03 20:44:24 +00:00
  • 4d505574dc Merge branch 'obsd-master' Thomas Adam 2019-05-03 21:02:26 +01:00
  • e8e4f4ec3e Insert after the right element on queue. nicm 2019-05-03 18:59:58 +00:00
  • 4097257bef Do not store the mouse position we calculate as the start of a drag back into the mouse event that later code uses, it has been adjusted and they should use the original position. GitHub issue 1710. nicm 2019-05-03 18:42:40 +00:00
  • a14512e23e Merge branch 'obsd-master' Thomas Adam 2019-05-03 19:02:27 +01:00
  • 84e4652513 Use the right index for user-keys. nicm 2019-05-03 18:00:19 +00:00
  • fc3d85e34b Fix mouse positioning when the pane is not entirely visible. nicm 2019-05-03 16:51:29 +00:00
  • 43656d4ea7 Sync up some tmux.1 bits. Nicholas Marriott 2019-05-03 17:12:30 +01:00
  • fff85d854e Merge branch 'obsd-master' Thomas Adam 2019-05-03 17:04:11 +01:00
  • cf6075fb29 Correct ordering when adding after an existing item. nicm 2019-05-03 15:43:01 +00:00
  • 33298d6df6 Instead of processing keys all together, put them up on the client command queue so they are ordered correctly with the commands that they execute. nicm 2019-05-03 14:51:30 +00:00
  • 4bb48998e0 Fix reverse attribute in status line, GitHub issue 1709. nicm 2019-05-03 10:00:48 +00:00
  • 5d9e591ae8 Fix up some bits about window-size that seem to have got lost. nicm 2019-05-02 20:12:40 +00:00
  • 4d16df9312 Merge branch 'obsd-master' Thomas Adam 2019-05-01 09:02:27 +01:00
  • 18e554aa61 Merge tag '2.9a' Nicholas Marriott 2019-05-01 07:29:23 +01:00
  • 4cb13d95ba Add to CHANGES. 2.9a Nicholas Marriott 2019-05-01 07:16:20 +01:00
  • e36d6ee06a Version 2.9a. Nicholas Marriott 2019-05-01 07:12:14 +01:00
  • 901eed7b71 Do not loop forever if there is a nonprintable character in the format. nicm 2019-04-24 20:27:52 +00:00
  • 750d5830c2 Don't redraw control clients, from George Nachman. nicm 2019-04-30 06:21:30 +00:00
  • e286178aa7 Unbreak main-vertical and main-horizontal layouts. nicm 2019-04-26 10:15:40 +00:00
  • c176361788 Remove unused variable from Thomas Adam. nicm 2019-05-01 06:07:14 +00:00
  • dc7e53897a Merge branch 'obsd-master' Thomas Adam 2019-04-30 21:02:26 +01:00
  • 429c4bc51b Fix user options after show-hooks merge, GitHub issue 1704. nicm 2019-04-30 18:02:03 +00:00
  • 1156d91cf8 Simple -C sanity test. Nicholas Marriott 2019-04-30 18:39:07 +01:00
  • 4c5b0fbbcc Merge branch 'obsd-master' Thomas Adam 2019-04-30 09:02:29 +01:00
  • 5a288b1efe Don't redraw control clients, from George Nachman. nicm 2019-04-30 06:21:30 +00:00
  • 82c789ee58 Fix memory leak in window tree search, from Amos Bird. nicm 2019-04-30 06:19:51 +00:00
  • 7e0f9ab3eb Don't think I will do this. Nicholas Marriott 2019-04-29 21:48:15 +01:00
  • 87bd8965c6 Add to CHANGES & remove from TODO. Nicholas Marriott 2019-04-29 20:18:07 +01:00
  • 2aa517c805 Merge branch 'obsd-master' Thomas Adam 2019-04-29 09:02:25 +01:00
  • ec81bd2399 Add support for keys to jump between matching brackets - C-M-f and C-M-b in emacs, % in vi. Suggested by and help from Chris Barber in GitHub issue 1666. nicm 2019-04-29 06:55:21 +00:00
  • 3ab229da70 Merge branch 'obsd-master' Thomas Adam 2019-04-28 23:02:30 +01:00
  • 2cecabd75e Fix gseq use in RGB colour script. Nicholas Marriott 2019-04-28 22:16:12 +01:00
  • c4b0da5513 Support multiple occurances of the same argument. Use this for a new flag -e to new-window, split-window, respawn-window, respawn-pane to pass environment variables into the newly created process. From Steffen Christgau in GitHub issue 1697. nicm 2019-04-28 20:05:50 +00:00
  • 5489796737 Merge branch 'obsd-master' Thomas Adam 2019-04-27 20:09:07 +01:00
  • 85f09f9a4c Merge branch 'obsd-master' Thomas Adam 2019-04-26 13:02:37 +01:00
  • 293fd0d258 Update CHANGES and TODO. Nicholas Marriott 2019-04-26 12:44:25 +01:00
  • dfb7bb6830 Merge hooks into options and make each one an array option. This allows multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown). nicm 2019-04-26 11:38:51 +00:00
  • f1e14f86c4 Destroy panes before options to avoid crash when forced into a mode by a hook. nicm 2019-04-26 10:24:26 +00:00
  • 6644d209d2 Unbreak main-vertical and main-horizontal layouts. nicm 2019-04-26 10:15:40 +00:00
  • 7c4a2253e8 Merge branch 'obsd-master' Thomas Adam 2019-04-25 21:02:43 +01:00
  • 2d65bbd941 options_array_item_value cannot return NULL. nicm 2019-04-25 19:36:59 +00:00
  • a609e6361a Need a fallback for -2 for aixterm colours. nicm 2019-04-25 19:03:43 +00:00
  • 32a81e197b Make options_tostring allocate its result instead of using a stack buffer (needed for something in the future). nicm 2019-04-25 18:18:55 +00:00
  • f2c0605d6d Merge branch 'obsd-master' Thomas Adam 2019-04-25 17:02:37 +01:00
  • 1677bb0dea Need to escape ]. nicm 2019-04-25 15:35:07 +00:00
  • dddc544b8f Update CHANGES. Nicholas Marriott 2019-04-25 13:00:32 +01:00
  • 643eecde86 Merge branch 'obsd-master' Thomas Adam 2019-04-25 09:02:36 +01:00
  • 567d3e27ab Automatically scroll if dragging to create a selection with the mouse and the cursor reaches the top or bottom line. nicm 2019-04-25 06:34:57 +00:00
  • a2e08b587a Merge branch '2.9-rc' Nicholas Marriott 2019-04-25 07:29:02 +01:00
  • cb75ec25c8 2.9 now. 2.9 Nicholas Marriott 2019-04-24 22:35:23 +01:00
  • 7d06216289 Do not loop forever if there is a nonprintable character in the format. nicm 2019-04-24 20:27:52 +00:00
  • 4ab208ecc8 Merge branch 'obsd-master' Thomas Adam 2019-04-24 22:09:57 +01:00
  • 6aa0bedad2 Use bg not fg when adjusting for aixterm, from Ailin Nemui. nicm 2019-04-24 20:32:31 +00:00
  • c6e39976c6 Do not loop forever if there is a nonprintable character in the format. nicm 2019-04-24 20:27:52 +00:00
  • c869366133 Merge branch 'obsd-master' Thomas Adam 2019-04-23 23:02:42 +01:00
  • b9022e33ea Somehow missed these bits in last commit. nicm 2019-04-23 20:40:03 +00:00
  • 772b3b7a06 Indicate an array option with a flag rather than a special type so that in future will not have to be strings. nicm 2019-04-23 20:36:55 +00:00
  • b0d7623b7e Merge branch 'obsd-master' Thomas Adam 2019-04-23 13:02:37 +01:00
  • 4a96f599f6 Merge branch 'obsd-master' Thomas Adam 2019-04-23 11:02:36 +01:00
  • 564e44adc6 Add -no-clear variants of copy-selection and copy-pipe which do not clear the selection after copying. Make copy-pipe clear the selection by default to be consistent with copy-selection. From Avi Halachmi. nicm 2019-04-23 09:39:07 +00:00
  • 6752f41c2a Do not try to resize if the parent cell is NULL, problem reported by Sunil Nimmagadda. nicm 2019-04-23 09:15:24 +00:00
  • 51c09bf2b4 Merge branch '2.9-rc' Nicholas Marriott 2019-04-18 22:14:55 +01:00
  • d24a44230a Update CHANGES for 2.9. Nicholas Marriott 2019-04-18 22:12:15 +01:00
  • 8d752f5aaa Update CHANGES. Nicholas Marriott 2019-04-18 22:11:46 +01:00
  • e7827f8bc2 Remove duplicate entry. Nicholas Marriott 2019-04-18 14:16:19 +01:00
  • f980e868dd Merge branch 'obsd-master' Thomas Adam 2019-04-18 14:11:22 +01:00
  • 3c1f0cfc34 Merge branch 'obsd-master' Thomas Adam 2019-04-18 14:08:13 +01:00
  • 5b9211d827 Copy the code to infer the option type to show-options and document it. nicm 2019-04-18 12:22:07 +00:00
  • 3f189945d8 Pass target client and session to load_cfg from source-file so formats work. Reported by Thomas Sattler. nicm 2019-04-18 11:07:28 +00:00
  • f3ab05e7cd Update session activity on focus event, from tafryn at gmail dot com. nicm 2019-04-18 10:11:52 +00:00
  • 2219f7cc73 mark up punctuation-as-macro-args properly; jmc 2019-04-17 16:34:35 +00:00
  • 1fd3b9ec1c Fix minimum size check on split and size of first cell on spread out with a pane status line. nicm 2019-04-17 14:44:33 +00:00
  • da31eddadc Rewrite main-vertical and horizontal to use the common spread out code and to handle the case where the panes won't fit into the existing window size. nicm 2019-04-17 14:44:14 +00:00
  • c660e46149 Set the window size as well as the layout size when using the preset layouts. nicm 2019-04-17 14:43:49 +00:00