problem with pasting from linux clipboard

2012-11-21 Thread Alexandre Provencio
Hello everyone, I have the following binding set: bind p run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" It works fine for a few lines of text, but not for bigger chunks, where anything goes to the paste-buffer and tmux throws a 'returned 1' message. Can anyone please hel

Setting pane title repeatedly causes status line problems

2012-11-21 Thread Adrian Luff
tmux should catch the escape sequence consistently but I seem to have found a race condition case where it doesn't. Adding... > export PROMPT_COMMAND="${PROMPT_COMMAND}; printf '\e]2;%s\e\\' > \"${HOSTNAME/.*}\"" to the bash shell while inside tmux causes the status line to be printed on the cur

can't attach to session

2012-11-21 Thread Mark Volkmann
Here's a very simple script for starting or attaching to a tmux session named "bad": #!/bin/bash if ! tmux has-session -t bad; then tmux new-session -s bad -d fi tmux attach -t bad When I run this, I get a message in the one and only window of the session that gives the path to my .tmux.conf f

Re: [PATCH 0/1] Hook support: proof-of-concept

2012-11-21 Thread Nicholas Marriott
Hi This seems a reasonable idea to me but I think it should go in cmd_ctx - it is context for THIS invocation of the command, not for all invocations. I'd just add it as members in there personally. Also I'd maybe call the function prepare() or parse() not context()? Also of course exec() can as