summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2019-06-20Expand command formats in %if and move the config file loading later (tonicm
when the first client has identified) so all the client formats are available, fixes problems reported by Thomas Sattler.
2019-06-18Handle comments more correctly inside {}, from Avi Halachmi.nicm
2019-06-18Add a cmdq_continue function rather than twiddling the flag directly.nicm
2019-06-15Use the right format modifier when comparing, and remove a couple ofnicm
unused variables.
2019-06-14Do not loop forever if a menu item contains invisible characters,nicm
reported by Thomas Sattler.
2019-06-14Show filename with -v for source-file.nicm
2019-06-14A couple of minor parser changes around conditions: 1) only treat #{nicm
specially after a condition, otherwise as a comment (which is more as most people expect) 2) allow formats to be quoted after a condition.
2019-06-13Use the right client when working out where to save or load the buffer,nicm
reported by kn@.
2019-06-13Do not crash if the environment variable is present but empty.nicm
2019-06-13tweak previous;jmc
2019-06-13Set the cursor x at the same time as changing the y or the end of linenicm
marker may not be redrawn.
2019-06-13Add regular expression support for the format search, match andnicm
substitute modifiers.
2019-06-12Do not use $TMUX to find the session because for windows in multiplenicm
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.
2019-06-12Pass target on to new commands with if -F.nicm
2019-06-12Do not always resize the window back to its original size after applyingnicm
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.
2019-06-11Do not resize panes unless they are in an attached, active window. Fromnicm
Morten M Neergaard in GitHub issue 1782.
2019-06-09Exiting alternate screen mode should restore cursor position andnicm
attributes even if already outside alternate screen mode. GitHub issue 1789.
2019-06-08Do not try to parse command when unsetting, GitHub issue 1788.nicm
2019-06-07Do not load the config file if the server is exiting because it failednicm
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.
2019-06-05Add a -v flag to source-file to show the commands and line numbers.nicm
2019-06-05Need to increment the argument to skip the prefix earlier, fixesnicm
repeated incremental search in copy mode, reported by Kaushal Modi in GitHub issue 1780.
2019-06-03Add new-session -X and attach-session -x to send SIGHUP to parent whennicm
detaching (like detach-client -P). From Colin Watson in GitHub issue 1773.
2019-06-02yacc(1) copies its union so it is not a good place to storenicm
TAILQ_HEADs. Allocate them instead. Found from a problem reported by sthen@.
2019-06-01If only one of -x or -y is given, use the calculated size for thenicm
other. Pointed out by Ben Boeckel.
2019-06-01Need stdlib.h, from Ben Boeckel.nicm
2019-05-31Fix warnings, from Ben Boeckel.nicm
2019-05-31Allow % strings that are all numbers or %s, and fix a double free. Bothnicm
reported by George Nachman, GitHub issues 1765 and 1766.
2019-05-30Remove a leftover abort and some fixes from cppcheck.nicm
2019-05-30No longer need to reduce line number by one.nicm
2019-05-30I had hoped that non-xenl terminals had died out, at least in fairlynicm
modern OSs, but no - DragonFly BSD's console returns to haunt us. Fix it at least somewhat. GitHub issue 1763.
2019-05-29Use VIS_CSTYLE for the arguments and add the missing escapes it cannicm
generate to the parser.
2019-05-29The line number needs to be updated only after the \n is processed bynicm
the parser, so store a flag and update it next time around. Also each new line needs its own shared data.
2019-05-29Support \ooo escapes, from Avi Halachmi.nicm
2019-05-28Redraw status line if size changes, GitHub issue 1762. Also fix lengthnicm
of target buffer when pasting into status line.
2019-05-28Do not read past the end of the argument string if it is empty.nicm
2019-05-28Exit 1 correctly if source-file fails.nicm
2019-05-28Allow source-file to take multiple arguments.nicm
2019-05-28Change the default right click pane to open the menu if not in a modenicm
and no application mouse.
2019-05-28Add key bindings to open the window and pane menus (C-m and M-m for now).nicm
2019-05-28Allow menu items to be disabled by putting a - at the start of theirnicm
name, rather than just including #[dim] which still allowed them to be chosen.
2019-05-28Change display-menu from taking a single string to a set of arguments,nicm
which is much easier to work with. Based on a diff from Avi Halachmi.
2019-05-27Clarify newlines inside {} a little.nicm
2019-05-27Go less crazy with horizontal separators on default menus.nicm
2019-05-27Fix crash when killing the current window, reported by Jesus Rafaelnicm
Sanchez in GitHub issue 1760.
2019-05-27Add an additional {} syntax for defining strings in the configurationnicm
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.
2019-05-27Fix the intended ordering of items in buffer mode - it should not alwaysnicm
be tag 0 when the tree is empty. GitHub issue 1759.
2019-05-26Add keys for new menu items.nicm
2019-05-26Always redraw overlay if it is on (so status line doesn't redraw over it).nicm
2019-05-26Do not accept choice unless mouse has actually moved before.nicm
2019-05-26Add formats for word and line under the mouse and use them to add somenicm
items to the pane menu.