aboutsummaryrefslogtreecommitdiff
path: root/format.c
Commit message (Collapse)AuthorAge
...
* | Merge branch 'obsd-master'Thomas Adam2017-05-12
|\|
| * Only redraw single client, and tweak some logging.nicm2017-05-12
| |
* | Merge branch 'obsd-master'Thomas Adam2017-05-12
|\|
| * Store copy mode search string in pane so search-again command works evennicm2017-05-12
| | | | | | | | | | if you exit and reenter copy mode (it doesn't remember the position, just the search string), suggested by espie@.
* | Merge branch 'obsd-master'Thomas Adam2017-05-09
|\| | | | | | | | | Conflicts: format.c
| * Add a format for the name of the pane's mode, lets it be used as anicm2017-05-07
| | | | | | | | conditional for key bindings.
| * Add some formats to look at the session window stack, suggested by Scottnicm2017-05-05
| | | | | | | | ROCHFORD.
* | Merge branch 'obsd-master'Thomas Adam2017-05-03
|\|
| * Add a format for the last search string in copy mode and fix the promptnicm2017-05-03
| | | | | | | | so it can work when in -I, suggested by Suraj N Kurapati.
* | Merge branch 'obsd-master'Thomas Adam2017-05-01
|\|
| * In order that people can use formats like #D in #() in the status linenicm2017-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients. To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes. GitHub issue 889; test case reported by Paul Johnson.
* | Merge branch 'obsd-master'Thomas Adam2017-04-21
|\|
| * Store state shared between multiple commands in the queue in a sharednicm2017-04-21
| | | | | | | | structure.
* | Merge branch 'obsd-master'Thomas Adam2017-04-20
|\|
| * Now that struct winlink has a session pointer, can remove some arguments.nicm2017-04-20
| |
| * There is no real need for window_printable_flags to allocate, make itnicm2017-04-20
| | | | | | | | return a buffer from the stack.
| * If a #() command doesn't exit, use its most recent line of output (itnicm2017-04-20
| | | | | | | | | | | | | | must be a full line). Don't let it redraw the status line more than once a second. Requested by someone about 10 years ago...
* | Merge branch 'obsd-master'Thomas Adam2017-04-19
|\|
| * When the data we have buffered to write to a terminal grows beyond anicm2017-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reasonable amount (currently width * height * 8 bytes), discard all output to the terminal and start trying to redraw periodically instead. Continue with this until the amount of data we are trying to write falls to a low level again. This helps to prevent tmux sitting on a huge buffer of data when there are processes with fast output running inside tmux but the outside terminal is slow. A new client_discarded format holds the amount of data that has been discarded due to this mechanism. The three variables (when to start this, when to stop, and how often to redraw) are basically "works for me" at the moment, this is going in to see how it goes and if it causes problems for anyone else.
* | Merge branch 'obsd-master'Thomas Adam2017-04-18
|\|
| * Add a format for number of bytes writtent to client, useful for debugging.nicm2017-04-18
| |
* | Merge branch 'obsd-master'Thomas Adam2017-04-06
|\| | | | | | | | | | | Conflicts: server-client.c tmux.1
| * Give each client a name. This defaults to the tty name as before butnicm2017-04-05
| | | | | | | | | | | | | | falls back to an alternative if the tty name is not available. This is clearer than overloading the client ttyname member and allows us to remove the path stored in the tty struct, it should always be the same as the client.
* | Merge branch 'obsd-master'Thomas Adam2017-03-08
|\|
| * Add a helper function for the most common format_create/defaults/expandnicm2017-03-08
| | | | | | | | pattern.
* | Merge branch 'obsd-master'Thomas Adam2017-02-14
|\| | | | | | | | | Conflicts: server.c
| * Instead of numbering session groups, give them a name which may be givennicm2017-02-09
| | | | | | | | | | to -t instead of a target session. Also allow them to contain only one session.
* | Merge branch 'obsd-master'Thomas Adam2017-02-07
|\|
| * Remove a debugging leftover.nicm2017-02-07
| |
* | Merge branch 'obsd-master'Thomas Adam2017-02-03
|\|
| * Add a window or pane id "tag" to each format tree and use it to separatenicm2017-02-03
| | | | | | | | | | | | jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
* | Merge branch 'obsd-master'Thomas Adam2017-02-01
|\|
| * Implement "all event" (1003) mouse mode but in a way that works. Thenicm2017-02-01
| | | | | | | | | | | | | | | | | | | | | | main issue is that if we have two panes, A with 1002 and B with 1003, we need to set 1003 outside tmux in order to get all the mouse events, but then we need to suppress the ones that pane A doesn't want. This is easy in SGR mouse mode, because buttons == 3 is only used for movement events (for other events the trailing m/M marks a release instead), but in normal mouse mode we can't tell so easily. So for that, look at the previous event instead - if it is drag+release as well, then the current event is a movement event.
* | Merge branch 'obsd-master'Thomas Adam2017-01-31
|\|
| * When a flag option is used in a format, it should use the number formnicm2017-01-30
| | | | | | | | not string.
* | Merge branch 'obsd-master'Thomas Adam2017-01-16
|\|
| * getopt() has a struct option so just return to using options_entry.nicm2017-01-16
| |
* | Merge branch 'obsd-master'Thomas Adam2017-01-15
|\|
| * Major tidy up and rework of options tree and set-option/show-optionsnicm2017-01-15
| | | | | | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2017-01-11
|\|
| * Add a format for terminal type.nicm2017-01-11
| |
* | Merge branch 'obsd-master'Thomas Adam2017-01-09
|\|
| * Add simple comparisons in formats: #{==:a,b} and #{!=:a,b} ("a" and "b"nicm2017-01-09
| | | | | | | | | | | | | | 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. Also add FORMAT_NOJOBS flag to disable jobs in a format.
* | Add a format for the version.Nicholas Marriott2017-01-09
| |
* | Merge branch 'obsd-master'Thomas Adam2016-11-17
|\|
| * Key running commands for #() by the unexpanded command, and run themnicm2016-11-17
| | | | | | | | | | again if the expanded form changes (otherwise at most once per second as usual). Fixes issues reported by Gregory Pakosz.
* | Merge branch 'obsd-master'Thomas Adam2016-10-16
|\|
| * Provide a way for hooks to tag formats onto the commands they fire sonicm2016-10-16
| | | | | | | | | | that the user can get at additional information - now used for the "hook" format, more to come.
| * Mass rename struct cmd_q to struct cmdq_item and related.nicm2016-10-16
| |
* | Merge branch 'obsd-master'Thomas Adam2016-10-16
|\|