Git Product home page Git Product logo

Comments (11)

gpakosz avatar gpakosz commented on May 9, 2024

Hello @amosbird, thanks for the report.

Can you please try whether the fix-maximize_pane branch fixes it for you?

from .tmux.

amosbird avatar amosbird commented on May 9, 2024

@gpakosz I get cut -c3- ~/.tmux.conf | sh -s _maximize_pane 1 %9' returned 1 when toggling maximize_pane while there is one existing in another session.

from .tmux.

gpakosz avatar gpakosz commented on May 9, 2024

I'll give it another try tonight. Can you please tell me which version of tmux you're using? and which OS?

from .tmux.

amosbird avatar amosbird commented on May 9, 2024

@gpakosz I use the nearly latest tmux tmux 2.4.

from .tmux.

gpakosz avatar gpakosz commented on May 9, 2024

I confirm I can reproduce with tmux 2.4 but at that point I didn't investigate what changes between 2.3 and 2.4.

from .tmux.

gpakosz avatar gpakosz commented on May 9, 2024

I forced pushed the fix-maximize_pane branch. Can you please give it another try?

from .tmux.

amosbird avatar amosbird commented on May 9, 2024

It works as expected. Thanks :-) . BTW, what is the correct way to override key bindings? I'd like to do this,

bind 3 split-window -v
bind 2 split-window -h
bind 1 toggle_maximize_pane

Currently I override them directly in .tmux.conf which may not be a good choice for future upgrade.

from .tmux.

gpakosz avatar gpakosz commented on May 9, 2024

Just move that at the end of your ~/.tmux.conf.local copy, there's a dedicated section for overrides.

You will need something like the following though:

bind 1 run "cut -c3- ~/.tmux.conf | sh -s _maximize_pane #{session_name} #D"

from .tmux.

gpakosz avatar gpakosz commented on May 9, 2024

See this comment for a detailed explanation of the cut -c3- ~/.tmux.conf | sh -s thing.

from .tmux.

amosbird avatar amosbird commented on May 9, 2024

yeah, i know. That's why I feel a bit weird. split-window may also need options for directory settings and maybe ssh sessions. I wonder if it could be more user friendly. e.g. We could define a set of functions for overriding.

from .tmux.

gpakosz avatar gpakosz commented on May 9, 2024

Well I'll first close this PR with the fix then I'll think about further customization.

from .tmux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.