Commit Graph

  • 41e633acf5 Use the notify name string instead of going via an enum and change existing hooks to use notifys instead. nicm 2016-10-16 22:06:40 +00:00
  • 1a6e696b08 Merge branch 'obsd-master' Thomas Adam 2016-10-16 22:01:14 +01:00
  • d401340c51 Update TODO. Nicholas Marriott 2016-10-16 20:59:43 +01:00
  • d15d54c2c8 Add hook_session and hook_window formats to get information on the affected session or window when a hook fires. Enable session-created and session-closed hooks now that that is available. nicm 2016-10-16 19:55:52 +00:00
  • 3f35b5299f Provide a way for hooks to tag formats onto the commands they fire so that the user can get at additional information - now used for the "hook" format, more to come. nicm 2016-10-16 19:36:37 +00:00
  • 026ad08b56 Notifys can go via the command queue instead of using their own queue. nicm 2016-10-16 19:15:02 +00:00
  • b342bd0b46 Mass rename struct cmd_q to struct cmdq_item and related. nicm 2016-10-16 19:04:05 +00:00
  • c67b702588 Merge branch 'obsd-master' Thomas Adam 2016-10-16 20:01:10 +01:00
  • ddc4512d2e Rewrite command queue handling. Each client still has a command queue, but there is also now a global command queue. Instead of command queues being dispatched on demand from wherever the command happens to be added, they are now all dispatched from the top level server loop. Command queues may now also include callbacks as well as commands, and items may be inserted after the current command as well as at the end. nicm 2016-10-16 17:55:14 +00:00
  • 3d8efdf310 Merge branch 'obsd-master' Thomas Adam 2016-10-16 02:01:11 +01:00
  • bfe14b5312 Only use pane with run-shell if -t is given. nicm 2016-10-15 23:06:39 +00:00
  • a15939b502 Merge branch 'obsd-master' Thomas Adam 2016-10-15 14:01:10 +01:00
  • 4fbf564292 zap double .Pp; jmc 2016-10-15 12:34:02 +00:00
  • 59d1147469 Merge branch 'obsd-master' Thomas Adam 2016-10-15 12:01:14 +01:00
  • e7990375cb Give window_create and window_create1 better names. nicm 2016-10-15 09:27:52 +00:00
  • 623e54788e Merge branch 'obsd-master' Thomas Adam 2016-10-15 02:01:12 +01:00
  • 3f138dc40c Rename a function for consistency and some spacing nits. nicm 2016-10-15 00:12:58 +00:00
  • 63b2547a02 Fire hooks on the simple notifys (window-renamed and session-renamed), the complicated ones get no hooks for now (more to come). nicm 2016-10-15 00:09:30 +00:00
  • 9b3ae84993 Drain notifys once at the end of the server loop instead of doing it from the end of every command queue (which could be nested). nicm 2016-10-15 00:01:01 +00:00
  • 3d2686a236 Merge branch 'obsd-master' Thomas Adam 2016-10-15 00:01:10 +01:00
  • ed971268be Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling. nicm 2016-10-14 22:14:22 +00:00
  • d413a945ac Don't make assumptions about line wrap on !xenl terminals, means that using a wrong TERM without xenl is not so broken if used on a sensible terminal. nicm 2016-10-14 21:48:00 +00:00
  • 9d58febc8f Merge branch 'obsd-master' Thomas Adam 2016-10-14 22:01:11 +01:00
  • 33fbf82ac0 Merge branch 'obsd-master' Thomas Adam 2016-10-14 20:01:13 +01:00
  • 1721d1994e source-file and some other commands can recurse back into cmdq_continue, which could potentially free the currently running command, so we need to take a reference to it in cmdq_continue_one. nicm 2016-10-14 18:41:53 +00:00
  • 0ec18e537d Missing flags in capture-pane, and tweak choose-tree text. From Dilyan Palauzov. nicm 2016-10-14 17:40:47 +00:00
  • 117737c6ca Merge branch 'obsd-master' Thomas Adam 2016-10-14 02:01:14 +01:00
  • a7ce19347a Merge branch 'obsd-master' Thomas Adam 2016-10-14 00:01:13 +01:00
  • 4289a1ebfa Trying to do hooks generically is way too complicated and unreliable and confusing, particularly trying to automatically figure out what target hooks should be using. So simplify it: nicm 2016-10-13 22:48:51 +00:00
  • 5d2288b22a Update TODO. Nicholas Marriott 2016-10-13 22:40:20 +01:00
  • 7a1a01feef Remove the set-remain-on-exit option, it was always a hack and can now be done with hooks instead. nicm 2016-10-13 21:37:03 +00:00
  • e6f7180af1 tmux no longer uses openat() so we can remove the compatibilty function. Nicholas Marriott 2016-10-13 22:17:29 +01:00
  • ad5a561adb Merge branch 'obsd-master' Thomas Adam 2016-10-13 22:01:12 +01:00
  • 4179b42424 Add support for BCE (background colour erase). This makes various escape sequences (notable EL and ED but also IL, DL, ICH, DCH) create blank cells using the current background colour rather than the default colour. nicm 2016-10-13 20:27:27 +00:00
  • f691d46a16 Update TODO. Nicholas Marriott 2016-10-13 21:14:33 +01:00
  • 1bd08f903b Remove mention of key tables than no longer exist. nicm 2016-10-13 20:09:19 +00:00
  • 6270392d04 Merge branch 'obsd-master' Thomas Adam 2016-10-13 12:01:11 +01:00
  • 4d9e6ea310 Some improvements and bug fixes for hooks: nicm 2016-10-13 10:01:49 +00:00
  • 05dac2e42c -f missed from splitw usage, from Felix Rosencrantz. nicm 2016-10-13 09:06:48 +00:00
  • 6551f4bb3b Merge branch 'obsd-master' Thomas Adam 2016-10-13 08:09:47 +01:00
  • e0add119ea Compare to see if pane status line has actually changed, not just size, and do not draw if pane is not visible. nicm 2016-10-12 17:36:52 +00:00
  • e83ebf50de Fix a couple of problems with insert mode: flush dirty cells before we modify the screen, not after; and use grid_view_insert_cells to make space not grid_move_cells. nicm 2016-10-12 15:43:51 +00:00
  • 40253048ca bind-key -c has gone, remove from man page, and unused table declarations. nicm 2016-10-12 15:26:37 +00:00
  • c484c5a2a1 Drop the edit mode key tables and just use fixed key bindings for the command prompt. nicm 2016-10-12 14:50:14 +00:00
  • 4160df4ca4 Redraw selection in tty_draw_line, so it appears when redrawing whole pane. Reported by Theo Buehler. nicm 2016-10-12 13:24:07 +00:00
  • 68bebe1fb7 The repeat prompt in both emacs and vi (and the old one in tmux) doesn't support line editing and instead executes a command as soon as a non-number key is pressed. Add a -N flag to command-prompt for the same in copy mode. Reported by Theo Buehler. nicm 2016-10-12 13:03:27 +00:00
  • 76a9e6f27b NetBSD needs _OPENBSD_SOURCE for reallocarray. Nicholas Marriott 2016-10-12 10:52:04 +01:00
  • 22a8afee9e Unused variable and missing time.h. nicm 2016-10-12 09:07:58 +00:00
  • 12efb40dc5 Linux: #include <time.h> for time() Thomas Adam 2016-10-12 09:53:30 +01:00
  • 0f7d39c410 Add missing function protype Thomas Adam 2016-10-12 09:49:16 +01:00
  • b9dc855016 Merge branch 'obsd-master' Thomas Adam 2016-10-12 09:45:49 +01:00
  • 5c49e1d0c1 Some other stuff that can be local to one file. nicm 2016-10-11 13:45:47 +00:00
  • e45401846f Add static in window-*.c and move some internal functions out of tmux.h. nicm 2016-10-11 13:21:59 +00:00
  • 85d7afaefc Support double and triple clicks (they are cumulative, so double is fired then triple), and use for select-word and select-line in copy mode. Inspired by a different solution from Omar Sandoval. nicm 2016-10-11 09:30:36 +00:00
  • 76d6d3641f Fundamental change to how copy mode key bindings work: nicm 2016-10-11 07:23:34 +00:00
  • 8b804fb589 Support UTF-8 entry into the command prompt. nicm 2016-10-11 07:11:40 +00:00
  • a81685bfac Add static in cmd-* and fix a few other nits. nicm 2016-10-10 21:51:39 +00:00
  • c426e485e5 Loads more static, except for cmd-*.c and window-*.c. nicm 2016-10-10 21:29:23 +00:00
  • 27126f8797 Merge branch 'obsd-master' Thomas Adam 2016-10-10 20:01:11 +01:00
  • 66b5477cc1 Do not allow the opposite pane to resize when dragging with the mouse because it is not possible to keep the mouse on the border when the minimum size is reached. nicm 2016-10-10 17:28:30 +00:00
  • 226b6a2192 Merge branch 'obsd-master' Thomas Adam 2016-10-10 16:01:12 +01:00
  • 7d4b416fe6 Some more static. nicm 2016-10-10 13:54:47 +00:00
  • 215d3f8c0d Merge branch 'obsd-master' Thomas Adam 2016-10-09 18:01:10 +01:00
  • b8f2dd8237 Make the CLIENT_STATUS flag imply that pane status lines are redrawn if they are enabled and break the actual screen generation code into a separate function. Fixes problems reported by Romain Francoise. nicm 2016-10-09 16:24:34 +00:00
  • 526e860a7a Merge branch 'obsd-master' Thomas Adam 2016-10-09 10:01:12 +01:00
  • 1db6d6fea6 Pass file/line to new command for if-shell so that errors appear sensibly. nicm 2016-10-09 08:06:51 +00:00
  • 48dd250af1 Handle NULL window or session for user options. nicm 2016-10-09 07:58:35 +00:00
  • 44449b305b Use xsnprintf not snprintf for the prompt in window_copy_write_line because we don't care if it is truncated to the screen width, we don't want it to be fatal. nicm 2016-10-09 07:30:28 +00:00
  • fb0b2cd37a Merge branch 'obsd-master' Thomas Adam 2016-10-06 00:01:11 +01:00
  • 30086e504c screen_write_copy tried to be clever and clear the line if it reached the end of the source, but it was wrong and causes problems that are only showing up now we are more aggressive about skipping redundant screen updates. Remove the optimization entirely as more trouble than it is worth to fix (and it'll have to go when BCE is done anyway). nicm 2016-10-05 22:00:29 +00:00
  • 5b8f033e06 Merge branch 'obsd-master' Thomas Adam 2016-10-05 14:01:10 +01:00
  • f55c991a1b Wrap some long lines in screen-write.c. nicm 2016-10-05 12:36:36 +00:00
  • 4117a7ed19 Keep buffer creation time and add accessors for it and the order number. nicm 2016-10-05 12:34:05 +00:00
  • b4f95c43fc Allow cmd_mouse_at return arguments to be NULL. nicm 2016-10-05 12:32:13 +00:00
  • 4740ecbeae Merge branch 'obsd-master' Thomas Adam 2016-10-04 02:01:11 +01:00
  • ddfed259f6 Merge branch 'obsd-master' Thomas Adam 2016-10-04 00:01:11 +01:00
  • 1b31d148c9 Remove some dead code in cmd-move-window.c and make a load of local functions static. nicm 2016-10-03 22:52:11 +00:00
  • 6943fbbb81 Merge branch 'obsd-master' Thomas Adam 2016-10-03 22:01:12 +01:00
  • 305c832a97 Document set-hook -u. nicm 2016-10-03 20:58:39 +00:00
  • 61dfbe702e Remove some redundant checks and make ich/dch consistent. nicm 2016-10-03 19:19:18 +00:00
  • 23254f59da Fix typos Thomas Adam 2016-09-30 09:50:40 +01:00
  • bb7cc8e8fd Start working on 2.4 Thomas Adam 2016-09-29 22:00:00 +01:00
  • 52869ed182 Release tmux 2.3 2.3 Thomas Adam 2016-09-29 21:54:12 +01:00
  • 19104d592b Merge branch 'obsd-master' Thomas Adam 2016-09-29 12:01:11 +01:00
  • cf7f3a436a Check padding when writing any character with width > 1, in case they overlap after the first character (for example with cells xy and ab, y is replacing a). nicm 2016-09-29 08:50:43 +00:00
  • c41916ee16 Merge branch 'obsd-master' Thomas Adam 2016-09-28 18:01:11 +01:00
  • bb5798aa0e Couple of vasprintf -> xvasprintf. nicm 2016-09-28 14:40:07 +00:00
  • 27591570c4 Merge branch 'obsd-master' Thomas Adam 2016-09-28 10:01:11 +01:00
  • acacb718e5 Rate limit TIOCSWINSZ on a timer to avoid programs getting hammered with SIGWINCH when the size changes rapidly. To help a problem reported by Rui Pinheiro. nicm 2016-09-28 08:30:44 +00:00
  • 30f2e8ff29 Merge branch 'obsd-master' Thomas Adam 2016-09-26 12:01:12 +01:00
  • 69e980602b Support set -a (append) with user options, suggested by Xandor Schiefer. nicm 2016-09-26 09:02:34 +00:00
  • cbde98f67b Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2016-09-16 18:09:51 +01:00
  • 895f1d93d5 Merge branch 'obsd-master' Thomas Adam 2016-09-16 16:01:16 +01:00
  • eb50e7a2c8 Swap watermarks from high (4096) to low (128) when we get full buffers into the read callback several times in succession; swap back when we see empty buffers several times. This hopefully limits how much programs that print a lot for a long period can monopolize tmux (like large, fast compiling), without penalizing programs that print a lot briefly (like most curses applications). Helps a lot for me, the actual numbers may need tweaking later. nicm 2016-09-16 13:43:41 +00:00
  • 6e8f400edc Do not use utf8proc by default. Nicholas Marriott 2016-09-15 20:37:48 +01:00
  • a5b29a1250 Merge branch 'obsd-master' Thomas Adam 2016-09-12 18:01:12 +01:00
  • 2e5584c2b4 Allow repeat count to be specified in mode key tables with bind-key -R, and set the default repeat count to 5 for WheelUp and WheelDown in copy-mode. nicm 2016-09-12 15:40:58 +00:00
  • 060515684d Apple have changed their API again, from Gregory Pakosz. Nicholas Marriott 2016-09-12 11:06:35 +01:00
  • c6cdab1f79 Use ncurses OR curses, don't mix header and library. Tested by Rob Paisley. Nicholas Marriott 2016-09-08 19:28:56 +01:00
  • 3ed0973493 Solaris build fixes from Rob Paisley. Nicholas Marriott 2016-09-08 15:32:15 +01:00