Re: tmux & svn

2011-06-12 Thread clemens fischer
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's. > [/tmp]% git clone git://github.com/ThomasAdam/tmux.git > Cloning into tmux... > remote: Counting objects: 1530

Re: tmux & svn

2011-06-10 Thread clemens fischer
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 > with the same URL: > > https://github.com/ThomasAdam/tmux > > But

Re: Italics in tmux

2011-06-10 Thread clemens fischer
Tiago Resende wrote: > It is already configurable through terminfo. If you want italics and > standout to work properly, use what's in the FAQ [1]: > > ] To make applications aware that tmux supports italics and to use a proper > ] escape sequence for standout, you'll need to create a new terminf

Re: Italics in tmux

2011-06-09 Thread clemens fischer
On Mon-2011/04/11-09:15 Nicholas Marriott wrote (MID <20110411071536.ga2...@yelena.nicm.ath.cx>): > Thanks, applied. I made some minor tweaks and changed ~/.screen.conf to > ~/.tmux.conf ;-). Please, guys, can this be made configurable somehow? I just updated to SVN-2525 and, with rxvt-unicode t

linux compile: tty.c:1006 undefined ref to __b64_ntop

2011-05-26 Thread clemens fischer
'uname -rms' -> Linux 2.6.38.7-spott-8-g2232235 i686 CVS version from a few minutes ago: ... gcc -O -D_GNU_SOURCE -std=c99 -g -ggdb -O0 -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wpointe

Re: Maybe you'll find it useful (or some bugs/problems with it?)

2011-01-29 Thread clemens fischer
clemens fischer wrote: > Minor nits about quoting: both $((...)) and subscript [...] in bash > treat their arguments as numbers, $(...) (command substitution) is > implicitly quoted on the outside, which eases quotes on the inside. Micah sent a clarification to me in private email:

Re: Maybe you'll find it useful (or some bugs/problems with it?)

2011-01-28 Thread clemens fischer
On Tue-2011/01/25-14:23 hubert depesz lubaczewski wrote in <20110125132342.ga18...@depesz.com>: > To help me with it, I wrote simple script (attached to this mail), which > perhaps you will find useful. Minor nits about quoting: both $((...)) and subscript [...] in bash treat their arguments as

Re: monitor-content examples

2011-01-28 Thread clemens fischer
Sebastian Tramp wrote: > And just another question: Is there a resource available, where I can > see examples for the monitor-content option? I've played around > a little bit but wasn't successful (try a configure al mcabber alert) I have this to alert me whenever tmux sees my shell prompt, but

Re: tmux config: cannot "bind -t vi-copy C-PPage"

2011-01-25 Thread clemens fischer
Micah Cowan wrote: > (01/24/2011 02:41 PM), clemens fischer wrote: >> On Tue-2011/01/18-21:47 clemens fischer wrote in >> gmane.comp.terminal-emulators.tmux.user (MID >> ): >> >>> tmux github version from today (the master branch), on Linux >>> 2.6.3

Re: tmux config: cannot "bind -t vi-copy C-PPage"

2011-01-24 Thread clemens fischer
On Tue-2011/01/18-21:47 clemens fischer wrote in gmane.comp.terminal-emulators.tmux.user (MID ): > tmux github version from today (the master branch), on Linux > 2.6.36.3-spott i686 and rxvt-unicode-256color-9.07-10. > > I have the following lines in $HOME/.tmux.conf: > > bin

tmux config: cannot "bind -t vi-copy C-PPage"

2011-01-18 Thread clemens fischer
Hi, tmux github version from today (the master branch), on Linux 2.6.36.3-spott i686 and rxvt-unicode-256color-9.07-10. I have the following lines in $HOME/.tmux.conf: bind-key -t vi-copy C-PPage page-up bind-key -t vi-copy C-NPage page-down bind-key -t vi-copy C-Up page-up bind-key -t v

feature: can searching optionally be made case insensitive?

