{"id":22120113,"url":"https://github.com/maxpleaner/paned_repl","last_synced_at":"2025-03-24T06:26:19.642Z","repository":{"id":56887345,"uuid":"77756849","full_name":"MaxPleaner/paned_repl","owner":"MaxPleaner","description":"          A TMux wrapper for dynamic multiplexing in a REPL.","archived":false,"fork":false,"pushed_at":"2017-02-19T05:15:02.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T02:25:24.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/paned_repl","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaxPleaner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-31T21:39:45.000Z","updated_at":"2017-01-03T16:35:06.000Z","dependencies_parsed_at":"2022-08-21T00:50:45.136Z","dependency_job_id":null,"html_url":"https://github.com/MaxPleaner/paned_repl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxPleaner%2Fpaned_repl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxPleaner%2Fpaned_repl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxPleaner%2Fpaned_repl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxPleaner%2Fpaned_repl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxPleaner","download_url":"https://codeload.github.com/MaxPleaner/paned_repl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245219931,"owners_count":20579669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T14:20:51.392Z","updated_at":"2025-03-24T06:26:19.596Z","avatar_url":"https://github.com/MaxPleaner.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Installation**\n\nTo launch a REPL (using Pry), first do this in Bash:\n\n```sh\ngem install paned_repl\npaned_repl init\nsh paned_repl.sh\n```\n**Usage**\n\ninside the REPL, require whatever programs you need.\n\nThere is a Ruby wrapper over TMux commands. For example:\n\n```rb\n# the 'main pane' receives tmux commands\n# this refers to a root Tmux session that is automatically created.\n# launching subsequent Tmux sessions is not implemented\nsession = PanelRepl.sessions.values.first\n\n# create a new pane, but maintain focus on main frame.\n# swaps positions so the main pane is always last\nsession.split_horizontal\n\n# make the panes equal size\nsession.even_horizontal\n\nnew_pane_id = 0 # There are 2 total panes, and the main pane is always the last\n                # Therefore (with 0-indexing) the new pane has an id of 0.\n                # When a new pane is added, it always has the index of 0 and all other indexes\n                # need to be incremented by one..\n\nsession.send_keys \"echo hello\", new_pane_id\n```\n\nThere is intended to be one pane that handles direct user input. The other panes just receive commands through `send_keys`.\n\nSee [./lib/paned_repl/tmux.rb](lib/paned_repl/tmux.rb) for more commands that can be used. \n\nThe generated `paned_repl.sh` script can be customized to run commands when the repl begins.\n\nGif:\n\n[![asciicast](https://asciinema.org/a/0j2kffw5oj66hf6u08hnx7872.png)](https://asciinema.org/a/0j2kffw5oj66hf6u08hnx7872)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxpleaner%2Fpaned_repl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxpleaner%2Fpaned_repl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxpleaner%2Fpaned_repl/lists"}