| Name | iterm-pane-spliter JSON |
| Version |
0.0.2
JSON |
| download |
| home_page | None |
| Summary | Split iTerm2 panes from the command line |
| upload_time | 2023-09-12 13:52:00 |
| maintainer | None |
| docs_url | None |
| author | Raz Luvaton |
| requires_python | >=3.8.1 |
| license | None |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
iterm2
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# Split iterm panes by user defined structure
> TODO - publish to pypi, until published, use `python3 main.py` instead of `iterm-pane-spliter`
Split iterm panes by user defined structure from the command line.
## Usage
```bash
pip3 install -r requirements.txt
python3 main.py <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
```json
[
[1, 2]
]
```
so you will need to run:
```bash
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
```json
[
[1],
[2]
]
```
so you will need to run:
```bash
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:
```json
[
[1, 1, 1, 2]
]
```
so you will need to run:
```bash
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:
```json
[
[1, 2],
[3, 4]
]
```
so you will need to run:
```bash
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:
```json
[
[1, 1, 5],
[2, 7, 5],
[2, 7, 3],
[2, 8, 6],
[4, 4, 4]
]
```
so you will need to run:
```bash
iterm-pane-spliter "[[1, 1, 5], [2, 7, 5], [2, 7, 3], [2, 8, 6], [4, 4, 4]]"
```
Raw data
{
"_id": null,
"home_page": null,
"name": "iterm-pane-spliter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8.1",
"maintainer_email": null,
"keywords": null,
"author": "Raz Luvaton",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/8c/d5/be9e211ebee2e4e9c0fafd9e05b7fb686068fb4018bd2893bbea20e7f88b/iterm_pane_spliter-0.0.2.tar.gz",
"platform": null,
"description": "# Split iterm panes by user defined structure\n\n> TODO - publish to pypi, until published, use `python3 main.py` instead of `iterm-pane-spliter`\n\nSplit iterm panes by user defined structure from the command line.\n\n## Usage\n```bash\npip3 install -r requirements.txt\npython3 main.py <json-structure>\n```\n\nthe 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.\n\nthe more values of the same number in the matrix, the bigger the pane will be.\n\n## Examples\n\n### 2 panes vertically split\nFor this:\n```\n-------------------\n| | |\n| | |\n| 1 | 2 |\n| | |\n| | |\n-------------------\n```\n\nthe json structure you should provide is:\n> Tip: just add more numbers to add more vertical panes\n```json\n[\n [1, 2]\n]\n```\n\nso you will need to run:\n```bash\niterm-pane-spliter \"[[1, 2]]\"\n```\n\n### 2 panes horizontally split\nFor this:\n```\n-------------------\n| |\n| 1 |\n| |\n-------------------\n| |\n| 2 |\n| |\n-------------------\n```\n\nthe json structure you should provide is:\n> Tip: just add more single value arrays to add more horizontal panes\n```json\n[\n [1],\n [2]\n]\n```\n\nso you will need to run:\n```bash\niterm-pane-spliter \"[[1], [2]]\"\n```\n\n### 2 panes vertically split 1 is bigger than 2\nFor this:\n```\n-------------------\n| | |\n| | |\n| 1 | 2 |\n| | |\n| | |\n-------------------\n```\n\nthe json structure you should provide is:\n```json\n[\n [1, 1, 1, 2]\n]\n```\n\nso you will need to run:\n```bash\niterm-pane-spliter \"[[1, 1, 1, 2]]\"\n```\n\n\n\n\n### split to 4 equal panes\nFor this:\n```\n-------------------\n| | |\n| 1 | 2 |\n| | |\n-------------------\n| | |\n| 3 | 4 |\n| | |\n-------------------\n```\n\nthe json structure you should provide is:\n```json\n[\n [1, 2],\n [3, 4]\n]\n```\n\nso you will need to run:\n```bash\niterm-pane-spliter \"[[1, 2], [3, 4]]\"\n```\n\n\n### Some crazy structure\n```\n-------------------\n| 1 | |\n| --------- | 5 |\n| | | |\n| | 7 | --- |\n| 2 | | 3 |\n| | --- | --- |\n| | 8 | 6 |\n| --- | --- | --- |\n| 4 |\n-------------------\n```\n\nthe json structure you should provide is:\n```json\n[\n [1, 1, 5],\n [2, 7, 5],\n [2, 7, 3],\n [2, 8, 6],\n [4, 4, 4]\n]\n```\n\nso you will need to run:\n```bash\niterm-pane-spliter \"[[1, 1, 5], [2, 7, 5], [2, 7, 3], [2, 8, 6], [4, 4, 4]]\"\n```\n\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Split iTerm2 panes from the command line",
"version": "0.0.2",
"project_urls": {
"Documentation": "https://github.com/rluvaton/iterm-pane-spliter/tree/main/README.md",
"Source": "https://github.com/rluvaton/iterm-pane-spliter",
"Tracker": "https://github.com/rluvaton/iterm-pane-spliter/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f54cb915a9f8be168e84fbfa1cf8370f3a4e6b08d9f9c6e1d176e06d7d6cbc4f",
"md5": "86d146f6d11c6001a5a4b85883b9bc79",
"sha256": "d397643c1cd478fd1509e33d90a3d92fc1e8d4572b974229b271761b03e66a72"
},
"downloads": -1,
"filename": "iterm_pane_spliter-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "86d146f6d11c6001a5a4b85883b9bc79",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.1",
"size": 8784,
"upload_time": "2023-09-12T13:51:58",
"upload_time_iso_8601": "2023-09-12T13:51:58.910519Z",
"url": "https://files.pythonhosted.org/packages/f5/4c/b915a9f8be168e84fbfa1cf8370f3a4e6b08d9f9c6e1d176e06d7d6cbc4f/iterm_pane_spliter-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8cd5be9e211ebee2e4e9c0fafd9e05b7fb686068fb4018bd2893bbea20e7f88b",
"md5": "22535a4bfc971d7cb9f2bdf22a69fdf9",
"sha256": "499f171927aa92f7dbdcc1cb959c932031bab457c7fbaacbaa7708929952aa67"
},
"downloads": -1,
"filename": "iterm_pane_spliter-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "22535a4bfc971d7cb9f2bdf22a69fdf9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.1",
"size": 10677,
"upload_time": "2023-09-12T13:52:00",
"upload_time_iso_8601": "2023-09-12T13:52:00.026976Z",
"url": "https://files.pythonhosted.org/packages/8c/d5/be9e211ebee2e4e9c0fafd9e05b7fb686068fb4018bd2893bbea20e7f88b/iterm_pane_spliter-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-12 13:52:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rluvaton",
"github_project": "iterm-pane-spliter",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "iterm2",
"specs": [
[
"~=",
"2.7"
]
]
}
],
"lcname": "iterm-pane-spliter"
}