On 14/08/12 5:00 PM, Thomas Adam wrote: > On 14 August 2012 07:19, Stephen Thirlwall <s...@dr.com> 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] [template] > > Assuming my choose-list command goes in to tmux, which will provide > the ability to select arbitrary entries from any source, this command > can be scripted. Thus no need for new code.
Sounds good Thomas - I agree that this sort of functionality is better implemented outside of tmux where possible. I've had a poke around in your choose-list branch and have a few questions. 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 this. I can bind it to a key, but then the input list seems to be fixed at bind-time. Also, does tmux have commands to: 1) dump the contents (and history) of a pane? 2) find the string under the cursor in a given pane, or even just the position of the cursor (possibly as an index into the pane contents above) Steve ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users