Skip to content

New command: tmuxp shell #636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Nov 1, 2020
Merged

New command: tmuxp shell #636

merged 20 commits into from
Nov 1, 2020

Conversation

tony
Copy link
Member

@tony tony commented Oct 31, 2020

Examples

tmuxp shell

tmuxp on  cli-command [] ❯ tmuxp shell
--Return--
> /home/t/work/python/tmuxp/tmuxp/cli.py(696)command_cli()->None
-> breakpoint()
(Pdb) server
<libtmux.server.Server object at 0x7f7dc8e69d10>
(Pdb) server.socket_name
(Pdb) server.sessions
[Session($1 tmuxp)]
(Pdb) session
Session($1 tmuxp)
(Pdb) session.name
'tmuxp'
(Pdb) window
Window(@3 1:tmuxp, Session($1 tmuxp))
(Pdb) window.name
'tmuxp'
(Pdb) window.panes
[Pane(%6 Window(@3 1:tmuxp, Session($1 tmuxp))), Pane(%7 Window(@3 1:tmuxp, Session($1 tmuxp))), Pane(%8 Window(@3 1:tmuxp, Session($1 tmuxp)))]

2020-10-31 11-09-23 - tmuxp cli

With python 3.7 + ipdb

PYTHONBREAKPOINT

pip install ipdb

env PYTHONBREAKPOINT=ipdb.set_trace tmuxp shell

tmuxp on  cli-command [] ❯ env PYTHONBREAKPOINT=ipdb.set_trace tmuxp shell
--Return--
None
> /home/t/work/python/tmuxp/tmuxp/cli.py(698)command_cli()
    697
--> 698     tmuxp_breakpoint()
    699

ipdb> server.socket_name
ipdb> server.socket_path
ipdb> server.sessions
[Session($1 tmuxp)]
ipdb> session
Session($1 tmuxp)
ipdb> session.name
'tmuxp'
ipdb> window.name
'tmuxp'
ipdb>

2020-10-31 11-14-11 - tmuxp cli - with ipdb

@codecov
Copy link

codecov bot commented Oct 31, 2020

Codecov Report

Merging #636 into master will decrease coverage by 0.82%.
The diff coverage is 64.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #636      +/-   ##
==========================================
- Coverage   77.95%   77.12%   -0.83%     
==========================================
  Files           6        6              
  Lines         830      883      +53     
  Branches      240      251      +11     
==========================================
+ Hits          647      681      +34     
- Misses        122      137      +15     
- Partials       61       65       +4     
Impacted Files Coverage Δ
tmuxp/cli.py 67.66% <64.81%> (-0.54%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ef9356...2cf24d5. Read the comment docs.

@tony tony force-pushed the cli-command branch 3 times, most recently from f4fd118 to cefd802 Compare October 31, 2020 21:15
@tony tony changed the title New command: tmuxp cli (drop into pdb with server and local session) New command: tmuxp shell Oct 31, 2020
@tony tony merged commit 0ca376f into master Nov 1, 2020
@tony tony deleted the cli-command branch November 1, 2020 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant