Skip to main content

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]]"

Release files for iterm-pane-spliter 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iterm-pane-spliter 0.0.3
File Size Uploaded
iterm_pane_spliter-0.0.3.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iterm-pane-spliter 0.0.3
File Interpreter ABI Platform
iterm_pane_spliter-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / iterm_pane_spliter-0.0.3.tar.gz

Download URL iterm_pane_spliter-0.0.3.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
08122d493ad31f5cadb96992ae53a9596f6c6aff1f536a45ca2683e8266865f3
BLAKE2b-256 checksum
How to use checksums
0fa4b55598bf48cdc1f7f9404bfdae70faf0606891de9c57ab3296058b494e14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / iterm_pane_spliter-0.0.3-py3-none-any.whl

Download URL iterm_pane_spliter-0.0.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
502a4a22e30db7e25dc25205177b1ec4658ddfbd1458d926e213d55113726e2a
BLAKE2b-256 checksum
How to use checksums
d2231750ed08203053aa81e828308343f4d0f58fc385d7502cc8ff44fec2f14d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page