Re: failed to set the status bar

2014-07-14 Thread Nicholas Marriott
Show us your config file that isn't working. On Fri, Jul 04, 2014 at 10:05:20AM +0800, Wisatbff Li wrote: > Hi, there. > > I'm trying to show the difference in days between two dates on the > status bar. I've tried commands given in this > thread(http://stackoverflow.com/questions/4946785/how-to

Re: Passing session name to external command in status bar

2014-07-14 Thread Nicholas Marriott
You could try this and then see if display -p works: diff --git a/status.c b/status.c index deb1b60..73d1f66 100644 --- a/status.c +++ b/status.c @@ -529,7 +529,7 @@ status_find_job(struct client *c, char **iptr) /* If not found at all, start the job and add to the tree. */ if (s

Re: Passing session name to external command in status bar

2014-07-14 Thread Elliot Saba
Unfortunately, that doesn't seem to work. I'm testing via the following: Put this in my .tmux.conf: *set -g status-right '#(~/tmuxtest.sh)'set -g status-interval 1* Put this in ~/tmuxtest.sh: *#!/bin/shtmux display-message -p "#S"* Then open up two separate tmux sessions, and you will see tha

tmux, zsh, vim mode

2014-07-14 Thread Sean Hafeez
I have a strange issue. OS X 10.9.4 zsh for shell tmux I have the following in my .tmux.conf # vi setw -g mode-keys vi bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R bind-key -r C-h select-window -t :- bind-key -r C-l select-window -t :+ In zsh, hitting

Extended function keys

2014-07-14 Thread Bryan Mills
I've been experimenting with alternate keyboards lately, and I've got a USB HID device that generates lesser-used function key codes (F13-F24). I managed to get xterm configured decently enough to forward them to emacs, so everything seems to be plumbed properly... Only, if I throw tmux in the mi

Re: Extended function keys

2014-07-14 Thread Nicholas Marriott
Looks fine to me, although tmux only supports up to F20. If you turn on the xterm-keys option you should get the xterm escape sequences instead of the normal tmux ones. On Tue, Jul 15, 2014 at 12:04:18AM -0400, Bryan Mills wrote: > I've been experimenting with alternate keyboards lately, and I'v

Re: Passing session name to external command in status bar

2014-07-14 Thread Nicholas Marriott
What happens is that one session runs "~/tmuxtest.sh" and the second sees it has been run and uses the same result. This is because they are seen as the same job, because jobs are global. I don't think you will be able to get this to work without changing tmux to either process formats in the comma

Re: Passing session name to external command in status bar

2014-07-14 Thread Elliot Saba
Thanks, I was just debugging this right now. ;) By "set a different status-right", do you mean I need to have the actual command itself be different? E.g. if I put some pseudo-random junk in my command that I later ignore, tmux will treat them as separate jobs? Or is there a better way? -E On

Re: Passing session name to external command in status bar

2014-07-14 Thread Nicholas Marriott
Either use random junk or the session name but set status-right individually to a different command for each session Original message From: Elliot Saba Date: 15/07/2014 07:08 (GMT+00:00) To: Nicholas Marriott Cc: tmux-users@lists.sourceforge.net Subject: Re: Passing sess