Commit Graph

  • 52847a9518 It is silly for cmd_list_parse to return an integer error when it could just return NULL. nicm 2017-01-15 22:00:56 +00:00
  • 3054846143 -q flag now needs to be checked in a couple more places. nicm 2017-01-15 20:50:34 +00:00
  • 2b0bc9f1c5 Major tidy up and rework of options tree and set-option/show-options commands this pushes more of the code into options.c and ties it more closely to the options table rather than having an unnecessary split. Also add support for array options (will be used later). Only (intentional) user visible change is that show-options output is now passed through vis(3) with VIS_DQ so quotes are escaped. nicm 2017-01-15 20:48:41 +00:00
  • 404214b0ac Remove unused quiet option. nicm 2017-01-15 20:16:22 +00:00
  • a3cf995017 Append needs to go old,new not new,old... nicm 2017-01-15 20:14:36 +00:00
  • 4f077fe62c Merge branch 'obsd-master' Thomas Adam 2017-01-14 20:01:13 +00:00
  • e06efab9da killp -a should not kill the window if only one pane. nicm 2017-01-14 18:53:08 +00:00
  • 780dd7ac82 Merge branch 'obsd-master' Thomas Adam 2017-01-13 14:01:13 +00:00
  • 2311bbd28a Merge branch 'obsd-master' Thomas Adam 2017-01-13 12:01:12 +00:00
  • 08d21936e4 options_get_style return const too. nicm 2017-01-13 11:58:49 +00:00
  • 22a528905d Make options_get_string return const string. nicm 2017-01-13 11:56:43 +00:00
  • 95950bf668 Add -E to detach-client to exec a command to replace the client instead of exiting it, useful if tmux wasn't exec'd itself. From Jenna Magius. nicm 2017-01-13 10:12:12 +00:00
  • d4cb178249 Merge branch 'obsd-master' Thomas Adam 2017-01-12 16:01:13 +00:00
  • 24cba5907b Simplify appending to string options. nicm 2017-01-12 15:36:35 +00:00
  • 1eb9500644 Merge branch 'obsd-master' Thomas Adam 2017-01-12 12:01:10 +00:00
  • dad3090d32 Put all palette functions together in the file. nicm 2017-01-12 10:15:55 +00:00
  • 4a76861925 Merge branch 'obsd-master' Thomas Adam 2017-01-12 02:01:11 +00:00
  • 9b6aeacdc0 aixterm colours can be used if -2 is given, as well as if TERM tells us the terminal has >=16 colours. nicm 2017-01-12 00:30:41 +00:00
  • 0752fdaf6a Erm the aixterm colours should start at 8, not 7. nicm 2017-01-12 00:24:28 +00:00
  • 9e786030df Fix setting the palette of aixterm colours (90-97). nicm 2017-01-12 00:19:32 +00:00
  • 33ebb9ec39 Merge branch 'obsd-master' Thomas Adam 2017-01-12 00:01:13 +00:00
  • 74c40d04ea Be less aggressive about turning margins off. nicm 2017-01-11 23:10:04 +00:00
  • 3bb14001b9 Add some missing special keys to key_string_lookup_key, fix a mouse check in server_client_handle_key, and tweak a comment. nicm 2017-01-11 22:36:07 +00:00
  • d87ab0cadf Merge branch 'obsd-master' Thomas Adam 2017-01-11 18:01:13 +00:00
  • bf6a5c056d Add a format for terminal type. nicm 2017-01-11 16:09:57 +00:00
  • 7497ecd979 Use a macro for looking up tty types. nicm 2017-01-11 16:05:46 +00:00
  • 0d19d78fff Merge branch 'obsd-master' Thomas Adam 2017-01-11 16:01:16 +00:00
  • 458b6eb600 Some tidying and tweaks to options code. nicm 2017-01-11 14:56:44 +00:00
  • 8f79b079cd Merge branch 'obsd-master' Thomas Adam 2017-01-10 22:01:14 +00:00
  • db8dff6814 Merge branch 'obsd-master' Thomas Adam 2017-01-10 20:01:12 +00:00
  • 5526627558 Minor tidying in a couple of commands. nicm 2017-01-10 19:45:55 +00:00
  • ba35e8f292 15 minutes is not 1800 seconds, but just remove lock-after-time because it won't work for Linux folks without additional configuration Nicholas Marriott 2017-01-10 19:33:22 +00:00
  • 2283f19876 -temacs-copy should now be -Tcopy-mode Nicholas Marriott 2017-01-10 19:31:34 +00:00
  • 152bfa02f0 Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2017-01-10 19:27:23 +00:00
  • a5c89a1802 Change around the example .tmux.conf to show some newer features. Nicholas Marriott 2017-01-10 19:26:54 +00:00
  • aa4de2d4b2 Need to escape ; twice because the command list parser will eat one, reported by Theo Buehler. nicm 2017-01-10 18:10:24 +00:00
  • 570943beb7 Merge branch 'obsd-master' Thomas Adam 2017-01-10 14:01:12 +00:00
  • 1e12e1d843 Merge branch 'obsd-master' Thomas Adam 2017-01-10 12:01:10 +00:00
  • 5ea7a00eba Quote backslash as well for %%%. nicm 2017-01-10 11:58:30 +00:00
  • e78142232f Some manpage fixes: rephrase a convoluted sentence, make the names of some keys more standard, and use Ql instead of Dq. nicm 2017-01-10 10:08:59 +00:00
  • 628f3ad9f4 Merge branch 'obsd-master' Thomas Adam 2017-01-10 10:01:11 +00:00
  • 40fddfbdd6 avoid unneccessary markup; tweaked and ok nicm jmc 2017-01-10 07:55:48 +00:00
  • 2c862b04af Merge branch 'obsd-master' Thomas Adam 2017-01-09 22:01:12 +00:00
  • 36619607ba Add a format for the version. Nicholas Marriott 2017-01-09 21:44:19 +00:00
  • d2d984647e Add %if/%endif for conditionals when parsing configuration files, the argument is a format (the new == and != are useful). nicm 2017-01-09 21:28:56 +00:00
  • 844f2eacf4 Add simple comparisons in formats: #{==:a,b} and #{!=:a,b} ("a" and "b" are expanded so can compare formats). And expand the condition to #{?a,b,c} (the "a" part) if it doesn't work as a simple lookup. nicm 2017-01-09 21:03:25 +00:00
  • 95f5d406e5 Merge branch 'obsd-master' Thomas Adam 2017-01-09 20:01:12 +00:00
  • 561b5c6fdb source-file -q needs to apply to glob(3) too. nicm 2017-01-09 19:29:12 +00:00
  • 5330a2a85d Run the source-file pattern through glob(3). nicm 2017-01-09 19:27:00 +00:00
  • d90fa2ec13 Tweak TODO file. Nicholas Marriott 2017-01-09 17:48:30 +00:00
  • 325c85a5c1 Merge branch 'obsd-master' Thomas Adam 2017-01-07 18:01:11 +00:00
  • 29e64a8c64 Merge branch 'obsd-master' Thomas Adam 2017-01-07 16:01:17 +00:00
  • c05002b0f2 Add note about ccc and initc so people who want it can see it is possible. nicm 2017-01-07 15:40:23 +00:00
  • 314e933914 Add support for the OSC 4 and OSC 104 palette setting escape sequences, from S Gilles. nicm 2017-01-07 15:28:13 +00:00
  • a3428487a7 Merge branch 'obsd-master' Thomas Adam 2017-01-06 14:01:15 +00:00
  • cae0fbbe8c Nits found with clang. nicm 2017-01-06 13:26:09 +00:00
  • 461217d0f0 Incremental search in copy mode (on for emacs keys by default) - much the same as normal searching but updates the cursor position and marked search terms as you type. C-r and C-s in the prompt repeat the search, once finished searching (with Enter), N and n work as before. nicm 2017-01-06 11:57:03 +00:00
  • 58642011df Merge branch 'obsd-master' Thomas Adam 2017-01-05 10:01:11 +00:00
  • 9a56671a75 Highlight all occurrences of search string after searching in copy mode. nicm 2017-01-05 09:07:15 +00:00
  • 45dbbb78b0 Merge branch 'obsd-master' Thomas Adam 2017-01-03 00:01:12 +00:00
  • 43e8f60bc6 Escape backspace for capture-pane -P, from George Nachman. nicm 2017-01-02 22:42:19 +00:00
  • f5c5847788 Merge branch 'obsd-master' Thomas Adam 2016-12-30 16:01:15 +00:00
  • 1015b124d5 Change the xterm-keys option to default to on, so that tmux will generate xterm(1) escape sequences for function keys with modifiers. nicm 2016-12-30 13:49:34 +00:00
  • d3328a3b1e Merge branch 'obsd-master' Thomas Adam 2016-12-28 12:01:14 +00:00
  • 70ba3c147f Fix the prefer unattached session behaviour of attach-session/switch-client, reported by Thomas Sattle. nicm 2016-12-28 10:34:34 +00:00
  • af56e50f74 utempter is no longer the default, and mention ncurses. Nicholas Marriott 2016-12-20 16:28:11 +00:00
  • 00445ebadd Merge branch 'obsd-master' Thomas Adam 2016-12-14 20:01:11 +00:00
  • e36f932f62 Fix up winlink lists after swap-window. nicm 2016-12-14 17:38:59 +00:00
  • dda701d95f Merge branch 'obsd-master' Thomas Adam 2016-12-12 02:01:27 +00:00
  • b851c628f4 -N without arguments needs to set prefix count for the mode command, so that M-1 etc work. Reported by Theo Buehler. nicm 2016-12-11 22:55:25 +00:00
  • a64b7cfe5d Merge branch 'obsd-master' Thomas Adam 2016-12-10 00:01:11 +00:00
  • bee95bf378 Spacing nits. nicm 2016-12-09 21:39:27 +00:00
  • 75135ded09 Merge branch 'obsd-master' Thomas Adam 2016-12-09 00:01:12 +00:00
  • 2a7b4bb017 Fix send-keys with UTF-8. nicm 2016-12-08 22:15:37 +00:00
  • d3ede11212 Merge branch 'obsd-master' Thomas Adam 2016-12-08 00:01:10 +00:00
  • 5819d2a9d7 Do not clear the prompt when a message is shown, just leave it around and return to it when the message is finished. nicm 2016-12-07 23:03:04 +00:00
  • b9fa8f12d7 Merge branch 'obsd-master' Thomas Adam 2016-12-07 10:01:12 +00:00
  • 5ea143f521 Only skip moving the cursor if it is already in the last position _on the same line_, fixes redraw bug reported by patrick keshishian. nicm 2016-12-07 09:16:55 +00:00
  • a8f3ad4487 Make prefix work in all tables (except the prefix table). Users who want to avoid this can set prefix to "none" and bind send-prefix themselves. Allows C-b t be bound in the copy mode tables again, pointed out by millert@. nicm 2016-12-07 09:16:13 +00:00
  • 6749a30a6e Merge branch 'obsd-master' Thomas Adam 2016-11-30 14:01:11 +00:00
  • 1a6156d8fd Fix check for cursor at end of line. nicm 2016-11-30 13:20:02 +00:00
  • 1fccfd7be5 Merge branch 'obsd-master' Thomas Adam 2016-11-29 14:01:11 +00:00
  • 6b46c62bb4 Make send -N work for all keys, not just in copy mode. From Artem Fokin. nicm 2016-11-29 12:54:46 +00:00
  • d7837cca52 Merge branch 'obsd-master' Thomas Adam 2016-11-28 20:01:10 +00:00
  • 9fc925ac51 When comparing ocy to orlower in tty_cmd_cell, there is no need to add yoff (because they are both already relative to the pane). Also fix some other minor nits. nicm 2016-11-28 17:50:00 +00:00
  • 2864a31311 Merge branch 'obsd-master' Thomas Adam 2016-11-24 20:01:10 +00:00
  • 6f8cedb1bc The mouse valid flag needs to be correct before we fire the dragging callback, so move the callback outside of server_client_check_mouse and use a new special key code to indicate it. nicm 2016-11-24 18:45:45 +00:00
  • a02d95a313 Merge branch 'obsd-master' Thomas Adam 2016-11-24 16:01:11 +00:00
  • 84319aa8f0 If in the middle of a drag, don't use an invalid key, just use KEYC_MOUSE as a placeholder. Reported by Artem Fokin. nicm 2016-11-24 14:38:55 +00:00
  • 0d1be2e328 Fix so that we work out the right pane from mouse events - we were doing so too early, before the mouse event was necessarily valid, so could end up using the pane from the previous mouse event, or the active pane. nicm 2016-11-24 13:46:50 +00:00
  • 7e6c2cb238 Make the selection able to exist independent of the cursor position, so that it is not affected by scrolling. If MouseDragEnd1Pane is bound to the new "stop-selection" command: nicm 2016-11-24 13:38:44 +00:00
  • 8a8001350d Merge branch 'obsd-master' Thomas Adam 2016-11-23 18:01:19 +00:00
  • 6de466cf8b For mouse keys, use the mouse pane as the default current pane. nicm 2016-11-23 17:01:24 +00:00
  • 24916f2f6e Error on invalid modifier keys. nicm 2016-11-23 16:44:42 +00:00
  • 442e49f51c Merge branch 'obsd-master' Thomas Adam 2016-11-17 12:01:10 +00:00
  • 3cf19d6dd0 Key running commands for #() by the unexpanded command, and run them again if the expanded form changes (otherwise at most once per second as usual). Fixes issues reported by Gregory Pakosz. nicm 2016-11-17 10:06:08 +00:00
  • 759953cb8d Merge branch 'obsd-master' Thomas Adam 2016-11-16 14:01:11 +00:00
  • ddf7ac5ae4 Fix calculation of whether we need a region for drawing a cell (only if full width and at the edge of the region), otherwise clear the region entirely. nicm 2016-11-16 13:31:22 +00:00
  • 06fd3b00ff Merge branch 'obsd-master' Thomas Adam 2016-11-16 12:01:11 +00:00
  • a8e2d851fe Don't error if renaming a session to its current name, from shik dot chen at gmail dot com. nicm 2016-11-16 11:41:17 +00:00