[PATCH] Fix compiler warnings / missing #include

2013-03-26 Thread Thomas
* Remove/rename some variables which were no longer being used. * Added #include --- cmd-queue.c |1 + control-notify.c |4 control.c|1 + window.c |9 - 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/cmd-queue.c b/cmd-queue.c inde

[PATCH 1/1] Allow conditional formats to expand formats

2013-04-25 Thread Thomas
From: Thomas Adam Currently, a conditional format only returns the string given based on whether the condition is true or false. This means the following does not work: #{?session_attached,#{session_name},no session} This change expands the item returned from the conditional if it

[PATCH] Assign mouse x/y coords before checking them

2013-08-16 Thread Thomas
When receiving mouse inputs, we should set the x/y coordinates earlier than we currently do, so that we aren't off-by-one in the case when the statusbar is at the top of the screen. --- tty-keys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tty-keys.c b/tty-keys.c index

[PATCH] Clear window->flags when clearing winlinks

2013-08-20 Thread Thomas
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 therfore introduces WINDOW_ALERTFLAGS to help with this. --- tmux.h | 1 + window.c | 1 + 2 files

[PATCH] layout-resize-pane-mouse: Consider visible panes only

2013-09-10 Thread Thomas
When a pane is maximized, and text is selected, we end up checking if a pane switch is needed. This therefore means we might end up selecting panes which aren't visible. --- layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout.c b/layout.c index b74bd78..cf554c3 100644 --- a/lay

[PATCH] Don't treat TMUX_TMPDIR as a potential file

2013-09-26 Thread Thomas
The point of setting TMUX_TMPDIR is to then make any labels from -L go to that directory. In the case of makesocketpath() with no TMUX_TMPDIR set, would set both the path and the default socket to a file. The checking of the permissions on the file worked fine in that case, but when TMUX_TMPDIR i

[PATCH] Check setupterm() in libtinfo also

2013-10-03 Thread Thomas
From: Thomas Adam Some ncurses packages have build time configuration options to separate its different parts into separate libraries. Some Linux distributions in particular separate out the terminfo routines in to libtinfo. This change teaches configure that setupterm() can also be found

Re: tmux wiki?

2009-10-25 Thread Thomas Adam
e able to share any good stuff that I might > come up with myself. It just needs someone to go ahead and start one. -- Thomas Adam -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only d

Re: Is it possible to bind arrow keys?

2009-11-22 Thread Thomas Adam
to bind these keys or is it just impossible? Not that this is > a showstopper, I usually define redundant key bindings so I can choose Hmm? bind -n C-Left previous-window bind -n C-Right next-window Is an example of using the left/right arrow keys with Ctrl to cycle through windows without a pr

Re: Build a key binding hierarchy

2009-12-01 Thread Thomas Adam
t although it may be simpler). No sign of any code yet in either case. Welcome to $REAL_LIFE -- it's on my tmux TODO list, I will get round to it eventually. -- Thomas Adam -- Join us December 9, 2009 for the Red Hat V

Re: launch tmux with several window and command

2010-01-20 Thread Thomas Adam
c_B > screen -t BoiteC mutt -F $HOME/.mutt/config/.muttrc_C > screen -t sync offlineimap > > How can I did this with tmux ? neww -d -nfoo 'exec foo' neww -d -nfoo2 'exec foo2' neww -d -nfoo3 'exec foo3' You can also set the session name as well, etc. -- Thomas

Re: "take-prompt" command in table "choice"?

2010-02-06 Thread Thomas Adam
Yeah well I like CVS. You can always use: http://github.com/ThomasAdam/tmux Automatically synched hourly from SF.net -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci. -

Re: Lock Session

2010-04-01 Thread Thomas Adam
projects. I am often away from my computer and would like a way to > blank and lock the screen so no one can walk up and start using my server. I > would just log out but it's a hassle to have to restart PuTTY each time I > come back. Is this possible? See the: lock-session and loc

Re: Scroll mode

2010-07-18 Thread Thomas Adam
it. I read in the Internet that there's a shorcut Ctrl + b, = to > activate the scroll mode but unfortunately it doesn't work for me. How > can I acquire scrollback functionality using tmux? > > Debian GNU/Linux 5.0.4; > Tmux 1.2. ^a + PgUp ... works for me. Change "^

Blanking the tmux window.

2010-07-29 Thread Thomas Adam
sr/bin/vlock' \; lock-client \; set lock-command 'tput civis && read -s -n1' (That should all be on one line.) Hope it's useful. :) -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am n

Re: Blanking the tmux window.

2010-07-30 Thread Thomas Adam
On Fri, Jul 30, 2010 at 08:18:47AM +0100, Nicholas Marriott wrote: > You could write an FAQ entry if you like :-). Something like the diff attached? ;) -- Thomas Adam ? blank ? foo.patch ? lock-clients.patch ? lock-nm.patch ? multi-colour-statusbar2.patch ? tmux-blank-window-faq.patch ? tmux

Re: Bug with exiting a window.

2010-08-12 Thread Thomas Adam
On Thu, Aug 12, 2010 at 05:48:55PM +0100, Nicholas Marriott wrote: > Make sure git is in sync with CVS HEAD. If it's the one I maintain then it's automatically synched every hour. -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am

Re: Enhancement proposal: join-pane -t origin

2010-08-18 Thread Thomas Adam
listic ? What's more realistic is making a "maximise-pane-layout" -- which I've done and will submit in due course. Of course, your idea is perhaps different from that in other uses, but a lot closer to what you've just described above. -- Thomas Adam ---

Re: lock session

2010-08-23 Thread Thomas Adam
session from one which was previously locked, forces you to unlock it again. -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci. --

Re: lock session

2010-08-23 Thread Thomas Adam
> can take one without authorization? You'd have to do something like this: tmux -Lmypersonalserver ... and ensure for the socket created thereon, that you set the permissions on it such that only you had access to it. Paranoia isn't healthy. -- Thomas Adam -- "It was the c

Re: protocol version mismatch (client 6, server 5)

2010-08-24 Thread Thomas Adam
5) You need to kill any tmux server processes and restart tmux for an upgrade -- as the last release had a server upgrade. -- Thomas Adam -- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of

Re: possible improvements

2010-10-15 Thread Thomas Adam
On 15 October 2010 10:10, Frans Haarman wrote: > The ability to start/stop programs/scripts when navigating > to/from a window. This has a much wider implication in terms of implementing hooks support --- although I suspect this idea has largely been dropped, alas. -- Thoma

Re: possible improvements

2010-10-15 Thread Thomas Adam
have to tie yourself down to this sort of repetitive pattern. -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.) -

Re: Tmux crashes on attaching

2010-11-12 Thread Thomas Adam
rds, > Jan Seeger Presumably if you pass xterm the "-hold" option, you don't see anything useful there? -- Thomas Adam -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simpli

Re: segfault

2010-11-21 Thread Thomas Adam
836 > 836 if (wp->xoff >= w->sx || wp->yoff >= w->sy) > > Let me know what further debugging you'd like. I bet you're using "mouse-select-pane", right? If you disable that, does the crash go away? I'll send a patch out later on to fi

Re: segfault

2010-11-21 Thread Thomas Adam
ways a random character before [dead] -- no tmux crash, but it does look like (through stracing it) it's caught around here: names.c:window_name_callback(): if (w->active->cmd != NULL && *w->active->cmd == '\0' && name != NULL && name[0] == &#

Re: segfault

2010-11-21 Thread Thomas Adam
*wp; > > TAILQ_FOREACH(wp, &w->panes, entry) { > - if (!window_pane_visible(wp)) > + if (wp == w->active || !window_pane_visible(wp)) > continue; > if (x < wp->xoff || x >= wp->xoff + wp->sx) >

Re: segfault

2010-11-29 Thread Thomas Adam
sive point of view, the patch looks good. -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.) -- In

Monitor silence patch.

2010-12-06 Thread Thomas Adam
sourceforge CVS repository, but is also available here for those tracking Git: https://github.com/ThomasAdam/tmux/tree/ta/monitor-silence Kindly, -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrissey ("Girl Least Likely To" -- o

Re: Monitor silence patch.

2010-12-06 Thread Thomas Adam
enum or a bunch of #defines)? Only, there's far too many places where the literal char of the flag is hard-coded where it's needed for display -- if that makes sense? Kindly, -- Thomas Adam "Deep in my heart I wish I was wrong.

Re: Monitor silence patch.

2010-12-06 Thread Thomas Adam
is hard-coded where > > it's needed for display -- if that makes sense? > > That would be cool, I was thinking just a function somewhere to convert > them to a displayable character, probably in status.c. OK. I'll submit this in due course. It ought not to impact

