tmux 2: Productive Mouse-Free Development by Brian P. Hogan

tmux 2: Productive Mouse-Free Development by Brian P. Hogan

Author:Brian P. Hogan [Hogan, Brian P.]
Language: eng
Format: azw3, pdf
Tags: Pragmatic Bookshelf
Publisher: Pragmatic Bookshelf
Published: 2016-11-16T16:00:00+00:00


Targeting Specific Panes and Windows

With commands such as send-keys, you can specify not only the target session, but also the target window and pane. In the configuration file you created back in Chapter 2, ​Configuring tmux​, you specified a base-index of 1, meaning that your window numbering starts at 1. This base index doesn’t affect the panes, though, which is why you also set the pane-base-index to 1. In our case, we have two panes in our current setup, like the following example:

​ --------------------------

​ | |

​ | Pane 1 |

​ | |

​ --------------------------

​ | Pane 2 |

​ --------------------------

We have the Vim text editor open in Pane 1, and we want to send a command to Pane 2 that changes to our project directory. We target a pane using the format [session]:[window].[pane], so to target Pane 2, we’d use development:1.2. So, add this line to your script, and you’ll get exactly what you want:

​ tmux send-keys -t development:1.2 ​'cd ~/devproject'​ C-m

We’re almost there. Let’s finish up this configuration by adding a couple more windows to the session.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Salesforce Platform App Builder Certification Guide by Paul Goodey(1945)
Salesforce Advanced Administrator Certification Guide by Enrico Murru(1449)
Microsoft Power Platform Functional Consultant: PL-200 Exam Guide by Julian Sharp(1259)
Implementing Microsoft SharePoint 2019 by Lewin Wanzer and Angel Wood(1227)
Office 365 User Guide by Nikkia Carter(1161)
Scrivener for Dummies by Gwen Hernandez(581)
Advanced Excel Success by Alan Murray(545)
Automated Data Analysis Using Excel by Bissett Brian D.;(540)
Personal Finance in Your 20s & 30s For Dummies by Eric Tyson(516)
EXCEL 2021: Learn Excel Essentials Skill with Practical Exercises for Dummies by STRATVERT KEVIN(497)
Excel Dashboards and Reports for Dummies by Michael Alexander(487)
Excel 2019 All-In-One for Dummies by Harvey Greg;(482)
Basic SPSS Tutorial by Manfred te Grotenhuis & Anneke Matthijssen(471)
Tableau Desktop 10: Get up and running in a blaze with visual modular examples! by Jaxily(467)
Excel Bible for Beginners: Excel for Dummies Book Containing the Most Awesome Ready to use Excel VBA Macros by Suman Harjit(460)
Dashboarding and Reporting with Power Pivot and Excel: How to Design and Create a Financial Dashboard with PowerPivot – End to End by Kasper de Jonge(455)
Dashboarding and Reporting with Power Pivot and Excel by de Jonge Kasper(450)
Microsoft Office Access 2007 Step by Step by Steve Lambert & M. Lambert & Joan Lambert(447)
Excel 2007 Dashboards & Reports For Dummies by Michael Alexander(405)
Excel Bible for Beginners: Excel for Dummies Guide to the Best Excel Tools, Tips and Shortcuts you Must Know by Suman Harjit(404)