Revision: 2538 http://tmux.svn.sourceforge.net/tmux/?rev=2538&view=rev Author: tcunha Date: 2011-07-04 08:22:37 +0000 (Mon, 04 Jul 2011)
Log Message: ----------- Sync OpenBSD patchset 928: Include the existing window and session name in the prompt when renaming and add a new key binding ($) for rename session. From Tiago Cunha. Modified Paths: -------------- trunk/cmd-command-prompt.c trunk/key-bindings.c trunk/tmux.1 Modified: trunk/cmd-command-prompt.c =================================================================== --- trunk/cmd-command-prompt.c 2011-07-03 21:52:50 UTC (rev 2537) +++ trunk/cmd-command-prompt.c 2011-07-04 08:22:37 UTC (rev 2538) @@ -59,8 +59,13 @@ cmd_command_prompt_key_binding(struct cmd *self, int key) { switch (key) { + case '$': + self->args = args_create(1, "rename-session '%%'"); + args_set(self->args, 'I', "#S"); + break; case ',': self->args = args_create(1, "rename-window '%%'"); + args_set(self->args, 'I', "#W"); break; case '.': self->args = args_create(1, "move-window -t '%%'"); Modified: trunk/key-bindings.c =================================================================== --- trunk/key-bindings.c 2011-07-03 21:52:50 UTC (rev 2537) +++ trunk/key-bindings.c 2011-07-04 08:22:37 UTC (rev 2538) @@ -1,4 +1,4 @@ -/* $Id: key-bindings.c,v 1.98 2011-01-07 14:45:34 tcunha Exp $ */ +/* $Id$ */ /* * Copyright (c) 2007 Nicholas Marriott <n...@users.sourceforge.net> @@ -106,6 +106,7 @@ { '!', 0, &cmd_break_pane_entry }, { '"', 0, &cmd_split_window_entry }, { '#', 0, &cmd_list_buffers_entry }, + { '$', 0, &cmd_command_prompt_entry }, { '%', 0, &cmd_split_window_entry }, { '&', 0, &cmd_confirm_before_entry }, { '(', 0, &cmd_switch_client_entry }, Modified: trunk/tmux.1 =================================================================== --- trunk/tmux.1 2011-07-03 21:52:50 UTC (rev 2537) +++ trunk/tmux.1 2011-07-04 08:22:37 UTC (rev 2538) @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 2 2011 $ +.Dd $Mdocdate: July 3 2011 $ .Dt TMUX 1 .Os .Sh NAME @@ -237,6 +237,8 @@ Split the current pane into two, top and bottom. .It # List all paste buffers. +.It $ +Rename the current session. .It % Split the current pane into two, left and right. .It & This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs