Feature branches

2011-12-01 Thread Ben Boeckel
Hi, Another handful of features incoming[1]. Not all are ready[2], but some are. The branches are as follows: dev/add-WORD-motions-to-status Adds 'B', 'E', and 'W' motions to edit mode. Not sure of emacs equivalents. dev/add-line-insert Adds 'A' and 'I' bindings f

Re: Jump/search memory

2011-12-01 Thread Ben Boeckel
On Sun, Nov 27, 2011 at 03:00:50 +, Nicholas Marriott wrote: > Don't n and N etc remember it already? I can just keep pressing N to > search... > > I don't mind remembering anything else too. Ah, yep. I missed that in the code. I can't remember what made me think it wasn't done... > > As a s

Re: home/end in command prompt

2011-12-01 Thread Nicholas Marriott
Applied, thanks. On Sun, Nov 27, 2011 at 10:39:41PM +0100, Matthias Lederhofer wrote: > Hi, > > I'd like to suggest that the home and end keys move the cursor to > start of line and end of line as usual in command prompt mode. > > --- > mode-key.c |4 > 1 files changed, 4 insertions(+

Re: [PATCH] honor and export $PWD

2011-12-01 Thread Nicholas Marriott
Hmm. As far as I can see xterm doesn't set PWD, how come xterm doesn't have this problem? If you make sure your shell exports PWD and add it to update-environment, tmux will set it in the environment. Does that not that work? It might be easier to just add PWD to update-environment by default. O

[PATCH] honor and export $PWD

2011-12-01 Thread Matthias Lederhofer
Tmux does currently not set $PWD when creating a new window. This makes it impossible for the shell to figure out the path specified by the user, if it contains symlinks. Example: $ cd /tmp $ mkdir a $ ln -s a b $ cd b $ pwd /tmp/b $ tmux In tmux: $ pwd /tmp

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

2011-12-01 Thread Nicholas Marriott
Yeah it has to work on OpenBSD and preferably FreeBSD too.I think you can probably use sysctl KERN_FILE, KERN_FILE_BYPID and look for KERN_FILE_CDIR in fd_fd on OpenBSD at least. I don't think we need a new option, why not make default-path default to "" and override the automatic inheriting if it

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

2011-12-01 Thread Romain Francoise
I figured this would be controversial... First some context: this was originally filed a wishlist request in the Debian BTS. I replied that the only way to keep the cwd is to use the client, and that achieving this from keys would involve non-portable ways of getting the working directory and so w