2010-11-01 Thread clemens fischer
Hi, sometimes I'm looking for a string in history without knowing what mix of upper/lowercase it has. For this an option to ignore case in the "Search" commands would be very useful! clemens -- Nokia and AT&T present

Re: command-prompt, linux + urxvt

2010-09-23 Thread clemens fischer
On Mon-2010/09/20-21:46 Nicholas Marriott wrote: > it doesn't work like that, each prompt is stored and the results > substituted into the command: %1 for the first prompt, %2 for the > second etc. the command is executed once all the prompts have been > used That's a case of "bad manual wording"

command-prompt, linux + urxvt

2010-09-20 Thread clemens fischer
Hi, tmux-cvs from today, Linux 2.6.35.4-spott i686 AuthenticAMD, rxvt-unicode-9.07-2 I have this binding: bind-key 'h' command-prompt -p \ vi-edit,emacs-edit,vi-choice,emacs-choice,vi-copy,emacs-copy \ "list-keys -t '%%'" As might be guessed, it is supposed to list keybindings, but

Re: monitor-content matches

2010-06-02 Thread clemens fischer
Vincent Wang wrote: > #! /usr/bin/env ruby > > event_hash = { > /^=> Ctrl-C to shutdown server/ => lambda { ["Rails started"] }, > /^(\d+ tests, \d+ assertions, \d+ failures, \d+ errors)/ => lambda { [$1, > "Ruby Test"] }, > } > > def notify(msg, title="Notification") > system(%Q{/usr/local

Re: monitor-content matches

2010-06-01 Thread clemens fischer
Vincent Wang wrote: > I wrote a very simple ruby script that define a action map, regex as > key, a function as value, so you can define as many different actions > as you need based on regex, that can solve the problem. You mean actions triggered by window-content? Can you post it or send by p

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread clemens fischer
Michael Torrie wrote: > I did solve my problem, and I used socat. Basically here's the socat > command that sends tmux to a remote server: > > socat SYSTEM:"tmux attach",pty,stderr OPENSSL:host:port,verify=0 > > The listener (remote host) runs socat like this (all on one line): > > socat opens

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread clemens fischer
Nicholas Marriott wrote: > You can't share file descriptors between machines. Ah, yes, I had forgotten about this to be a remote connection. clemens -- ___ tmux-users maili

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread clemens fischer
Nicholas Marriott wrote: > tmux uses the SCM_RIGHTS OOB data mechanism to pass a file descriptor, > socat obviously does not handle this. > > I'm not sure it would even be possible for it to do so. > > The tmux server needs a duplicate of the tty fd so it can update the > terminal. I wonder why s

Re: monitor-content matches

2010-05-31 Thread clemens fischer
Vincent Wang wrote: > you can try 'pipe-pane', pls read tmux's manpage to get more details. > > I use it to check if tests are finished, send a notification(growl) to > me, and it works very well. That's a very good idea, thanks! So far, I only use it for logging: L: pipe-pane -o "cat -sv >

Re: fatal: main: msgbuf_write failed

2010-05-30 Thread clemens fischer
Nicholas Marriott wrote: > On Sun, May 30, 2010 at 06:05:25PM +0200, clemens fischer wrote: > >> Did you do "chmod 777 ..." or "chmod 0777 ..."? The former would be >> interpreted in decimal, the latter is the octal you want. You could > > chmod is

Re: fatal: main: msgbuf_write failed

2010-05-30 Thread clemens fischer
On Fri-2010/04/23-19:45 chr wrote: > I suspect that is some permissions problem. If I chmod 777 > the socket directory (previously 700), I get: > > $ tmux > can't create socket: Permission denied Did you do "chmod 777 ..." or "chmod 0777 ..."? The former would be interpreted in decimal, the lat

monitor-content matches

2010-05-30 Thread clemens fischer
'uname -rims' -> Linux 2.6.33.4-spott i686 AuthenticAMD tmux-CVS from today Hi, I have these settings in ".tmux.conf": set-window-option -g monitor-content '[0-9]* [0-9]* [#$] ?' set-option -g visual-content on designed to match my shells prompt[1] looking like this: "0 4 # ". The fir

