nicm
b0782df8a6
Do not use the key variable uninitialized (in a debug log statement),
...
reported by jungleboogie0 at gmail dot com.
2015-06-05 15:10:13 +00:00
nicm
2f586905fc
Fix a warning.
2015-06-05 09:09:08 +00:00
nicm
4219939c10
Make it so that if a window or session target is prefixed with an =,
...
only an exact name or index match is accepted, no special character,
prefix match, or fnmatch.
2015-06-05 08:14:16 +00:00
nicm
6b2129696f
Move the nested check from client to server and compare the client tty
...
name to all the pane pty names instead of comparing socket paths. This
means that "new -d" will work without unsetting $TMUX.
2015-06-04 23:27:51 +00:00
jmc
dc0d34e137
tweak SYNOPSIS and usage();
2015-06-04 20:34:22 +00:00
nicm
4a6c06d6a9
Make unsetting a global option restore it to the default. Diff lying
...
around for a while, I have forgotten who suggested it :-/.
2015-06-04 14:29:33 +00:00
nicm
a863834574
Add support for a single "marked pane". There is one marked pane in the
...
server at a time; it may be toggled or cleared with select-pane -m and
-M (the border is highlighted). A new target '~' or '{marked}' specifies
the marked pane to commands and it is the default target for the
swap-pane and join-pane -s flag (this makes them much simpler to use -
mark the source pane and then change to the target pane to run swapp or
joinp).
2015-06-04 11:43:51 +00:00
nicm
a3edfd9e84
teminal -> terminal, from Corey Farwell.
2015-06-04 09:42:29 +00:00
nicm
a3c6172495
Missing t at end of response, from Vincent Bernat.
2015-06-01 13:59:57 +00:00
nicm
58b50fb543
Clear signal handlers before event_reinit as apparently it can otherwise
...
cause libevent to go strange.
2015-06-01 09:20:19 +00:00
deraadt
7e067cb9dc
does not need syslog.h
2015-05-31 23:27:06 +00:00
nicm
2a8c2648f0
Don't use special strings if #() commands fail, just remove the format
...
(as if the command produced nothing). Makes constructions that can fail
like '#(test whatever && echo foo)' work as they did before.
2015-05-29 23:26:52 +00:00
nicm
74c755f2ab
Expand formats again inside #(), and free the temporaries.
2015-05-29 23:12:38 +00:00
nicm
a55e569af5
Use RB_MIN to get the lowest index for the current window when creating
...
grouped sessions, rather than using RB_ROOT.
2015-05-29 23:02:27 +00:00
nicm
379400cfa6
Move the jobs output cache into the formats code so that #() work more
...
generally (for example, again working in set-titles-string).
2015-05-27 13:28:04 +00:00
nicm
7140cce7f3
Return empty string if format is empty rather than attempting to
...
allocate zero bytes.
2015-05-20 06:39:02 +00:00
nicm
2c53b23d59
In terminfo, sometimes cvvis implies cnorm and sometimes it doesn't, so
...
don't assume it does. Fixes missing cursor with emacs-in-tmux-in-tmux.
2015-05-19 08:48:37 +00:00
nicm
3f4ee98162
To replace c0-*, add a high watermark to the pty event, and also backoff
...
when the any of the ttys the pane is going to write to has buffered
enough data.
2015-05-12 22:40:38 +00:00
nicm
37ae8a9e0f
Tidy blank lines when outputting server info.
2015-05-12 19:36:08 +00:00
nicm
ec34439f9c
Add a session_alerts format which is a list of all the alerts in the
...
current session in symbolic form (something like "0!,4~,5!"). Use this
in the default set-titles-string. Prompted by a request from Jan ONDREJ.
2015-05-12 15:29:29 +00:00
nicm
e958db09a7
Add bell-action "other" to pass through bells in all windows except the
...
current, suggested by Jan ONDREJ.
2015-05-12 15:27:46 +00:00
nicm
b833fabeb2
Left the c0-* options behind in the table.
2015-05-11 10:58:22 +00:00
nicm
44364d7112
Remove the c0-* options which never really worked satisfactorily. Going
...
to try something else...
2015-05-11 10:10:16 +00:00
nicm
92faa2eaeb
Put the tty structs together, and tabify.
2015-05-08 16:48:12 +00:00
nicm
592cb73a69
grid_marker_cell is no longer used.
2015-05-08 16:44:03 +00:00
nicm
74b2c40b1b
mode_key_entry can go into mode-key.c; also a few spaces->tabs.
2015-05-08 16:33:29 +00:00
nicm
a538141a72
window_choose_mode_item can move into window-choose.c.
2015-05-08 16:23:34 +00:00
nicm
c4a4bd6ac5
Move input parser structs into input.c (removing fairly useless
...
saved_cursor_[xy] formats as a side-effect).
2015-05-08 16:18:04 +00:00
nicm
879de25583
Remove some stuff that accidentally ended up here from portable, and
...
remove a little-used debug function.
2015-05-08 15:56:49 +00:00
nicm
d174b9cfcc
Update environment when switching sessions as well as attaching, from Si
...
Beaumont.
2015-05-07 14:07:16 +00:00
nicm
8e9b6e0948
Style spacing nits.
2015-05-07 11:42:56 +00:00
nicm
1282bb81fe
array.h can be local to window-choose.c now.
2015-05-07 08:08:54 +00:00
nicm
7becf326e3
Use a TAILQ not array for find-window.
2015-05-07 07:59:52 +00:00
nicm
73c871ba0a
Simplify environ_push so it doesn't need the ARRAY_* functions.
2015-05-07 07:35:31 +00:00
nicm
b6be03f01a
If status line is at the top, the offset needs to be adjusted when
...
drawing pane numbers. Based on a diff from John O'Meara.
2015-05-07 07:16:14 +00:00
nicm
0b39e6427f
Remove ARRAY_* from history and expand completion to complete a) layout
...
names and b) targets beginning with -t or -s.
2015-05-06 23:56:46 +00:00
nicm
31b1ab4852
Add a format window_linked which is 1 if a window has been linked
...
multiple times, also remove the default space in window_flags and use a
conditional to add it in window-status-format (this means additional
flags can be added in the option without extra spaces). From Thomas Adam
with tweaks by me.
2015-05-06 08:35:39 +00:00
nicm
33a585c47f
Turn cursor off during redraw, pointed out by George Nachman.
2015-05-06 07:52:06 +00:00
nicm
672df72b71
Use the right index when expanding/collapsing tree, from Thomas Adam.
2015-05-04 13:04:10 +00:00
nicm
69b8f100b7
Do not complain when directions fail.
2015-04-29 16:26:17 +00:00
nicm
7382ba82c5
If default-terminal is set to "screen" or "screen-*", emulate screen's
...
historical (incorrect) behaviour for SGR 3 and send smso
(standout). Previously, we would send sitm (italics) if the terminal
outside had it and smso otherwise. This was acceptably until recently
because xterm's terminfo entry lacked sitm, so most users got smso.
People who want italics should set default-terminal to the forthcoming
"tmux" entry (and be prepared to deal with it being missing on older
hosts).
As a side-effect this changes default-terminal to be a server rather
than a session option.
suggested by and ok naddy
2015-04-29 15:59:08 +00:00
nicm
e36fab2f70
If looking for an index, don't fill in window when given a session.
2015-04-28 12:09:24 +00:00
nicm
14d8cd6445
Do not do a search for the tty path if there isn't one.
2015-04-28 11:57:20 +00:00
nicm
094a047ddf
If can't find pane as a pane, try as a window; likewise if can't find
...
window as a session.
2015-04-28 11:33:17 +00:00
nicm
771744426e
Add select-layout -o to undo the last layout change (apply the previously
...
set layout).
2015-04-28 10:43:13 +00:00
nicm
c2bc84aa4d
Do not include unattached clients when trying to find one for target.
2015-04-27 22:58:58 +00:00
nicm
b7777e7ef3
Reset cfg_ncauses to 0 as well or we could allocate the wrong size if
...
called again.
2015-04-27 22:50:35 +00:00
nicm
91f6347485
Assign to the right variable when comparing clients.
2015-04-27 22:42:10 +00:00
nicm
95195f5258
Rewrite of the target resolution internals to be simpler and more
...
consistent but with much less duplication, but keeping the same internal
API. Also adds more readable aliases for some of the special tokens used
in targets (eg "{start}" instead of "^"). Some behaviours may have
changed, for example prefix matches now happen before fnmatch.
2015-04-27 16:25:57 +00:00
nicm
a70762c9b5
If the requested pane is already active, do not unzoom the window (or do
...
anything else). Prevents mouse clicking when zoomed causing unzoom,
reported by Jose Antonio Delgado Alfonso (with a different fix).
2015-04-27 07:49:36 +00:00