summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use the right client when working out where to save or load the buffer,nicm2019-06-132-4/+4
| | | | reported by kn@.
* Do not crash if the environment variable is present but empty.nicm2019-06-131-2/+2
|
* tweak previous;jmc2019-06-131-3/+3
|
* Set the cursor x at the same time as changing the y or the end of linenicm2019-06-131-5/+5
| | | | marker may not be redrawn.
* Add regular expression support for the format search, match andnicm2019-06-136-67/+240
| | | | substitute modifiers.
* Do not use $TMUX to find the session because for windows in multiplenicm2019-06-121-65/+10
| | | | | | sessions it is wrong as often as it is right, and for windows in one session it is pointless. Instead check TMUX_PANE to find the pane and look for the MRU session as usual. GitHub issue 1793.
* Pass target on to new commands with if -F.nicm2019-06-121-7/+8
|
* Do not always resize the window back to its original size after applyingnicm2019-06-121-5/+2
| | | | | | a layout, let the normal window resize process do it. This means windows are not resized at all if window-size is manual, and are not resized multiple times if later attached to a different size terminal.
* Do not resize panes unless they are in an attached, active window. Fromnicm2019-06-111-2/+9
| | | | Morten M Neergaard in GitHub issue 1782.
* Exiting alternate screen mode should restore cursor position andnicm2019-06-091-13/+21
| | | | | attributes even if already outside alternate screen mode. GitHub issue 1789.
* Do not try to parse command when unsetting, GitHub issue 1788.nicm2019-06-081-2/+2
|
* Do not load the config file if the server is exiting because it failednicm2019-06-073-10/+14
| | | | | | to start, otherwise commands like lsk which start the server again can end up looping infinitely. Also make the first client exit correctly. Problem reported by Wael M Nasreddine.
* Add a -v flag to source-file to show the commands and line numbers.nicm2019-06-055-9/+32
|
* Need to increment the argument to skip the prefix earlier, fixesnicm2019-06-051-9/+9
| | | | | repeated incremental search in copy mode, reported by Kaushal Modi in GitHub issue 1780.
* Add new-session -X and attach-session -x to send SIGHUP to parent whennicm2019-06-034-20/+40
| | | | | detaching (like detach-client -P). From Colin Watson in GitHub issue 1773.
* yacc(1) copies its union so it is not a good place to storenicm2019-06-021-124/+141
| | | | | TAILQ_HEADs. Allocate them instead. Found from a problem reported by sthen@.
* If only one of -x or -y is given, use the calculated size for thenicm2019-06-011-2/+7
| | | | other. Pointed out by Ben Boeckel.
* Need stdlib.h, from Ben Boeckel.nicm2019-06-011-1/+2
|
* Fix warnings, from Ben Boeckel.nicm2019-05-312-6/+4
|
* Allow % strings that are all numbers or %s, and fix a double free. Bothnicm2019-05-312-6/+9
| | | | reported by George Nachman, GitHub issues 1765 and 1766.
* Remove a leftover abort and some fixes from cppcheck.nicm2019-05-305-11/+10
|
* No longer need to reduce line number by one.nicm2019-05-301-3/+3
|
* I had hoped that non-xenl terminals had died out, at least in fairlynicm2019-05-302-4/+15
| | | | | modern OSs, but no - DragonFly BSD's console returns to haunt us. Fix it at least somewhat. GitHub issue 1763.
* Use VIS_CSTYLE for the arguments and add the missing escapes it cannicm2019-05-294-7/+22
| | | | generate to the parser.
* The line number needs to be updated only after the \n is processed bynicm2019-05-292-11/+28
| | | | | the parser, so store a flag and update it next time around. Also each new line needs its own shared data.
* Support \ooo escapes, from Avi Halachmi.nicm2019-05-292-6/+32
|
* Redraw status line if size changes, GitHub issue 1762. Also fix lengthnicm2019-05-281-5/+3
| | | | of target buffer when pasting into status line.
* Do not read past the end of the argument string if it is empty.nicm2019-05-281-1/+3
|
* Exit 1 correctly if source-file fails.nicm2019-05-281-1/+3
|
* Allow source-file to take multiple arguments.nicm2019-05-282-34/+40
|
* Change the default right click pane to open the menu if not in a modenicm2019-05-281-2/+2
| | | | and no application mouse.
* Add key bindings to open the window and pane menus (C-m and M-m for now).nicm2019-05-281-45/+53
|
* Allow menu items to be disabled by putting a - at the start of theirnicm2019-05-284-16/+35
| | | | | name, rather than just including #[dim] which still allowed them to be chosen.
* Change display-menu from taking a single string to a set of arguments,nicm2019-05-2810-234/+215
| | | | which is much easier to work with. Based on a diff from Avi Halachmi.
* Clarify newlines inside {} a little.nicm2019-05-271-3/+5
|
* Go less crazy with horizontal separators on default menus.nicm2019-05-271-4/+1
|
* Fix crash when killing the current window, reported by Jesus Rafaelnicm2019-05-271-1/+3
| | | | Sanchez in GitHub issue 1760.
* Add an additional {} syntax for defining strings in the configurationnicm2019-05-275-27/+163
| | | | | | | file, making it much tidier to define commands that contain other tmux or shell commands (like if-shell). Also tweak bind-key to expect a string if it is only given one argument, so {} can be used with it as well. From Avi Halachmi.
* Fix the intended ordering of items in buffer mode - it should not alwaysnicm2019-05-271-2/+4
| | | | be tag 0 when the tree is empty. GitHub issue 1759.
* Add keys for new menu items.nicm2019-05-261-3/+3
|
* Always redraw overlay if it is on (so status line doesn't redraw over it).nicm2019-05-261-2/+5
|
* Do not accept choice unless mouse has actually moved before.nicm2019-05-261-2/+2
|
* Add formats for word and line under the mouse and use them to add somenicm2019-05-2610-70/+234
| | | | items to the pane menu.
* Add a way to append or prepend to a format if the length has been limited.nicm2019-05-262-19/+46
|
* Some other platforms doesn't support fmemopen(3) (not unexpectedly), sonicm2019-05-261-52/+77
| | | | | don't use it - since we only use getc/ungetc on the file anyway it is easy not to.
* Add <, >, <=, >= for formats, GitHub issue 1747.nicm2019-05-252-12/+41
|
* Client name can actually be NULL, so use address in that case.nicm2019-05-251-2/+5
|
* Use client name when logging command queue.nicm2019-05-252-7/+7
|
* Merge the now tiny cmd-list.c into cmd.c.nicm2019-05-253-106/+81
|
* Merge cmd_list_parse into cmd-parse.y so it can use the new aliasnicm2019-05-256-109/+162
| | | | processing code.