Blanking the tmux window.

2010-07-29 Thread Thomas Adam
\; 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 not. -- Morrissey (Girl Least Likely To -- off of Viva Hate

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 not. -- Morrissey (Girl

Re: lock session

2010-08-23 Thread Thomas Adam
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. -- This SF.net email is sponsored by Make an app they can't live

Re: lock session

2010-08-23 Thread Thomas Adam
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 cruelest game I've ever played

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

Re: possible improvements

2010-10-15 Thread Thomas Adam
On 15 October 2010 10:10, Frans Haarman franshaar...@gmail.com 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. -- Thomas

Re: Tmux crashes on attaching

2010-11-12 Thread Thomas Adam
option, you don't see anything useful there? -- Thomas Adam -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage

Re: segfault

2010-11-21 Thread Thomas Adam
-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 fix this, if I get the time. -- Thomas Adam -- Deep in my heart I wish I was wrong. But deep in my heart I know I am

Re: segfault

2010-11-21 Thread Thomas Adam
caught around here: names.c:window_name_callback(): if (w-active-cmd != NULL *w-active-cmd == '\0' name != NULL name[0] == '-' name[1] != '\0') wname = parse_window_name(name + 1); I'm having problems tracking this down to be honest. HTH, -- Thomas Adam -- Deep in my heart I

Re: segfault

2010-11-21 Thread Thomas Adam
== w-active || !window_pane_visible(wp)) continue; if (x wp-xoff || x = wp-xoff + wp-sx) continue; Ah -- I tried this myself -- unfortunately not. Still the same crash. -- Thomas Adam -- Deep in my heart I wish I was wrong

Re: segfault

2010-11-29 Thread Thomas Adam
, 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.) -- Increase Visibility of Your 3D Game App

Monitor silence patch.

2010-12-06 Thread Thomas Adam
, 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 -- off of Viva Hate.) ? Session.vim ? b

Re: Monitor silence patch.

2010-12-06 Thread Thomas Adam
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. But deep in my heart I know I am not. -- Morrissey (Girl Least Likely To -- off of Viva Hate

Re: Monitor silence patch.

2010-12-06 Thread Thomas Adam
. -- 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.) ? Session.vim ? b ? blank.conf ? client-path-fix.patch ? lock-clients.patch ? lock-improvements-3.patch ? lock-improvements.patch ? lock-improvements2

Re: Open windows when starting session

2010-12-27 Thread Thomas Adam
session. There is no session at this point. See: new -d -ssomename -n ssh neww -d neww -d -n python ipython However, I can then run command `source-file ~/.tmux.conf`, and the windows open fine. Because by the time you run that from tmux, you already have a session attached. -- Thomas Adam

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

2010-12-27 Thread Thomas Adam
-windows origin/ta/session-windows % configure make Any questions, just shout. -- Thomas Adam Thomas Adam (3): Centralise printable window flag code. Centralise window/session choose-mode code. Introduce cmd-choose-tree cmd-choose-session.c | 28 +- cmd-choose-tree.c| 141

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

2010-12-28 Thread Thomas Adam
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. -- Hush The Warmth, Gorky's Zygotic Mynci

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

2011-01-01 Thread Thomas Adam
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 file: /cvsroot/tmux/tmux/configure.ac,v retrieving

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

2011-01-02 Thread Thomas Adam
% 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. -- Learn how Oracle

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

2011-01-03 Thread Thomas Adam
() 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. -- Learn how Oracle Real Application Clusters

Re: ESC key seems slow in tmux

2011-03-08 Thread Thomas Adam
?  If 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

Re: Window numbering

2011-04-09 Thread Thomas Adam
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 it wants your games. http://p.sf.net/sfu/verizon-sfdev

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 previous repository and created the new one

[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 ---

Kill all windows in session but one...

2011-08-04 Thread Thomas Adam
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.) -- BlackBerryreg; DevCon Americas, Oct. 18-20

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

2011-08-09 Thread Thomas Adam
suggestion. :) -- Thomas Adam -- uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more

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

2011-10-03 Thread Thomas Adam
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, application performance, security

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 tho...@xteddy.org wrote: On 3 October 2011 15:16, Tru Huynh t...@pasteur.fr wrote: Possible cause: ~user/.tmux.conf set -g status-left '#[fg=green,bg=black]#(whoami)@#h #[fg

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

2011-10-23 Thread Thomas Adam
. 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 grow

Re: strange pane navigation issue in 1.5

2011-10-27 Thread Thomas Adam
) 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 heart I know I am not. -- Morrissey (Girl Least Likely To -- off of Viva

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

2011-11-30 Thread Thomas Adam
. 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 am not. -- Morrissey (Girl Least Likely

Re: new-window, first window

2011-12-11 Thread Thomas Adam
-session -d -s main -n '(LOG) secure' exec . -- Thomas Adam -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great

Re: set-titles not working

2011-12-20 Thread Thomas Adam
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. -- Morrissey (Girl Least Likely To -- off of Viva Hate

Re: Avoid that tmux change my prompt console

2012-01-21 Thread Thomas Adam
://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 not sure why it's set in this config to be honest. -- Thomas

Re: How to handle layouts

2012-02-28 Thread Thomas Adam
-,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 Current with LearnDevNow! The most comprehensive online learning library

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

2012-03-05 Thread Thomas Adam
already -- I've not checked. -- Thomas Adam -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus

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

2012-04-22 Thread Thomas Adam
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 automatic-renumber-windows session option Add docs

[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 +++

[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 n...@users.sourceforge.net + * Copyright (c) 2011 Thomas Adam tho...@xteddy.org + * + * Permission to use, copy, modify, and distribute this software for any + * purpose

[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 chneukirc...@gmail.com wrote: Thomas Adam tho...@xteddy.org 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 can be useful when

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

2012-04-29 Thread Thomas Adam
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 changed and how IT managers can respond. Discussions

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

2012-04-29 Thread Thomas Adam
-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. Just a thought... One guy was alluding to this on IRC earlier. Kindly, -- Thomas Adam

Re: A session encryption approach?

2012-05-02 Thread Thomas Adam
other 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 -- Live Security Virtual

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 nicholas.marri...@gmail.com wrote: On Sun, Apr 29, 2012 at 11:47:15PM +0100, Thomas Adam wrote: Hi, On 22 March 2012 11:14, Nicholas Marriott nicholas.marri...@gmail.com wrote: Hi I tweaked this a bit so the output format is the same for one

Re: tmux window title on top

2012-05-06 Thread Thomas Adam
all a favour. -- Thomas Adam -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include

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 100644 --- a/trunk/cmd-move

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

2012-05-08 Thread Thomas Adam
On 8 May 2012 10:04, Thomas Adam tho...@xteddy.org 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

Re: tmux slow in changing the window

2012-05-15 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 sinbad.sin...@gmail.com wrote: tmux doesn't change the window or is not quick, when the current window

[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

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

2012-05-15 Thread Thomas Adam
, 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 without my approval. Kindly, -- Thomas Adam Thomas

[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

Re: git svn pull latest code

2012-05-17 Thread Thomas Adam
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 -- Live Security

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

2012-05-19 Thread Thomas Adam
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 Thomas Adam (11): Add default

[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 +++

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

2012-05-19 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 | 14 +++--- trunk/format.c

[PATCH v2 11/11] Update man page for format work

2012-05-19 Thread Thomas Adam
--- trunk/tmux.1 | 51 +++ 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/trunk/tmux.1 b/trunk/tmux.1 index bc83be1..9b8e404 100644 --- a/trunk/tmux.1 +++ b/trunk/tmux.1 @@ -1036,6 +1036,7 @@ visible pane and negative numbers are

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

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

[PATCH v2 09/11] Teach new-window to use formats

2012-05-19 Thread Thomas Adam
This adds formatting support to new-window. --- trunk/cmd-new-window.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/cmd-new-window.c b/trunk/cmd-new-window.c index ccc6d5e..9425855 100644 --- a/trunk/cmd-new-window.c +++ b/trunk/cmd-new-window.c @@ -122,15

[PATCH v2 01/11] Add default format template macros

2012-05-19 Thread Thomas Adam
This adds the default format options for sessions, windows, clients, buffers because both templates are used for list-* and choose-*. Also introduces other default template macros for commands already using formatting code. --- trunk/tmux.h | 24 1 file changed, 24

Re: git svn pull latest code

2012-05-20 Thread Thomas Adam
Hi, Stop buggering about. There's an autogen.sh script you need to run to generate that. On May 20, 2012 5:19 AM, Sinbad sinbad.sin...@gmail.com wrote: On Sun, May 20, 2012 at 9:44 AM, Sinbad sinbad.sin...@gmail.com wrote: On Thu, May 17, 2012 at 1:36 PM, Thomas Adam tho...@xteddy.org wrote

Re: tmux slow in changing the window

2012-05-25 Thread Thomas Adam
On Fri, May 25, 2012 at 02:37:16PM +0530, Sinbad wrote: On Tue, May 15, 2012 at 12:23 PM, Thomas Adam tho...@xteddy.org wrote: 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

Re: Movement when block selecting is weird

2012-05-25 Thread Thomas Adam
; } Does reverting this fix it for you? (I'm only reading the code here; not actually tried this.) It might be worthwhile checking data-rectflag or somesuch, and conditionally only turn on the feature this patch addresses if _not_ in rectangle mode. Not sure. -- Thomas Adam

Re: [PATCH] Fix default client template

2012-05-27 Thread Thomas Adam
#{window_layout}] #{window_id}\ - #{?window_active, (active),} + [#{window_width}x#{window_height}] #define DEFAULT_PANE_INFO_TEMPLATE \ #{session_name}:#{window_index}.#{pane_index} -- Thomas Adam -- Deep in my heart I wish I

Re: [PATCH 1/2] kill-window -a: use session from -t

2012-05-28 Thread Thomas Adam
this with move-window -r. Thanks for this, looks good to me. -- Thomas Adam -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how

Re: Release of 1.7

2012-06-01 Thread Thomas Adam
On Jun 1, 2012 5:26 PM, Jonathan Daugherty j...@galois.com wrote: Hi, I couldn't find this information in the obvious places so I'll ask here: when might 1.7 be released? It's not released yet. That's what the svn version in trunk/ is for. Thomas Adam Thanks! -- Jonathan Daugherty

Re: Release of 1.7

2012-06-01 Thread Thomas Adam
On Jun 1, 2012 5:26 PM, Jonathan Daugherty j...@galois.com wrote: Hi, I couldn't find this information in the obvious places so I'll ask here: when might 1.7 be released? Oh, when? Sorry. Misread that. Svn versions get released whenever. There tends to be no pattern per se. Presumably when

[PATCH V2]: Re: [PATCH 1/1] Don't check for NULL before xfree()

2012-06-03 Thread Thomas Adam
On Sun, Jun 03, 2012 at 01:21:47PM +0100, Thomas Adam wrote: The C standard dictates that calling free(NULL) is a no-op. So we can safely assume this to be OK. I'm a disaster. I forgot to include some files. Oops. Here's V2, attached. -- Thomas Adam -- Deep in my heart I wish I was wrong

[PATCH 03/14] Convert choose-session to use window_choose_ctx()

2012-06-03 Thread Thomas Adam
Switch the callback of this command to use the centralised window_choose_ctx function. --- trunk/cmd-choose-session.c | 40 ++-- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/trunk/cmd-choose-session.c b/trunk/cmd-choose-session.c index

[PATCH 10/14] Convert choose-buffer to use window_choose_data

2012-06-03 Thread Thomas Adam
--- trunk/cmd-choose-buffer.c | 47 + 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/trunk/cmd-choose-buffer.c b/trunk/cmd-choose-buffer.c index 3e803f8..f55e565 100644 --- a/trunk/cmd-choose-buffer.c +++ b/trunk/cmd-choose-buffer.c

[PATCH 04/14] Convert choose-window to use window_choose_ctx()

2012-06-03 Thread Thomas Adam
Switch the callback of this command to use the centralised window_choose_ctx function. --- trunk/cmd-choose-window.c | 44 ++-- 1 file changed, 6 insertions(+), 38 deletions(-) diff --git a/trunk/cmd-choose-window.c b/trunk/cmd-choose-window.c index

[PATCH 13/14] Convert choose-window to use window_choose_data

2012-06-03 Thread Thomas Adam
--- trunk/cmd-choose-window.c | 63 +++-- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/trunk/cmd-choose-window.c b/trunk/cmd-choose-window.c index 8ac0f0c..c4c 100644 --- a/trunk/cmd-choose-window.c +++ b/trunk/cmd-choose-window.c

[PATCH 12/14] Convert choose-session to use window_choose_data

2012-06-03 Thread Thomas Adam
--- trunk/cmd-choose-session.c | 56 +++- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/trunk/cmd-choose-session.c b/trunk/cmd-choose-session.c index 1a7fc12..8931141 100644 --- a/trunk/cmd-choose-session.c +++

[PATCH 00/14] Rework choose-mode internals.

2012-06-03 Thread Thomas Adam
not going to cause too many problems. Any questions, do please ask. Kindly, -- Thomas Adam Thomas Adam (14): Introduce window_choose_ctx() Convert choose-buffer to use window_choose_ctx() Convert choose-session to use window_choose_ctx() Convert choose-window to use window_choose_ctx() choose

[PATCH 14/14] Convert find-window to use window_choose_data

2012-06-03 Thread Thomas Adam
--- trunk/cmd-find-window.c | 56 ++- 1 file changed, 26 insertions(+), 30 deletions(-) diff --git a/trunk/cmd-find-window.c b/trunk/cmd-find-window.c index ff8405f..88f84e7 100644 --- a/trunk/cmd-find-window.c +++ b/trunk/cmd-find-window.c @@ -30,8

[PATCH 02/14] Convert choose-buffer to use window_choose_ctx()

2012-06-03 Thread Thomas Adam
Switch the callback of this command to use the centralised window_choose_ctx function. --- trunk/cmd-choose-buffer.c | 37 ++--- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/trunk/cmd-choose-buffer.c b/trunk/cmd-choose-buffer.c index

[PATCH 11/14] Convert choose-client to use window_choose_data

2012-06-03 Thread Thomas Adam
--- trunk/cmd-choose-client.c | 87 + 1 file changed, 32 insertions(+), 55 deletions(-) diff --git a/trunk/cmd-choose-client.c b/trunk/cmd-choose-client.c index 5ae882d..7ca4346 100644 --- a/trunk/cmd-choose-client.c +++ b/trunk/cmd-choose-client.c

Re: [PATCH 0/1] xfree(NULL) is a no-op when calling free(NULL)

2012-06-03 Thread Thomas Adam
, but in the case where you might have malloc()d something or not (because a certain element hasn't changed, or had a value set), and you then have to code around that eventuality just to free it, which is safe w.r.t NULL, creates unnecessary work, IMO. Kindly, -- Thomas Adam

Re: [PATCH 0/1] xfree(NULL) is a no-op when calling free(NULL)

2012-06-03 Thread Thomas Adam
this check actually needs them, and indeed, should the implementation of the surrounding code ever change, they'd have to _remember_ to add them in, presumably, if it's to be compliant. Kindly, -- Thomas Adam -- Live Security

Re: [PATCH 00/14] Rework choose-mode internals.

2012-06-04 Thread Thomas Adam
Hi, On Sun, Jun 03, 2012 at 07:59:06PM +0100, Thomas Adam wrote: So some observations/ideas (in no particular order): * I don't like the free() callbacks to each cmd-choose-* file. Ideally we should probably look at centralising these where appropriate, perhaps in window_choose_free

Re: [PATCH] Allow using mouse to scroll down in copy mode

2012-06-05 Thread Thomas Adam
Hi, Yes, this was synched in Openbsd patchset 1082. Look in svn trunk. It's not in a released version of tmux yet. -- Thomas Adam On Jun 4, 2012 7:41 PM, Sébastien le Preste de Vauban ulpianoso...@gmail.com wrote: On Sun, Apr 01, 2012 at 02:50:20AM -0400, James Nylen wrote: The attached

Re: synchronize-panes Cursor In Every Window?

2012-06-06 Thread Thomas Adam
in all panes. There was a patch for that feature sent to this list recently. I can't say I'd welcome it myself. -- Thomas Adam -- Live Security Virtual Conference Exclusive live event will cover all the ways today's

Re: synchronize-panes Cursor In Every Window?

2012-06-06 Thread Thomas Adam
with the section on all items you are editing. You'd have to draw a fake cursor in all the other panes. Is this really worth it, when regardless of which pane is active, the same input is being sent to them regardless? -- Thomas Adam

[PATCH 0/1] Teach the detach-client command about -a

2012-06-06 Thread Thomas Adam
This adds the -a option to detach-client, which will detch all clients but the one specified with -t. If -t is not specified, the current client is assumed. This mimicks the functionality of kill-window, for instance. Requested by somasin on IRC. Thomas Adam (1): Detach all clients but one

[PATCH 1/1] Detach all clients but one specified with -a

2012-06-06 Thread Thomas Adam
This adds an option to the detach-client command to use -a which will detach all clients except (-a) the target client specified with -t. --- trunk/cmd-detach-client.c | 16 trunk/tmux.1 |5 + 2 files changed, 17 insertions(+), 4 deletions(-) diff --git

[PATCH 0/1] Teach kill-session about -a

2012-06-06 Thread Thomas Adam
This teaches the kill-session command about -a which will kill all sessions but the one specified with -a, including all clients, and unless -t is specified, assumes the current session. Thomas Adam (1): Teach kill-session about -a trunk/cmd-kill-session.c | 20 ++-- trunk

[PATCH 1/1] Teach kill-session about -a

2012-06-06 Thread Thomas Adam
This will kill all sessions and detach clients except the session specified with -a and -t -- and where -t is not given, assumes current session. --- trunk/cmd-kill-session.c | 20 ++-- trunk/tmux.1 |7 ++- 2 files changed, 20 insertions(+), 7 deletions(-)

[PATCH 1/1] Don't mention specific alerts in man page

2012-06-06 Thread Thomas Adam
When referring to alerts, don't try and enumerate the type of alert, rather, mention that an alert occurs. This stops the need to enumerate all the alert types in more than one place, and indeed, without this patch, not all the alert types are referenced. --- trunk/tmux.1 |6 +++--- 1 file

Re: resize pane in console

2012-06-06 Thread Thomas Adam
On Wed, Jun 06, 2012 at 09:05:20PM +0800, lryylryy wrote: Hi, I'm new to tmux. I found that when I resize pane in LXTerminal, It works. But when I switched to console use Ctrl+Alt+F1, I cannot resize pane. How can I resize pane in console? Which key-bindings? -- Thomas Adam -- Deep

[PATCH 2/3] Interpolate commands before adding to choose list

2012-06-11 Thread Thomas Adam
Previously, each entry's action to be performed from the choose-list, happened at callback time. Instead, interpolate the command much earlier before it's added to the choose-list. This makes it easier later on to chain commands together, such as in choose-tree. --- trunk/cmd-choose-buffer.c |

[PATCH 1/3] Introduce window_choose_add_{session,window}()

2012-06-11 Thread Thomas Adam
Define an abstraction for adding windows and sessions to a choose list, and use them for the choose-{window,session} commands. Both these functions return the struct window_choose_data* pointer. --- trunk/cmd-choose-session.c | 24 ++-- trunk/cmd-choose-window.c | 26

[PATCH 0/2] winlink alert improvements

2012-06-17 Thread Thomas Adam
selecting windows to clear all flags across winlinks. Any questions, please ask. -- Thomas Adam Thomas Adam (2): Simplify server_window_check_bell() Clear WINLINK_ALERTFLAGS across all sessions trunk/server-window.c | 55 ++--- trunk/session.c

[PATCH 1/2] Simplify server_window_check_bell()

2012-06-17 Thread Thomas Adam
Rather than duplicating the same logic between monitoring bells in all or the current window, instead centralise the logic of looping over all windows, and for the purposes of rendering visual-* alerts, only check the bell type at that point, and print the appropriate message. ---

[PATCH v2 2/2] Clear WINLINK_ALERTFLAGS across all sessions

2012-06-17 Thread Thomas Adam
When a winlink is linked in to multiple sessions, make the alert appear across all sessions where that winlink is linked to, and on clearing it, ensure *all* instances of that alert are cleared. --- V2: Clear more window-flags than just WINDOW_BELL. trunk/server-window.c | 11 ---

Re: tmux segfaults after suspension to ram

2012-06-17 Thread Thomas Adam
with that same keybinding. I can't reproduce this, but if you're using the SVN version that compiles with -g in CFLAGS, and a backtrace from gdb from a corefile would be really useful. Can you do that? Thanks, -- Thomas Adam

Re: tmux segfaults after suspension to ram

2012-06-17 Thread Thomas Adam
On Sun, Jun 17, 2012 at 10:53:54PM +0100, Thomas Adam wrote: Hi, On 17 June 2012 22:50, Giorgio Lando la...@imap.cc wrote: On Sun, Jun 17, 2012, at 08:46 PM, Giorgio Lando wrote: 1) I start tmux; 2) I launch mutt with the following key binding defined in my tmux.conf: bind p neww -k

Re: [PATCH v2 2/2] Clear WINLINK_ALERTFLAGS across all sessions

2012-06-20 Thread Thomas Adam
Hi, On Sun, Jun 17, 2012 at 07:20:08PM +0100, Thomas Adam wrote: +/* Clear alert flags for a winlink */ +void +winlink_clear_flags(struct winlink *wl) +{ + struct winlink *wm; + struct session *s; + struct window *w; + u_inti; + + for (i = 0; i

Re: [PATCH] Allow using mouse to scroll down in copy mode

2012-06-20 Thread Thomas Adam
On Wed, Jun 20, 2012 at 11:44:09AM +, Fabio Spelta wrote: Thomas Adam thomas at xteddy.org writes: Hi, Yes, this was synched in Openbsd patchset 1082. Look in svn trunk. Hello, I just fetched the latest (so far) version of the svn trunk (it's revision 2829) and the new

Re: [PATCH] Allow using mouse to scroll down in copy mode

2012-06-21 Thread Thomas Adam
) { -- Thomas Adam -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint

  1   2   3   4   5   >