Re: bash text substitution in tmux

2012-08-14 Thread Stephen Thirlwall
On 14/08/12 5:39 PM, Thomas Adam wrote: > On Tue, Aug 14, 2012 at 05:33:59PM +1000, Stephen Thirlwall wrote: >> Can the choose-list command be executed from the command-line? >> >> eg. tmux choose-list -l$( generate-list-somehow ) >> >> I only get a 'must be run interactively' message when I try th

Re: bash text substitution in tmux

2012-08-14 Thread Sinbad
On Tue, Aug 14, 2012 at 1:09 PM, Thomas Adam wrote: > On Tue, Aug 14, 2012 at 05:33:59PM +1000, Stephen Thirlwall wrote: > > On 14/08/12 5:00 PM, Thomas Adam wrote: > > > On 14 August 2012 07:19, Stephen Thirlwall wrote: > > >> On 14/08/12 10:41 AM, Stephen Thirlwall wrote: > > >>> [...] > > >>>

Re: bash text substitution in tmux

2012-08-14 Thread Thomas Adam
On Tue, Aug 14, 2012 at 05:33:59PM +1000, Stephen Thirlwall wrote: > On 14/08/12 5:00 PM, Thomas Adam wrote: > > On 14 August 2012 07:19, Stephen Thirlwall wrote: > >> On 14/08/12 10:41 AM, Stephen Thirlwall wrote: > >>> [...] > >>> I'd be happy to take a look at implementing this. > >> > >> (repl

Re: bash text substitution in tmux

2012-08-14 Thread Stephen Thirlwall
On 14/08/12 5:00 PM, Thomas Adam wrote: > On 14 August 2012 07:19, Stephen Thirlwall wrote: >> On 14/08/12 10:41 AM, Stephen Thirlwall wrote: >>> [...] >>> I'd be happy to take a look at implementing this. >> >> (replying to myself...) >> >> How about implementing this as a command? >> >>choos

Re: bash text substitution in tmux

2012-08-14 Thread Thomas Adam
On 14 August 2012 07:19, Stephen Thirlwall wrote: > On 14/08/12 10:41 AM, Stephen Thirlwall wrote: >>[...] >> I'd be happy to take a look at implementing this. > > (replying to myself...) > > How about implementing this as a command? > > choose-completion [-s source-window] [-t target-window] [t

Re: bash text substitution in tmux

2012-08-13 Thread Stephen Thirlwall
On 14/08/12 10:41 AM, Stephen Thirlwall wrote: >[...] > I'd be happy to take a look at implementing this. (replying to myself...) How about implementing this as a command? choose-completion [-s source-window] [-t target-window] [template] -s is the window to scrape the search-string from -t i

Re: bash text substitution in tmux

2012-08-13 Thread Stephen Thirlwall
On 13/08/12 8:27 PM, Sinbad wrote: > s it possible to enter text into a command by matching > the partial text in the command with the shell output just > like the autocomplete in vim using ctrl-p and ctrl-n. > > example: > > $some_cmd > some output > words more words > $out > $output > > i am not

bash text substitution in tmux

2012-08-13 Thread Sinbad
s it possible to enter text into a command by matching the partial text in the command with the shell output just like the autocomplete in vim using ctrl-p and ctrl-n. example: $some_cmd some output words more words $out $output i am not refferring to the command history, i want to be able to au