8000
  • Add percent arg to split window by jinankjain · Pull Request #234 · tmux-python/libtmux · GitHub
    [go: up one dir, main page]

    Skip to content

    Add percent arg to split window#234

    Merged
    tony merged 4 commits intotmux-python:masterfrom
    jinankjain:add_percent
    Oct 25, 2020
    Merged

    Add percent arg to split window#234
    tony merged 4 commits intotmux-python:masterfrom
    jinankjain:add_percent

    Conversation

    @jinankjain
    Copy link

    While spliting window tmux supports '-p' to specify the amount (in
    percentage) that the newly created pane will occupy with respect to
    current pane. So let's expose the same functionality by an extra
    argument percent to split_window function.

    Signed-off-by: Jinank Jain jinankj@amazon.de

    @codecov-io
    Copy link
    codecov-io commented Oct 8, 2019

    Codecov Report

    Merging #234 into master will decrease coverage by 0.04%.
    The diff coverage is 66.66%.

    Impacted file tree graph

    @@            Coverage Diff             @@
    ##           master     #234      +/-   ##
    ==========================================
    - Coverage   87.02%   86.97%   -0.05%     
    ==========================================
      Files          16       16              
      Lines        1526     1528       +2     
    ==========================================
    + Hits         1328     1329       +1     
    - Misses        198      199       +1     
    Impacted Files Coverage Δ
    libtmux/window.py 82.94% <50.00%> (-0.40%) ⬇️
    libtmux/pane.py 82.60% <100.00%> (ø)

    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 ce5e34c...f11d4f6. Read the comment docs.

    @jinankjain
    Copy link
    Author

    @tony any ideas on how we can test this feature?

    @tony
    Copy link
    Member
    tony commented Jul 3, 2020

    @jinankjain Hi there, sorry for the delay, can you rebase? Also, is it possible you could add tests as well?

    @tony
    Copy link
    Member
    tony commented Oct 24, 2020

    @jinankjain Hi there, can you rebase this?

    @jinankjain
    Copy link
    Author

    @tony Sorry for the late response was kind of busy with other stuff. I have rebased it.

    While spliting window tmux supports '-p' to specify the amount (in
    percentage) that the newly created pane will occupy with respect to
    current pane. So let's expose the same functionality by an extra
    argument percent to split_window function.
    
    Signed-off-by: Jinank Jain <jinankj@amazon.de>
    tony added 3 commits October 25, 2020 08:42
    It's unlikely a user would ever want to pass 0, but to remain true to
    what's passed in, allow this.
    @tony tony merged commit 7101c30 into tmux-python:master Oct 25, 2020
    @tony
    Copy link
    Member
    tony commented Oct 25, 2020

    @jinankjain Nicely done.

    Thanks for your contribution! This will be in the next release!

    @tony
    Copy link
    Member
    tony commented Oct 25, 2020

    @jinankjain Released in v0.8.4

    @jinankjain
    Copy link
    Author

    Thanks for merging it. :D

    @tony
    Copy link
    Member
    tony commented Oct 25, 2020

    Absolutely, and thank you!

    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

    0