Re: Open windows when starting session

2010-12-27 Thread Thomas Adam
that from tmux, you already have a session attached. -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci. --

[PATCH 0/3] RFC: Thinking about monitoring across sessions

2010-12-27 Thread Thomas Adam
github.com/ThomasAdam/tmux/tree/ta/session-windows Or alternatively: % git clone git://github.com/ThomasAdam/tmux.git tmux.git % cd ./tmux.git % git checkout -b ta/session-windows origin/ta/session-windows % configure && make Any questions, just shout. -- Thomas Adam Thomas Adam (3):

[PATCH 1/3] Centralise printable window flag code.

2010-12-27 Thread Thomas Adam
Rather than hardcode where the printable window flags need to be used (such as on the status-line and choose-window list), introduce a printable_window_flags() function to return a list of flags. As a change of behaviour, now returns *all* window flags on a given winlink rather than a single flag.

[PATCH 2/3] Centralise window/session choose-mode code.

2010-12-27 Thread Thomas Adam
Factor out the code which puts the choice of choosing windows and/or sessions into a common place. --- cmd-choose-session.c | 28 + cmd-choose-window.c | 35 ++-- window-choose.c | 107 ++ 3 files changed, 113 inser

[PATCH 3/3] Introduce cmd-choose-tree

2010-12-27 Thread Thomas Adam
ree.c @@ -0,0 +1,141 @@ +/* $id$ */ + +/* + * Copyright (c) 2010 Thomas Adam + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + *

Re: [PATCH 2/3] Centralise window/session choose-mode code.

2010-12-28 Thread Thomas Adam
t there, IMO. Thanks for the other comments, I'll look into those in a moment and see what I can come up with for round two. -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- &qu

Re: [PATCH 0/3] RFC: Thinking about monitoring across sessions

2010-12-28 Thread Thomas Adam
one screams? ;) I won't be changing anything about that patch to do with window flags, so feel free to take those. Unless I hear otherwise, I'll still be assuming I can use printable_window_flags() even if the functionality of it changes to return just one flag. -- Thomas Adam -- "

configure.ac - fail outright if external libs not found.

2011-01-01 Thread Thomas Adam
annot be found already. -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci. Index: configure.ac === RCS

Re: configure.ac - fail outright if external libs not found.

2011-01-02 Thread Thomas Adam
x27;t installed; that's 99% of the fix for most people in cases where the .so can't be found. -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci. -

PATCH: Correctly NUL-terminate status_replace1() **optr

2011-01-03 Thread Thomas Adam
This results in garbage printed to the status line. See patch attached for fix. -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci. Index: status.c ==

Re: PATCH: Correctly NUL-terminate status_replace1() **optr

2011-01-03 Thread Thomas Adam
us_replace1() directly), sure. This also works. :) -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci. --

Re: ESC key seems slow in tmux

2011-03-08 Thread Thomas Adam
so, is there any way to decrease > that timeout? In tmux, this is what the escape-time is for, -- Thomas Adam -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data c

Re: Window numbering

2011-04-09 Thread Thomas Adam
bout "base-index" in "man tmux". -- Thomas Adam -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And

Re: tmux & svn

2011-05-26 Thread Thomas Adam
ithout first re-cloning the above, since SVN has its own shitty layout on disk which won't match with anything git was previously tracking. -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am

Re: tmux & svn

2011-06-10 Thread Thomas Adam
On Fri, Jun 10, 2011 at 11:14:03PM +0200, clemens fischer wrote: > On Thu-2011/05/26-23:39 Thomas Adam wrote > (MID <20110526213903.GA2501@debian.ttn6tadam>): > > > For anyone playing along at home and was tracking my git clone of > > this, I've archived the pre

Re: tmux & svn

2011-06-12 Thread Thomas Adam
On Sun, Jun 12, 2011 at 12:31:35AM +0200, clemens fischer wrote: > Thomas Adam wrote: > > > Were you just guessing? This works just fine: > > Yeah, kinda. I often clone from github, but was too lazy to look at the > various .git/config's for the right URL'

[PATCH 1/1] Correctly handle flags being empty in list-keys

2011-07-08 Thread Thomas Adam
Since the change in list-keys to make it copy and pastable in to a tmux config file, the flags field which determines if the key binding is repeatable, etc., prints garbage if the binding in question has no flags. --- trunk/cmd-list-keys.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-

[PATCH 0/4] Add support for renumbering windows

2011-08-04 Thread Thomas Adam
ome level of error-checking in it. Perhaps I should just duplicate that in window_renumber_windows() although I don't like that approach either. If there's a better way, or if I should somehow create one, I will do. It's just a bit more work than the thirty minutes I allowed myself to

[PATCH 1/4] Add cmd-renumber-windows definition

2011-08-04 Thread Thomas Adam
index 000..6cf7428 --- /dev/null +++ b/trunk/cmd-renumber-windows.c @@ -0,0 +1,53 @@ +/* $Id$ */ + +/* + * Copyright (c) 2011 Nicholas Marriott + * Copyright (c) 2011 Thomas Adam + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is

[PATCH 2/4] Add definition for window_renumber_windows

2011-08-04 Thread Thomas Adam
This is responsible for reassigning new index numbers to the winlinks in a given session. --- trunk/tmux.h |1 + trunk/window.c | 27 +++ 2 files changed, 28 insertions(+), 0 deletions(-) diff --git a/trunk/tmux.h b/trunk/tmux.h index b118f49..3881bd2 100644 --- a/

[PATCH 3/4] Add "automatic-renumber-windows" session option

2011-08-04 Thread Thomas Adam
A given session can always be told to renumber its winlinks when a window is destroyed in that session. --- trunk/options-table.c |4 trunk/server-fn.c |5 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/trunk/options-table.c b/trunk/options-table.c index d289

[PATCH 4/4] Add docs for automatic-renumber-windows, etc.

2011-08-04 Thread Thomas Adam
This updates the tmux manpage for the automatic-renumber-windows session option and the renumber-windows command. --- trunk/tmux.1 | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/trunk/tmux.1 b/trunk/tmux.1 index a5484c5..6b4a96b 100644 --- a/trunk/tmu

Kill all windows in session but one...

2011-08-04 Thread Thomas Adam
'll code it up, it's trivial, but I wanted to ask first. Kindly, -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.) --

Re: Kill all windows in session but one...

2011-08-09 Thread Thomas Adam
and has nothing to do with my original suggestion. :) -- Thomas Adam -- uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion

Re: tmux segfault

2011-08-29 Thread Thomas Adam
d on July 18. For the unreleased stuff that comes direct from the ported OpenBSD repository, look inside the "trunk/" directory. -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrissey ("Girl Least Likely To" -- off o

Re: tmux 1.5 x86_64 eating a full core (CentOS-5 x86_64)

2011-10-03 Thread Thomas Adam
use the format specifiers for that directly and your load-average will go away, hopefully. -- Thomas Adam -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, applica

Re: tmux 1.5 x86_64 eating a full core (CentOS-5 x86_64)

2011-10-06 Thread Thomas Adam
On Thu, Oct 06, 2011 at 11:02:20AM -0400, Dustin Kirkland wrote: > On Mon, Oct 3, 2011 at 10:39 AM, Thomas Adam wrote: > > On 3 October 2011 15:16, Tru Huynh wrote: > >> Possible cause: ~user/.tmux.conf > >> set -g status-left '#[fg=green,bg=black]#(whoami)@#h

tmux trunk no longer compiles against libevent 1.4.2 -- intentional?

2011-10-23 Thread Thomas Adam
laces. Not that I mind, but a few distros simply do not have libevent-2.0 packaged, and forcing that for tmux might be an issue for other programs. -- Thomas Adam -- The demand for IT networking professionals continues to

Re: strange pane navigation issue in 1.5

2011-10-27 Thread Thomas Adam
ts the string > "[A" (for Up) and "[B" (for Down). > > Is anyone aware of this issue and/or of a workaround? Are you sure this isn't down to those bindings set as repeating, by default? -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my h

Re: [PATCH] New option to get cwd of new windows from active window

2011-11-30 Thread Thomas Adam
lue of default-path. > It affects only windows created from keys or the command prompt. Why, when this is in the tmux FAQ? How can I open a new window in the same directory as the current window? -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I a

Re: new-window, first window

2011-12-11 Thread Thomas Adam
t specify a command? In your case, you want: tmux new-session -d -s main -n '(LOG) secure' "exec ." -- Thomas Adam -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special

Re: set-titles not working

2011-12-20 Thread Thomas Adam
-- > so I used this Sawfish extension that lets me bind a keystroke (I used > ALT+ENTER) to paste the buffer as if middle-mouse-click. Have you not heard of Shift + Ins? -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrisse

Re: Avoid that tmux change my prompt console

2012-01-21 Thread Thomas Adam
ne http://files.floriancrouzat.net/dotfiles/.tmux.conf tmux.conf file. > > But i dont see any command that can affect to my prompt. > > Can you help me? It's this line: set-option -g default-command "exec /bin/bash" Which won't be spawning a login shell. I am

Re: How to handle layouts

2012-02-28 Thread Thomas Adam
far. I've seen examples before of people scripting {break-,join-}pane -- although since I use XTerm and have set-clipboard in .tmux.conf, I have no need for this. -- Thomas Adam -- Keep Your Developer Skills

Re: [PATCH] Avoid syntax error in examples/screen-keys.conf

2012-03-05 Thread Thomas Adam
also this should probably make it in to the documentation at some level if it isn't already -- I've not checked. -- Thomas Adam -- Try before you buy = See our experts in action! The most comprehensive online learnin

[PATCH v2 3/4] Add "automatic-renumber-windows" session option

2012-04-22 Thread Thomas Adam
A given session can always be told to renumber its winlinks when a window is destroyed in that session. --- trunk/options-table.c |5 + trunk/server-fn.c |5 + 2 files changed, 10 insertions(+) diff --git a/trunk/options-table.c b/trunk/options-table.c index 1eb50e4..81fce32 1

[PATCH v2 2/4] Add definition for window_renumber_windows

2012-04-22 Thread Thomas Adam
This is responsible for reassigning new index numbers to the winlinks in a given session. --- trunk/tmux.h |2 ++ trunk/window.c | 45 + 2 files changed, 47 insertions(+) diff --git a/trunk/tmux.h b/trunk/tmux.h index 23352d6..7f21754 100644 ---

[PATCH v2 0/4] Add support for renumbering windows

2012-04-22 Thread Thomas Adam
windows needs to hook into control mode's notify_*() functions? I've not done that here, since that seems to be in a state of flux at the moment. Any questions, just shout. Thomas Adam (4): Add cmd-renumber-windows definition Add definition for window_renumber_windows Add "automat

[PATCH v2 4/4] Add docs for automatic-renumber-windows, etc.

2012-04-22 Thread Thomas Adam
This updates the tmux manpage for the automatic-renumber-windows session option and the renumber-windows command. --- trunk/tmux.1 | 21 + 1 file changed, 21 insertions(+) diff --git a/trunk/tmux.1 b/trunk/tmux.1 index 2975268..106f45f 100644 --- a/trunk/tmux.1 +++ b/trunk/t

[PATCH v2 1/4] Add cmd-renumber-windows definition

2012-04-22 Thread Thomas Adam
..6cf7428 --- /dev/null +++ b/trunk/cmd-renumber-windows.c @@ -0,0 +1,53 @@ +/* $Id$ */ + +/* + * Copyright (c) 2011 Nicholas Marriott + * Copyright (c) 2011 Thomas Adam + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted

[PATCH 1/1] Add "window-status-separator" option

2012-04-22 Thread Thomas Adam
This allows for specifying the character(s) for separating windows on the status line. --- trunk/options-table.c |5 + trunk/status.c| 10 -- trunk/tmux.1 |4 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/trunk/options-table.c b/trunk/o

[PATCH 0/1] Add window-status-separator option

2012-04-22 Thread Thomas Adam
he window option window-status-separator allows for. It defaults to a space character, per the current hard-coded value. Thomas Adam (1): Add "window-status-separator" option -- trunk/options-table.c |5 + trunk/status.c| 10 -- trunk/tmux.1

[PATCH 1/1] Add -a option to kill-window

2012-04-23 Thread Thomas Adam
As with kill-pane, the "-a" flag will kill all windows but the window referenced with -t. With no arguments to -t, or its absense, then the current window is used. --- cmd-kill-window.c | 18 +- tmux.1|8 +++- 2 files changed, 20 insertions(+), 6 deletions(-)

Re: [PATCH v2 0/4] Add support for renumbering windows

2012-04-24 Thread Thomas Adam
On Apr 24, 2012 4:26 PM, "Christian Neukirchen" wrote: > > Thomas Adam writes: > > > The idea behind this was to allow tmux to automatically reumber windows in > > sequence when deleting windows from a session so that no "gaps" appeared. > > This c

Re: [PATCH v2 1/4] Add cmd-renumber-windows definition

2012-04-24 Thread Thomas Adam
ame function. > If a manual trigger is really useful, could this be a flag to > move-window? I've added it as a flag to move-window (-r). See patch attached. -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrissey ("

Re: [PATCH v2 1/4] Add cmd-renumber-windows definition

2012-04-29 Thread Thomas Adam
(!RB_EMPTY(&old_windows)) call? I appreciate it's an aside. -- Thomas Adam -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has change

Re: [PATCH] Add -n argument to show-environment to specify a variable name

2012-04-29 Thread Thomas Adam
g out its *value*. Currently I would have to do this: tmux show-options -g status | awk '{print $2}' Which, for other things, I can already do the whole awk thing, just by using show-options without any parameters. Ju

Re: A "session encryption" approach?

2012-05-02 Thread Thomas Adam
er random program, such as wc? I want to protect wc so users can't count the lines in my shell's history file. The solution to the reasoned "problem" to me, solves nothing. -- Thomas Adam -- Liv

Re: [PATCH] Add -n argument to show-environment to specify a variable name

2012-05-06 Thread Thomas Adam
On 5 May 2012 18:41, Nicholas Marriott wrote: > On Sun, Apr 29, 2012 at 11:47:15PM +0100, Thomas Adam wrote: >> Hi, >> >> On 22 March 2012 11:14, Nicholas Marriott >> wrote: >> > Hi >> > >> > I tweaked this a bit so the output format is

Re: tmux window title on top

2012-05-06 Thread Thomas Adam
571311b7f75e35a85994951b79faea79ad849f Just use the code from SVN though. You'd be doing us all a favour. -- Thomas Adam -- Live Security Virtual Conference Exclusive live event will cover all the ways today&#

Re: [PATCH v2 1/4] Add cmd-renumber-windows definition

2012-05-08 Thread Thomas Adam
On Tue, May 08, 2012 at 12:13:13AM +, Ben Boeckel wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > On Tue, Apr 24, 2012 at 22:07:40 GMT, Thomas Adam wrote: > > diff --git a/trunk/cmd-move-window.c b/trunk/cmd-move-window.c > > index 5c4dbbe..acb5044 10

Re: [PATCH v2 1/4] Add cmd-renumber-windows definition

2012-05-08 Thread Thomas Adam
On 8 May 2012 10:04, Thomas Adam wrote: > So I am not sure how best do this, other than have -r take a parameter to > specify a session, and use cmd_find_session() to look it up. Something like the following? Completely and utterly untested. diff --git a/trunk/cmd-move-window.c b/tru

Re: [PATCH v2 1/4] Add cmd-renumber-windows definition

2012-05-11 Thread Thomas Adam
Hi, On 10 May 2012 07:02, Nicholas Marriott wrote: > Whoops, I missed this. I think it should use -t like everything else: That looks OK, but as I mentioned before, the semantics for -s change when used with -r, in that when using -s, we're not looking up a src-window, but a src-session. I am n

Re: tmux slow in changing the window

2012-05-14 Thread Thomas Adam
Rate limiting support to help with this problem, was added to tmux recently. Again, you'll need to use svn, something you seem reluctant to do? -- Thomas Adam On May 15, 2012 7:34 AM, "Sinbad" wrote: > tmux doesn't change the window or is not quick, when the current >

[PATCH 6/6] Update man page for format work.

2012-05-15 Thread Thomas Adam
--- trunk/tmux.1 | 44 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/trunk/tmux.1 b/trunk/tmux.1 index bc83be1..a177d24 100644 --- a/trunk/tmux.1 +++ b/trunk/tmux.1 @@ -1036,6 +1036,7 @@ visible pane and negative numbers are lines in

[PATCH 3/6] Teach {choose,list}-client to use fomats

2012-05-15 Thread Thomas Adam
This teaches the choose/list commands to use -F. --- trunk/cmd-choose-client.c | 26 ++ trunk/cmd-list-clients.c |9 ++--- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/trunk/cmd-choose-client.c b/trunk/cmd-choose-client.c index 730474d..8ddced

[PATCH 1/6] Add default format template macros

2012-05-15 Thread Thomas Adam
This adds the default format options for sessions, windows, clients, buffers because both templates are used for list-* and choose-*. --- trunk/tmux.h | 17 + 1 file changed, 17 insertions(+) diff --git a/trunk/tmux.h b/trunk/tmux.h index 9f99c66..8c9207b 100644 --- a/trunk/tmux

[PATCH 0/6] Convert choose-* cmds to use formats

2012-05-15 Thread Thomas Adam
set of patches for choose-tree, but I wanted to get these out the way first, as they're useful. Any questions, do ask. Note that I'm having my tooth out in a few days, so might be a bit slow to reply. If there's trivial fixups only needed to these, I'd rather these were done wit

[PATCH 5/6] Convert {choose,list}-window to use formats

2012-05-15 Thread Thomas Adam
This teaches the list/choose windows command to accept -F, and in doing so, add #{window_panes} to return the total number of panes for a window. --- trunk/cmd-choose-window.c | 41 ++--- trunk/cmd-list-windows.c | 12 ++-- trunk/format.c

[PATCH 2/6] Convert {choose,list}-buffers to use formats

2012-05-15 Thread Thomas Adam
This teaches the list/choose buffers command to accept -F, and in doing so, creates new buffer-specific format options. --- trunk/cmd-choose-buffer.c | 24 +--- trunk/cmd-list-buffers.c | 25 ++--- trunk/format.c| 11 +++ trunk/tmu

[PATCH 4/6] Teach {choose,list}-sessions to use formats

2012-05-15 Thread Thomas Adam
This teaches the choose/list commands to use -F. --- trunk/cmd-choose-session.c | 31 --- trunk/cmd-list-sessions.c | 10 ++ 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/trunk/cmd-choose-session.c b/trunk/cmd-choose-session.c index d3e53

Re: git svn pull latest code

2012-05-17 Thread Thomas Adam
ound that > git's depth option can be used, but depth option > is not supported in git-svn, is there any other > way just to pull the latest code using git. See: https://github.com/ThomasAdam/tmux -- Thomas Adam ---

Re: [PATCH 0/6] Convert choose-* cmds to use formats

2012-05-18 Thread Thomas Adam
On May 19, 2012 2:18 AM, "Ben Boeckel" wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > On Tue, May 15, 2012 at 22:59:41 GMT, Thomas Adam wrote: > > These six patches teach the choose-* commands to use -F for the format > > option. In doing th

[PATCH v2 00/11] Format support for many commands

2012-05-19 Thread Thomas Adam
lt is just that -- something which can be changed, so I'd rather not spend too long on getting the defaults right when they're close enough, and in my mind, reduces the code duplication. I'd argue that wins over minor changes. Any questions, do please ask. Kindly, -- Thomas Adam T

[PATCH v2 08/11] Teach display-message about formats

2012-05-19 Thread Thomas Adam
This adds formatting support to display-message. --- trunk/cmd-display-message.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/cmd-display-message.c b/trunk/cmd-display-message.c index f7d75e3..64cbed8 100644 --- a/trunk/cmd-display-message.c +++ b/trunk/cmd-display-

[PATCH v2 06/11] Teach find-window to use formats

2012-05-19 Thread Thomas Adam
Add format support to find-window. This also adds a new format placeholder "#{window_find_matches}" to put information about any content found with find-window. --- trunk/cmd-find-window.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/trunk/

[PATCH v2 10/11] Teach split-window to use formats

2012-05-19 Thread Thomas Adam
This adds formatting support to split-window. --- trunk/cmd-split-window.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trunk/cmd-split-window.c b/trunk/cmd-split-window.c index 5b24d46..6cf08a2 100644 --- a/trunk/cmd-split-window.c +++ b/trunk/cmd-split-window.c @@

[PATCH v2 02/11] Teach {choose,list}-buffers to use formats

2012-05-19 Thread Thomas Adam
This teaches the list/choose buffers command to accept -F, and in doing so, creates new buffer-specific format options. --- trunk/cmd-choose-buffer.c | 24 +--- trunk/cmd-list-buffers.c | 25 ++--- trunk/format.c| 11 +++ trunk/tmu

[PATCH v2 03/11] Teach {choose,list}-client to use fomats

2012-05-19 Thread Thomas Adam
This teaches the choose/list commands to use -F. --- trunk/cmd-choose-client.c | 26 ++ trunk/cmd-list-clients.c |9 ++--- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/trunk/cmd-choose-client.c b/trunk/cmd-choose-client.c index 730474d..5ae882

  1   2   3   4   5   6   7   >