Maximize and restore panes in tmux 1.7. (incompatible with <=1.6)
- Copy
pane-maximize*from here to ~/bin/ directory. - Add a key binding to .tmux.conf:
bind-key m run-shell "pane-maximize -a"
| diff --git a/fvwm/misc.c b/fvwm/misc.c | |
| index f303453..16023d0 100644 | |
| --- a/fvwm/misc.c | |
| +++ b/fvwm/misc.c | |
| @@ -348,6 +348,7 @@ void fvwm_msg(fvwm_msg_t type, char *id, char *msg, ...) | |
| va_list args; | |
| char fvwm_id[20]; | |
| char time_str[40] = "\0"; | |
| + char *fmt; | |
| #ifdef FVWM_DEBUG_TIME |
| diff --git a/format.c b/format.c | |
| index 19f322a..a135597 100644 | |
| --- a/format.c | |
| +++ b/format.c | |
| @@ -392,6 +392,8 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp) | |
| if (wp->cwd != NULL) | |
| format_add(ft, "pane_start_path", "%s", wp->cwd); | |
| format_add(ft, "pane_current_path", "%s", osdep_get_cwd(wp->fd)); | |
| + format_add(ft, "pane_current_program", "%s", | |
| + window_name_display(wp->window)); |
| diff --git a/status.c b/status.c | |
| index 88ab68d..90887c7 100644 | |
| --- a/status.c | |
| +++ b/status.c | |
| @@ -429,12 +429,14 @@ status_replace1(struct client *c, struct session *s, struct winlink *wl, | |
| if (gethostname(tmp, sizeof tmp) != 0) | |
| fatal("gethostname failed"); | |
| ptr = tmp; | |
| + log_debug("[#H]: <<%s>>", tmp); | |
| goto do_replace; |
| diff --git a/mode-key.c b/mode-key.c | |
| index 6ea2b2f..7dea26d 100644 | |
| --- a/mode-key.c | |
| +++ b/mode-key.c | |
| @@ -105,6 +105,8 @@ const struct mode_key_cmdstr mode_key_cmdstr_copy[] = { | |
| { MODEKEYCOPY_DOWN, "cursor-down" }, | |
| { MODEKEYCOPY_ENDOFLINE, "end-of-line" }, | |
| { MODEKEYCOPY_GOTOLINE, "goto-line" }, | |
| + { MODEKEYCOPY_HALFPAGEDOWN, "halfpage-down" }, | |
| + { MODEKEYCOPY_HALFPAGEUP, "halfpage-up" }, |
| diff --git a/tmux.1 b/tmux.1 | |
| index 213db74..c9e429f 100644 | |
| --- a/tmux.1 | |
| +++ b/tmux.1 | |
| @@ -124,13 +124,21 @@ loads the system configuration file from | |
| .Pa /etc/tmux.conf , | |
| if present, then looks for a user configuration file at | |
| .Pa ~/.tmux.conf . | |
| +.Pp | |
| The configuration file is a set of |
| #0 0x08063e3e in hooks_RB_REMOVE_COLOR (head=0x28405160, parent=0x0, elm=0x284c7d00) at hooks.c:28 | |
| 28 RB_GENERATE(hooks, hook_entry, entry, hooks_cmp); | |
| (gdb) bt | |
| #0 0x08063e3e in hooks_RB_REMOVE_COLOR (head=0x28405160, parent=0x0, elm=0x284c7d00) at hooks.c:28 | |
| #1 0x0806456e in hooks_RB_REMOVE (head=0x28405160, elm=0x284c7ba0) at hooks.c:28 | |
| #2 0x080649de in hook_remove (hhooks=0x28405160, h=0x284c7ba0) at hooks.c:83 | |
| #3 0x08064922 in hooks_free (all_hooks=0x28405160) at hooks.c:57 | |
| #4 0x08079d5d in session_destroy (s=0x285011d0) at session.c:164 | |
| #5 0x0807a29a in session_detach (s=0x285011d0, wl=0x2841b540) at session.c:303 | |
| #6 0x08076850 in server_kill_window (w=0x284fe480) at server-fn.c:273 |
| set-hook -g -n 'before-new-session' 'run "notify-send new-session..."' | |
| set-hook -g -n 'after-new-window' 'run "notify-send new-window..."' | |
| new -sfoo | |
| set-hook -tfoo -n 'after-split-window' 'display-message "I split this window!"' | |
| set-hook -tfoo -n 'before-new-window' 'splitw ; run "notify-send YES"' | |
| neww -d | |
| neww -d |
| diff --git a/trunk/cmd-choose-tree.c b/trunk/cmd-choose-tree.c | |
| index b33bf34..5aed8c9 100644 | |
| --- a/trunk/cmd-choose-tree.c | |
| +++ b/trunk/cmd-choose-tree.c | |
| @@ -77,6 +77,7 @@ cmd_choose_tree_exec(struct cmd *self, struct cmd_ctx *ctx) | |
| struct winlink *wl, *wm; | |
| struct session *s, *s2; | |
| struct window_choose_data *wcd = NULL; | |
| + struct tty *tty; | |
| const char *ses_template, *win_template; |
| diff --git a/trunk/window-choose.c b/trunk/window-choose.c | |
| index f385763..4967a4c 100644 | |
| --- a/trunk/window-choose.c | |
| +++ b/trunk/window-choose.c | |
| @@ -391,7 +391,7 @@ window_choose_write_line( | |
| int | |
| window_choose_key_index(struct window_choose_mode_data *data, u_int idx) | |
| { | |
| - static const char keys[] = "0123456789abcdefghijklmnopqrstuvwxyz"; | |
| + static const char keys[] = "abcdefghijklmnopqrstuvwxyz0123456789"; |