Skip to content

Conversation

@dankrause
Copy link
Contributor

Added a session argument to Window.move_window, and supplied a default empty string argument to the destination arg.

This allows you to pass a session ID to Window.move_window, which will cause the window to change sessions.

I've also updated the tests to include explicit coverage for Window.move_window (with and without session moving) and Server.new_session.

@codecov-io
Copy link

codecov-io commented Jul 13, 2016

Current coverage is 77.65%

Merging #10 into master will increase coverage by 0.40%

@@             master        #10   diff @@
==========================================
  Files             8          8          
  Lines           791        792     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            611        615     +4   
+ Misses          180        177     -3   
  Partials          0          0          

Powered by Codecov. Last updated by 6eba224...08b57b3

:type target_window: string
to, default: empty string
:type destination: string
:param session: the ``target sesion`` or index to move the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@dankrause
Copy link
Contributor Author

Typo corrected

@tony tony merged commit 81c7a84 into tmux-python:master Jul 15, 2016
@tony
Copy link
Member

tony commented Jul 15, 2016

Looks good to me.

Do you need this in a project you're working on? I can bump the version on pypi if you want.

@dankrause
Copy link
Contributor Author

No need to bump the pypi version for this small change. It can wait for a release.

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.

3 participants