René's URL Explorer Experiment


Title: Add the ability to append windows to a session by will-ockmore · Pull Request #656 · tmux-python/tmuxp · GitHub

Open Graph Title: Add the ability to append windows to a session by will-ockmore · Pull Request #656 · tmux-python/tmuxp

X Title: Add the ability to append windows to a session by will-ockmore · Pull Request #656 · tmux-python/tmuxp

Description: Based off of the work already submitted in #501. Unfortunately I wasn't able to rebase the commits cleanly as it was too far diverged from master. All credit for the idea and structure should go to @emanuelhfarias 👏 All I've added is a bit of code cleanup, and a bugfix regarding the behaviour of appending windows to a session when there is more than one attached. Quoted below is the original PR description: I see some people requesting this feature (me included) #289 #373 and some even tried to add this functionality #374 #407 but those ideas never went from draft. I decided to implement this feature maintaining the compatibility with features we already have (open attached and detached). The motivation to this feature is because I feel more productive seen everything I have opened as visible windows. I tried to use several sessions and switch-sessions using tmux shortcut C-b s but I didn't get use to it (maybe I will try again in the future). Summarizing what this PR adds: When you try to load a config file within a current open tmux session it will ask you if you want to: create a new session and attach? create a new session and detach? load config appending windows in the current active session? To maintain the compatibility I didn't change the question, I just added another option to the user. Already inside TMUX, switch to session? yes/no Or (a)ppend windows in the current active session? [y/n/a]: If you anwser: Yes it will attach No will detach Append will append windows in the same session I also added the ability to force append using the CLI: $ tmuxp load -a config My motivation is much the same - I like to use sessions to organise different groups of projects, and within those each project will use one or more windows. I find switching between windows more intuitive and prefer the extra organisation choices this method gives me!

Open Graph Description: Based off of the work already submitted in #501. Unfortunately I wasn't able to rebase the commits cleanly as it was too far diverged from master. All credit for the idea and structure should ...

X Description: Based off of the work already submitted in #501. Unfortunately I wasn't able to rebase the commits cleanly as it was too far diverged from master. All credit for the idea and structure sho...