Re: tmux as login shell without chsh

2010-04-27 Thread clemens fischer
On Sun-2010/02/28-21:28 Nicholas Marriott wrote: > You probably want to "exec tmux new-session", or use "tmux new-session > -d" instead. I always use exec /usr/local/bin/tmux ${TMUX_OPTIONS} attach-session without checking for existing sessions on the local machine. If there is one, it att

Re: set -g status-bg colour?

2010-04-22 Thread clemens fischer
On Fri-2010/04/02-17:23 Micah Cowan wrote: > clemens fischer wrote: > >> In the bash-4 I use it >> breaks at least when giving it anything but a number: >> >> Color number g is/ino/bin/color-trans.sh: line 66: [: g: integer >> expression expected >>

Re: set -g status-bg colour?

2010-04-02 Thread clemens fischer
On Fri-2010/03/12-03:42 Micah Cowan wrote: > I also whipped up a small shell script to help me find color values > I like. I've attached it here. Does "color-trans.sh" really work in your bash? In the bash-4 I use it breaks at least when giving it anything but a number: Color number g is/ino/

Re: OT: which of emacs/xemacs do you prefer?

2010-02-26 Thread clemens fischer
Trent W. Buck wrote: > If you hate elisp, you may wish to investigate climacs (CL), edwin > (MIT Scheme), jEdit (Java) or yi (Haskell). They allegedly try to be > editors in the same vein as Emacs, but personally I found the lack of > apps, libraries and general functionality to be enough of a tu

Re: Display issues with rxvt-unicode (256 colors patch)

2010-02-23 Thread clemens fischer
Šime Ramov wrote: > The problem is exactly as described here: > . BTW, on page one of this bbs "thread"[1] someone mentions the same problem I have: some curses apps (tin in my case) display the background colour only where they print te

Re: [Patch] Typing end-of-line twice

2010-02-23 Thread clemens fischer
Micah Cowan wrote: > Typing the end-of-line key once will bring you to the end of the > textual content of the current row on the screen. > If the current row contains only a portion of a line had wrapped onto > the next row, then typing the end-of-line key again will bring you to > the end of the

OT: which of emacs/xemacs do you prefer?

2010-02-19 Thread clemens fischer
I guess the subject says it all. My Emacs fu is rusty and I got tired of constantly thinking in an ancient, dynamic-scope lisp dialect, tweaking my configuration and finding/maintaining oort-gnus versus gnus and the like. The one sad thing with vim is its inability to run a real sub-process inter

Re: copy rectangle with short lines

2010-02-19 Thread clemens fischer
Robin Lee Powell wrote: > On Fri, Feb 19, 2010 at 05:25:36PM +0100, clemens fischer wrote: > >> What I have in mind is something special for any selection and would >> only apply to copy-mode: a per-window (per-pane?) option in a special >> struct hanging off of &qu

Re: copy rectangle with short lines

2010-02-19 Thread clemens fischer
Robin Lee Powell wrote: > In screen, the exact work flow was: > > hilight a selection > > convert the newlines in the selection to something else > > copy the selection > > paste the selection > > I think what you're asking for is this work flow: > > copy a selection > > convert the n

Re: Rebased diffs: word-separators and cmd-prefixes

2010-02-19 Thread clemens fischer
Micah Cowan wrote: > Okay, these diffs have been rebased to before the copy-output-merge > stuff (and to the latest OpenBSD changes), and reworked a bit. They > should be applied in the order: word-separators, then cmd-prefixes. [-- name: cmd-prefixes-rebased.diff --] [-- name: word-separators.di

Re: [Patch] Re: copy rectangle with short lines

2010-02-19 Thread clemens fischer
Micah Cowan wrote: > clemens fischer wrote: > >> Hi, >> >> I am very glad that tmux has rectangular copies now! But a problem >> as well: in the following, try to cut out the block >> >> >bbb < from >aaa bbb >> >y<

Re: copy rectangle with short lines

2010-02-19 Thread clemens fischer
Robin Lee Powell wrote: > Copying from my other post: > > The other aspect to it is having a key that can shift between the > various options. My idea there is to store the > pass-through-before-pasting command in a (window?) option, and make > a tmux command that takes an option name and a list

Re: copy rectangle with short lines

2010-02-19 Thread clemens fischer
Micah Cowan wrote: > The following should bind J to join the current (already > finished) selection with spaces: > > bind-key J run-shell 'tmux save-buffer /tmp/.tmux-exchange; tr \n " " < > /tmp/.tmux-exchange >/tmp/.tmux-exchange-processed; tmux load-buffer > /tmp/.tmux-exchange-processed' I

Re: copy rectangle with short lines

2010-02-18 Thread clemens fischer
clemens fischer wrote: > I am very glad that tmux has rectangular copies now! But a problem as > well: in the following, try to cut out the block > > >bbb < from >aaa bbb > >y< >xxx y > >22 < >111 22 > > A

copy rectangle with short lines

2010-02-18 Thread clemens fischer
Hi, I am very glad that tmux has rectangular copies now! But a problem as well: in the following, try to cut out the block >bbb < from >aaa bbb >y< >xxx y >22 < >111 22 At least in vi-copy mode on linux, the shortest line determines the right border of th

Re: [Patch] per-window alternate screen option

2010-02-08 Thread clemens fischer
Nicholas Marriott wrote: > I'm trimming to just to "alternate-screen" rather than > "use-alternate-screen" which fits better with the other options. Ok, thanks. BTW, your code is really good quality. If I grep for something, I get mostly usable results, no verbose crap. It is also quite safe t

Re: [Patch] per-window alternate screen option

2010-02-07 Thread clemens fischer
Nicholas Marriott wrote: > It could be much smaller by doing: > >if (!options_get_number(&wp->window->options, "app-private-window")) >break; > > In both cases, instead of putting everything inside the if. Yes, but I often introduce error checking, where a function is su

[Patch] per-window alternate screen option

2010-02-07 Thread clemens fischer
The patch adds a per-window option "app-private-window". Tmux' behaviour doesn't change if it is set "on". If set to "off", saving to tmux' alternate screen is disabled, no saving and restoring to a saved grid, and the history stays on. As far as I know, this latter mode is compatible to "screen

Re: terminal-overrides: proper terminfo entries?

2010-02-06 Thread clemens fischer
Nicholas Marriott wrote: > On Sat, Feb 06, 2010 at 11:17:03PM +0100, clemens fischer wrote: > >> What I'd like to see after exiting from or suspending vim is this: >> >> --- (part of) vim output: >> ... >> /* >> * Enter

Re: terminal-overrides: proper terminfo entries?

2010-02-06 Thread clemens fischer
Micah Cowan wrote: > clemens fischer wrote: >> Micah Cowan wrote: >> >>> I think he's referring to the alternate buffer. >>> >>> clemens, one way of working around that would be to simply suspend >>> less or vim (or whatever) with C-z, en

Re: How to checkout the latest source code

2010-02-06 Thread clemens fischer
Micah Cowan wrote: > Right; I have no desire to sync a hg repo with cvs. However, my quilt > patches dir is itself a mercurial repo, so I never lose my patches. So you have "no desire to sync a hg repo with cvs", how prude ;-) "Should there be men abreast with desire, let them sync with civilness

Re: terminal-overrides: proper terminfo entries?

2010-02-06 Thread clemens fischer
Micah Cowan wrote: > I think he's referring to the alternate buffer. I'm sorry: where is this "alternate buffer" implemented? Does it have to do with "input.c: * Enter alternative screen mode." and the "*saved_grid" pointer? Maybe I should try to add an option for switching it off, per window

Re: terminal-overrides: proper terminfo entries?

2010-02-06 Thread clemens fischer
Micah Cowan wrote: > I think he's referring to the alternate buffer. > > clemens, one way of working around that would be to simply suspend > less or vim (or whatever) with C-z, enter copy-mode and grab what you > want, then exit copy-mode and resume your app. Oh, I'm doing that all the time, bu

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

2010-02-06 Thread clemens fischer
Nicholas Marriott wrote: > Projects the size of tmux don't need branches. Is that why there are two repos, the OpenBSD and the portable one? (Couldn't resist ...) clemens -- The Planet: dedicated and managed hosting,

Re: bind -t cmd-with-args?

2010-02-06 Thread clemens fischer
Nicholas Marriott wrote: > Yes, so you could do 1 C-w or 1 y to copy into buffer 1 instead of 0. The vi meaning of this would be "copy one item": the prefix number says how many to handle. I'm not sure how much this difference hinders intuitive typing in vi modes. The double-quote designating

alternative git repo mirror (Re: "take-prompt" command in table "choice"?)

2010-02-06 Thread clemens fischer
Thomas Adam wrote: > You can always use: > > http://github.com/ThomasAdam/tmux > > Automatically synched hourly from SF.net Thanks, I wasn't aware of that. clemens -- The Planet: dedicated and managed hosting, cloud

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

2010-02-06 Thread clemens fischer
Nicholas Marriott wrote: >> cvs [update aborted]: connect to >> tmux.cvs.sourceforge.net(0.0.0.0):2401 failed: Connection refused > > Looks like you have DNS problems to me, nothing should resolve to > 0.0.0.0. Oh, I hadn't thought about this! That's easy to fix: should it happen again, I

terminal-overrides: proper terminfo entries?

2010-02-06 Thread clemens fischer
(using CVS HEAD from today on linux with urxvt-unicode) Hi, I have the following problems: - In "tin" (the ncurses newsreader) I had a black background with various colours on it, while the urxvt has a brownish background with light sand coloured text on it. With "screen", the background of

Re: How to checkout the latest source code

2010-02-06 Thread clemens fischer
Micah Cowan wrote: > 1. Check out OpenBSD CVS, as of a version that has already been > synched to SourceForge, and hasn't yet been changed since that synch. Sounds like a race. > 2. When I become aware of changes to OpenBSD CVS, I make a copy of the > current CVS working directory, update the

Re: list-keys shows wrong keys

2010-02-06 Thread clemens fischer
Frank Terbeck wrote: > clemens fischer wrote: > >> I found out that nils provos libevent is needed, this should be >> mentioned in the FAQ for the dev version. > > It's in the NOTES file. You just need to read it. :) Right. I somehow expect this info to be in

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

2010-02-06 Thread clemens fischer
Nicholas Marriott wrote: > On Fri, Feb 05, 2010 at 12:55:22AM +0100, clemens fischer wrote: > You want a -p option to confirm-before, I guess and the ability to > insert the prompt text, which would be nice for both. I've got a better idea, I hope. Change the syntax of the

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

2010-02-04 Thread clemens fischer
Nicholas Marriott wrote: > On Thu, Feb 04, 2010 at 08:53:39PM +0100, clemens fischer wrote: > >> can tmux be given a command "take-prompt" for the *choice tables? >> I wanted to make a mapping to list the various mappings, thus: >> >> bind 'h&#x

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

2010-02-04 Thread clemens fischer
Hi, can tmux be given a command "take-prompt" for the *choice tables? I wanted to make a mapping to list the various mappings, thus: bind 'h' command-prompt \ -p vi-edit,emacs-edit,vi-choice,emacs-choice,vi-copy,emacs-copy \ "list-keys -t '%%'" (all one one line). I wanted it to insert th

Re: list-keys shows wrong keys

2010-02-04 Thread clemens fischer
Micah Cowan wrote: > You can get there on the SourceForge project page, and hit the "devel" > tab: http://sourceforge.net/projects/tmux/devel/. http://sourceforge.net/projects/tmux/devel/ is a 404, but http://sourceforge.net/scm/?type=cvs&group_id=200378 isn't. It's reachable through devel. I j

