summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Notify on zoom/unzoom, from George Nachmann.nicm2014-12-151-1/+3
|
* Only redraw pane when it has actually changed.nicm2014-10-211-4/+5
|
* Add flags to selectp to enable and disable input to a pane, from Anishnicm2014-08-111-4/+5
| | | | Athalye.
* Allow keys and send-keys to invisible panes, from saggy-kun at users dotnicm2014-06-231-4/+1
| | | | sf dot net.
* Reset properly when c0-change-trigger is increased from zero so panesnicm2014-06-051-2/+1
| | | | don't get stuck.
* If multiple arguments are given to new-session, new-window,nicm2014-05-131-22/+40
| | | | | | split-window, respawn-window or respawn-pane, pass them directly to execvp() to help avoid quoting problems. One argument still goes to "sh -c" like before. Requested by many over the years. Patch from J Raynor.
* Both the two previous ways of navigating panes by direction havenicm2014-05-081-127/+142
| | | | | | | | | | | | | | | | irritating flaws: a) The old way of always using the top or left if the choice is ambiguous is annoying when the layout is unbalanced. b) The new way of remembering the last used pane is annoying if the layout is balanced and the leftmost is obvious to the user (because clearly if we go right from the top-left in a tiled set of four we want to end up in top-right, even if we were last using the bottom-right). So instead, use a combination of both: if there is only one possible pane alongside the current pane, move to it, otherwise choose the most recently used of the choice.
* Some more long lines.nicm2014-04-171-2/+3
|
* Set PATH explicitly, either from client or sessionnicm2014-04-171-6/+10
| | | | | environment. Previously it came from the session environment. From J Raynor.
* Remove some unnecessary includes and fix a typo.nicm2014-04-171-5/+1
|
* Correct the dance to fix the active pane in join-pane by pulling thenicm2014-04-171-2/+8
| | | | | (right) code from break-pane and window_remove_pane into a helper function.
* Remove the monitor-content option and associated bits and bobs. It'snicm2014-04-171-3/+1
| | | | | never worked very well. If there is a big demand for it to return, will consider better ways to do it.
* Don't segfaut when the parent of the layout cell is NULL, from Thomas Adam.nicm2014-03-311-5/+9
|
* Fix crash due to uninitialized lastwp member of layout_cell, reported bynicm2014-02-221-3/+4
| | | | Balazs Kezes.
* Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm2014-01-281-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | options with a single foo-style option. For example: set -g status-fg yellow set -g status-bg red set -g status-attr blink Becomes: set -g status-style fg=yellow,bg=red,blink The -a flag to set can be used to add to rather than replace a style. So: set -g status-bg red Becomes: set -ag status-style bg=red Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time. From Tiago Cunha.
* Remember the last active pane in the top-bottom or left-right cell sonicm2014-01-281-5/+73
| | | | | that it can be restored when moving back to that cell with selectp -L/-R/etc. From Suraj N Kurapati.
* Alter how tmux handles the working directory to internally use filenicm2013-10-101-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | descriptors rather than strings. - Each session still has a current working directory. - New sessions still get their working directory from the client that created them or its attached session if any. - New windows are created by default in the session working directory. - The -c flag to new, neww, splitw allows the working directory to be overridden. - The -c flag to attach let's the session working directory be changed. - The default-path option has been removed. To get the equivalent to default-path '.', do: bind c neww -c $PWD To get the equivalent of default-path '~', do: bind c neww -c ~ This also changes the client identify protocol to be a set of messages rather than one as well as some other changes that should make it easier to make backwards-compatible protocol changes in future.
* Clear window->flags when clearing winlinksnicm2013-10-101-1/+2
| | | | | | | | When clearing WINLINK_ALERTFLAGS for all sessions, we must also, for that window, clear the window->flags as well, otherwise sessions may well still see flags for winlinks long since cleared. This therefore introduces WINDOW_ALERTFLAGS to help with this.
* Fix compiler warnings, missing #include. From Thomas Adam.nicm2013-03-261-6/+5
|
* Revert the command-prefix change which breaks sequences of commands.nicm2013-03-251-11/+2
|
* Set pane resize flag when needed.nicm2013-03-251-1/+3
|
* Don't zoom windows with one pane, from Romain Francoise.nicm2013-03-251-1/+5
|
* Add resize-pane -Z to temporary zoom the active pane to occupy the fullnicm2013-03-241-2/+56
| | | | | | | | | | | | | | window or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z by default. The pane is unzoomed on pretty much any excuse whatsoever. We considered making this a new layout but the requirements are quite different from layouts so decided it is better as a special case. Each current layout cell is saved, a temporary one-cell layout generated and all except the active pane set to NULL. Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and Thiago Padilha for testing an earlier version.
* Do pane resize ioctls once at the end of the server loop rather thannicm2013-03-241-10/+1
| | | | immediately.
* Add option command-prefix which is automatically prepended to anynicm2013-03-241-3/+17
| | | | command (apart from a naked default-shell). The default is "exec ".
* No more lint means no more ARGSUSED.nicm2013-03-221-3/+1
|
* Automatically reflow wrapped lines when a pane is resized, requested bynicm2013-02-051-5/+5
| | | | many over the years and finally implemented by Richard Woodbury.
* Remove the layout undo/redo code which never really worked.nicm2013-01-171-2/+1
|
* Support the 47 and 1047 SM and RM sequences (alternate screen withoutnicm2012-11-271-7/+13
| | | | cursor), requested by I forget who ages ago.
* Make mouse event structure clearer by defining events (up, click, drag)nicm2012-10-261-2/+2
| | | | | and simplifying how buttons and wheels are represented, from Ailin Nemui. Should be no functional changes.
* Fix bad size in memcpy from Romain Francoise.nicm2012-10-251-2/+2
|
* Fix up window reference counting and don't crash if the rename timernicm2012-08-211-8/+13
| | | | | fires while the window is dead but still referenced. Fixes problem reported by Michael Scholz.
* Instead of numbering choose mode items 0-9a-z and then nothing, numbernicm2012-08-111-1/+11
| | | | | them all and if there are more than 10 use a prompt when 0-9 is pressed. From Thomas Adam.
* xfree is not particularly helpful, remove it. From Thomas Adam.nicm2012-07-101-24/+15
|
* Clear flags across all sessions, from Thomas Adam.nicm2012-07-081-1/+29
|
* Use default-shell not _PATH_BSHELL to spawn commands, pointed out bynicm2012-05-281-9/+10
| | | | Dennis G?nnewig and Thomas Adam.
* Do not fire name timer when automatic-rename is off, from Tim Ruehsen anicm2012-04-081-3/+3
| | | | while ago.
* Minor style nits - return ().nicm2012-04-011-3/+3
|
* Add a layout history which can be stepped through with select-layout -unicm2012-04-011-1/+2
| | | | and -U commands (bound to 'u' and 'U' by default).
* Check changes_timer with event_initialized before event_del.nicm2012-03-201-2/+3
|
* Add a simple form of output rate limiting by counting the number ofnicm2012-03-201-1/+41
| | | | | | | | | | | | | | | | | | certain C0 sequences (linefeeds, backspaces, carriage returns) and if it exceeds a threshold (current default 50/millisecond), start to redraw the pane every 100 milliseconds instead of making each change as it comes. Two configuration options - c0-change-trigger and c0-change-interval. This makes tmux much more responsive under very fast output (for example yes(1) or accidentally cat'ing a large file) but may not be perfect on all terminals and connections - feedback very welcome, particularly where this change has a negative rather than positive effect (making it off by default is a possibility). After much experimentation based originally on a request Robin Lee Powell (which ended with a completely different solution), this idea from discussion with Ailin Nemui.
* Add notify hooks for various events, the functions are currently emptynicm2012-03-171-1/+2
| | | | stubs but will be filled in for control mode later. From George Nachman.
* Check event_initialized before event_del if event may not have been setnicm2012-03-171-2/+3
| | | | up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
* Move window name changes into wrapper function window_set_name, fromnicm2012-02-021-1/+9
| | | | George Nachman.
* Give each window a unique id, like panes but prefixed with @. Based onnicm2012-01-301-3/+31
| | | | work from George Nachman.
* Call bufferevent_free before closing file descriptor associated with itnicm2012-01-291-4/+4
| | | | | or bugs in $EventMechanism on $OtherOS makes libevent get it's knickers in a twist. From Dylan Alex Simon.
* Make window_pane_index work the same as window_index, from Ben Boeckel.nicm2011-11-151-9/+11
|
* Reject $SHELL if it is not a full path.nicm2011-09-251-2/+2
|
* Add pane-base-index option, from Ben Barbour.nicm2011-08-241-3/+3
|
* Get rid of the layout string code which tries to walk through the layoutnicm2011-06-051-8/+52
| | | | hierarchy and instead just look at what panes are actually in the window.