Opengraph URL: https://github.com/tmux-python/tmuxp/pull/656

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d858ab93-bbc5-c100-71d3-1c5b2e9d39f0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAB1C:3139C0:54F895:71EF94:6B0090DE
html-safe-nonce160fa5bf7035f28eaa3461dac5c3c17fedf90e375f7e7fc4e1175672560133ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjFDOjMxMzlDMDo1NEY4OTU6NzFFRjk0OjZCMDA5MERFIiwidmlzaXRvcl9pZCI6IjIyNDk2MjMxNjQ3MDk1NDAwNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbf090f2288ebd8646cad4e2aa213f3e38fd93cdd17499726f23e8b3f04d98230
hovercard-subject-tagpull_request:549481615
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/tmux-python/tmuxp/pull/656/files
twitter:imagehttps://avatars.githubusercontent.com/u/13736156?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/13736156?s=400&v=4
og:image:altBased off of the work already submitted in #501. Unfortunately I wasn't able to rebase the commits cleanly as it was too far diverged from master. All credit for the idea and structure should ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/tmux-python/tmuxp git https://github.com/tmux-python/tmuxp.git
octolytics-dimension-user_id37234308
octolytics-dimension-user_logintmux-python
octolytics-dimension-repository_id12398170
octolytics-dimension-repository_nwotmux-python/tmuxp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id12398170
octolytics-dimension-repository_network_root_nwotmux-python/tmuxp
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/tmux-python/tmuxp/pull/656/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftmux-python%2Ftmuxp%2Fpull%2F656%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftmux-python%2Ftmuxp%2Fpull%2F656%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=tmux-python%2Ftmuxp
Reloadhttps://github.com/tmux-python/tmuxp/pull/656/files
Reloadhttps://github.com/tmux-python/tmuxp/pull/656/files
Reloadhttps://github.com/tmux-python/tmuxp/pull/656/files
tmux-pythonhttps://github.com/tmux-python
tmuxphttps://github.com/tmux-python/tmuxp
Codehttps://github.com/tmux-python/tmuxp
Issues113 (113)https://github.com/tmux-python/tmuxp/issues
Pull requests29 (29)https://github.com/tmux-python/tmuxp/pulls
Discussionshttps://github.com/tmux-python/tmuxp/discussions
Actionshttps://github.com/tmux-python/tmuxp/actions
Security and qualityhttps://github.com/tmux-python/tmuxp/security
Insightshttps://github.com/tmux-python/tmuxp/insights
Sign up for GitHub https://github.com/signup?return_to=%2Ftmux-python%2Ftmuxp%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftmux-python%2Ftmuxp%2Fissues%2Fnew%2Fchoose
will-ockmorehttps://github.com/will-ockmore
tmux-python:masterhttps://github.com/tmux-python/tmuxp/tree/master
will-ockmore:append-window-same-sessionhttps://github.com/will-ockmore/tmuxp/tree/append-window-same-session
Conversation 14 https://github.com/tmux-python/tmuxp/pull/656
Commits 6 https://github.com/tmux-python/tmuxp/pull/656/commits
Checks 0 https://github.com/tmux-python/tmuxp/pull/656/checks
Files changed https://github.com/tmux-python/tmuxp/pull/656/files
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/656/files
Add the ability to append windows to a session https://github.com/tmux-python/tmuxp/pull/656/files#top
Show all changes 6 commits https://github.com/tmux-python/tmuxp/pull/656/files
e921483 add the ability to append windows to a session will-ockmore Jan 5, 2021 https://github.com/tmux-python/tmuxp/pull/656/commits/e9214838dd8f5ef5e0f5eb58bff79fa8e626d1ad
99aaf53 increment minor version to 1.8.0 will-ockmore Jan 5, 2021 https://github.com/tmux-python/tmuxp/pull/656/commits/99aaf537197b8f652780cbbb16fb2090e448ecc5
45b7fa6 add tests for helper methods within cli will-ockmore Jan 6, 2021 https://github.com/tmux-python/tmuxp/pull/656/commits/45b7fa635c71ef06cb13cd61c51c371047baa2e0
186e682 add test for find_current_active_pane on workspace builder will-ockmore Jan 6, 2021 https://github.com/tmux-python/tmuxp/pull/656/commits/186e68232af0256d76fda025c404e11ffb9825b2
07b8e43 import mock package correctly under 2.7 will-ockmore Jan 6, 2021 https://github.com/tmux-python/tmuxp/pull/656/commits/07b8e431c44eb105f91cce43a90cb98c98a79c78
0660049 Merge branch 'master' into append-window-same-session tony Jan 7, 2021 https://github.com/tmux-python/tmuxp/pull/656/commits/066004947e38a90c84ab8bc5c60d1b784833a891
Clear filters https://github.com/tmux-python/tmuxp/pull/656/files
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/656/files
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/656/files
cli.rst https://github.com/tmux-python/tmuxp/pull/656/files#diff-c2a3f968b7ac8d84c3935f76af3a93c094b3c5c068777c4cd2548789b9a8d417
quickstart.rst https://github.com/tmux-python/tmuxp/pull/656/files#diff-c9a9d6773bfb8f6a209256e8f1dc00db3eca97be188d9541607f55ca4f9744d1
three_windows.yaml https://github.com/tmux-python/tmuxp/pull/656/files#diff-6ce8bab47821ede64183af20bc7b551435d227bf6e413b357480db1932187145
two_windows.yaml https://github.com/tmux-python/tmuxp/pull/656/files#diff-0ea1398f1c4e9362af727e84a631f7c52b50e0b33dd4a1fbb1f7f2984f562257
test_cli.py https://github.com/tmux-python/tmuxp/pull/656/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
test_workspacebuilder.py https://github.com/tmux-python/tmuxp/pull/656/files#diff-3e48381360600bc6bc310f9ede3e4f8cc1af7d8b3db57587c893686e250966da
cli.py https://github.com/tmux-python/tmuxp/pull/656/files#diff-4d7d7e5291d4e3b3a36d7f47b46db0eea18d2e4fc18a85d525ec22260293fd0d
workspacebuilder.py https://github.com/tmux-python/tmuxp/pull/656/files#diff-9316655a97cbe443559ee45c1b1fa26bfa86e314210653806ce215702a956931
docs/cli.rsthttps://github.com/tmux-python/tmuxp/pull/656/files#diff-c2a3f968b7ac8d84c3935f76af3a93c094b3c5c068777c4cd2548789b9a8d417
View file https://github.com/will-ockmore/tmuxp/blob/066004947e38a90c84ab8bc5c60d1b784833a891/docs/cli.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/tmux-python/tmuxp/pull/656/{{ revealButtonHref }}
https://github.com/tmux-python/tmuxp/pull/656/files#diff-c2a3f968b7ac8d84c3935f76af3a93c094b3c5c068777c4cd2548789b9a8d417
tonyhttps://github.com/tony
Jan 7, 2021https://github.com/tmux-python/tmuxp/pull/656/files#r553059019
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/656/files
tonyhttps://github.com/tony
Jan 7, 2021https://github.com/tmux-python/tmuxp/pull/656/files#r553059729
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/656/files
https://github.com/tmux-python/tmuxp/pull/656/files#diff-c2a3f968b7ac8d84c3935f76af3a93c094b3c5c068777c4cd2548789b9a8d417
docs/quickstart.rsthttps://github.com/tmux-python/tmuxp/pull/656/files#diff-c9a9d6773bfb8f6a209256e8f1dc00db3eca97be188d9541607f55ca4f9744d1
View file https://github.com/will-ockmore/tmuxp/blob/066004947e38a90c84ab8bc5c60d1b784833a891/docs/quickstart.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/tmux-python/tmuxp/pull/656/{{ revealButtonHref }}
https://github.com/tmux-python/tmuxp/pull/656/files#diff-c9a9d6773bfb8f6a209256e8f1dc00db3eca97be188d9541607f55ca4f9744d1
https://github.com/tmux-python/tmuxp/pull/656/files#diff-c9a9d6773bfb8f6a209256e8f1dc00db3eca97be188d9541607f55ca4f9744d1
tests/fixtures/workspacebuilder/three_windows.yamlhttps://github.com/tmux-python/tmuxp/pull/656/files#diff-6ce8bab47821ede64183af20bc7b551435d227bf6e413b357480db1932187145
View file https://github.com/will-ockmore/tmuxp/blob/066004947e38a90c84ab8bc5c60d1b784833a891/tests/fixtures/workspacebuilder/three_windows.yaml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/tmux-python/tmuxp/pull/656/{{ revealButtonHref }}
tests/fixtures/workspacebuilder/two_windows.yamlhttps://github.com/tmux-python/tmuxp/pull/656/files#diff-0ea1398f1c4e9362af727e84a631f7c52b50e0b33dd4a1fbb1f7f2984f562257
View file https://github.com/will-ockmore/tmuxp/blob/066004947e38a90c84ab8bc5c60d1b784833a891/tests/fixtures/workspacebuilder/two_windows.yaml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/tmux-python/tmuxp/pull/656/{{ revealButtonHref }}
tests/test_cli.pyhttps://github.com/tmux-python/tmuxp/pull/656/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
View file https://github.com/will-ockmore/tmuxp/blob/066004947e38a90c84ab8bc5c60d1b784833a891/tests/test_cli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/tmux-python/tmuxp/pull/656/{{ revealButtonHref }}
https://github.com/tmux-python/tmuxp/pull/656/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
https://github.com/tmux-python/tmuxp/pull/656/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
https://github.com/tmux-python/tmuxp/pull/656/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
https://github.com/tmux-python/tmuxp/pull/656/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
https://github.com/tmux-python/tmuxp/pull/656/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
tests/test_workspacebuilder.pyhttps://github.com/tmux-python/tmuxp/pull/656/files#diff-3e48381360600bc6bc310f9ede3e4f8cc1af7d8b3db57587c893686e250966da
View file https://github.com/will-ockmore/tmuxp/blob/066004947e38a90c84ab8bc5c60d1b784833a891/tests/test_workspacebuilder.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/tmux-python/tmuxp/pull/656/{{ revealButtonHref }}
https://github.com/tmux-python/tmuxp/pull/656/files#diff-3e48381360600bc6bc310f9ede3e4f8cc1af7d8b3db57587c893686e250966da
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/656/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.