Re: list-keys shows wrong keys

2010-02-04 Thread clemens fischer
Nicholas Marriott wrote: > Ah, sorry, I missed that. Can you try HEAD? I think I fixed a bug like > this recently. Right, HEAD, the portable version from sourceforge, lists all keys with their proper mapped keys. Please don't forget to list provos' libevent as a dependency somewhere _visible_.

Re: bind -t cmd-with-args?

2010-02-04 Thread clemens fischer
Micah Cowan wrote: > Except that he was originally talking about binding a key in the > vi-copy table, so maybe he does. > > He may know it better as "normal" mode, which is what I more usually > hear it called (at least in vim documentaiton). I'm not sure, but > I think "command" mode may refer

Re: list-keys shows wrong keys

2010-02-04 Thread clemens fischer
Nicholas Marriott wrote: > Ah, sorry, I missed that. Can you try HEAD? I think I fixed a bug like > this recently. I've been meaning to find the repo all along. Can somebody please tell me where to find it, the URI isn't mentioned anywhere I looked 8-( clemens (call me "The Uninformed One")

Re: bind -t cmd-with-args?

2010-02-03 Thread clemens fischer
Ankur Nayak wrote: > A related question. Is it possible to copy buffers to specific > registers, just as one can do in vim? That looks easy, and it's in the manual: copy-buffer [-a src-index] [-b dst-index] [-s src-session] [-t dst-session] (alias: copyb) Copy a session paste buffer to ano

Re: list-keys shows wrong keys

2010-02-03 Thread clemens fischer
Nicholas Marriott wrote: > On Wed, Feb 03, 2010 at 09:51:09PM +0100, clemens fischer wrote: >> Hi, >> >> tmux version is 1.1, 'uname -rms' -> Linux 2.6.32.7-spott i686 >> >> $ tmux list-keys >>... >>o: send-keys l o g i n

Re: bind -t cmd-with-args?

2010-02-03 Thread clemens fischer
Nicholas Marriott wrote: > On Wed, Feb 03, 2010 at 09:43:22PM +0100, clemens fischer wrote: >> Did you mean I should use either: >> >> bind-key > save-buffer /home/ino/hardcopy.txt >> >> or >> >> bind-key -c > save-buffer /home/ino/hard

Re: bind -t cmd-with-args?

2010-02-03 Thread clemens fischer
Nicholas Marriott wrote: > The commands used for modes are a completely separate namespace than > standard commands and there is no command for saving the buffer. > > You can just bind it to a prefixed key then do use that as normal > inside copy mode (ie with the prefix). > > -c is to bind a key

list-keys shows wrong keys

2010-02-03 Thread clemens fischer
Hi, tmux version is 1.1, 'uname -rms' -> Linux 2.6.32.7-spott i686 $ tmux list-keys ... o: send-keys l o g i n Space - p Space - f Space i n o ... g: send-keys i n o - n e w s @ s p o t t e s w o o d e . d n s a l i a s . o r g ... g: send-keys s p o t t

Re: [Patch] vi-copy word-movement improvements

2010-02-03 Thread clemens fischer
On Mon-2010/01/25-22:53 Micah Cowan wrote: > Nicholas Marriott wrote: >> I'd make this something like enum window_copy_search_mode, >> WINDOW_COPY_WORDSTART, WINDOW_COPY_WORDEND. > > OOC, why do you bother with such namespaces in locally-scoped > definitions? I like Nicholas' code very much, it

bind -t cmd-with-args?

2010-02-03 Thread clemens fischer
I am trying to to bind a command in table vi-copy that saves (possibly part of) a buffer to some file: bind-key -c -t vi-copy > save-buffer /home/ino/hardcopy.txt tmux answers: usage: bind-key [-cnr] [-t key-table] key command [arguments] at line ... I'm not even sure wheather I need the "-