You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

iterm-pane-spliter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iterm-pane-spliter

Split iTerm2 panes from the command line


Maintainers
1

Readme

Split iterm panes by user defined structure

Split iterm panes by user defined structure from the command line.

Usage

pip3 install iterm-pane-spliter
iterm-pane-spliter <json-structure>

the structure is a json Matrix, where each value is a different pane, the number of panes is the number of different values in the matrix.

the more values of the same number in the matrix, the bigger the pane will be.

Examples

2 panes vertically split

For this:

-------------------
|        |        |
|        |        |
|   1    |    2   |
|        |        |
|        |        |
-------------------

the json structure you should provide is:

Tip: just add more numbers to add more vertical panes

[
  [1, 2]
]

so you will need to run:

iterm-pane-spliter "[[1, 2]]"

2 panes horizontally split

For this:

-------------------
|                 |
|       1         |
|                 |
-------------------
|                 |
|       2         |
|                 |
-------------------

the json structure you should provide is:

Tip: just add more single value arrays to add more horizontal panes

[
  [1],
  [2]
]

so you will need to run:

iterm-pane-spliter "[[1], [2]]"

2 panes vertically split 1 is bigger than 2

For this:

-------------------
|           |     |
|           |     |
|     1     |  2  |
|           |     |
|           |     |
-------------------

the json structure you should provide is:

[
  [1, 1, 1, 2]
]

so you will need to run:

iterm-pane-spliter "[[1, 1, 1, 2]]"

split to 4 equal panes

For this:

-------------------
|        |        |
|    1   |   2    |
|        |        |
-------------------
|        |        |
|    3   |   4    |
|        |        |
-------------------

the json structure you should provide is:

[
  [1, 2],
  [3, 4]
]

so you will need to run:

iterm-pane-spliter "[[1, 2], [3, 4]]"

Some crazy structure

-------------------
|     1     |     |
| --------- |  5  |
|     |     |     |
|     |  7  | --- |
|  2  |     |  3   |
|     | --- | --- |
|     |  8  |  6  |
| --- | --- | --- |
|        4        |
-------------------

the json structure you should provide is:

[
    [1, 1, 5],
    [2, 7, 5],
    [2, 7, 3],
    [2, 8, 6],
    [4, 4, 4]
]

so you will need to run:

iterm-pane-spliter "[[1, 1, 5], [2, 7, 5], [2, 7, 3], [2, 8, 6], [4, 4, 4]]"

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc