Hi

You could probably do it with send-keys?

If not the nicest thing to have would be a flag to enter copy mode and
pass in mode commands eg something like:

tmux copy-mode -C 'cursor-up,cursor-left,search-backward foo'



On Thu, Jan 10, 2013 at 02:04:21PM -0500, Alexander Tsepkov wrote:
>    Earlier today I wanted to write a tmux macro to go to the beginning of
>    last executed bash command (good for commands with long outputs). To do
>    so, I was going to have tmux enter copy-mode and search backwards for my
>    PS1 string. After looking through tmux man page, however, I realized there
>    is no command for searching in copy mode (or at least I couldn't find
>    one), just for entering it. I noticed that the only parameter copy-mode
>    has is -U to go up one page. I think it might be useful to have this
>    command support something like -f and -b arguments to search forwards and
>    backwards after entering copy mode. I'm not that familiar with tmux source
>    code, but don't mind taking a stab at this myself if you guys think this
>    would be a good idea (I don't think it would be too hard, the search
>    functionality is already there, it just needs to be exposed). If similar
>    feature is already there and I missed it, I apologize.

> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712

> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users


------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to