Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    ScrumpyJack
    @ScrumpyJack
    aha, you need to create the panes then run select-layout?
    i thought select-layout would create the panes
    Got it
    so if i have 5 panes, i need to create them with tmuxinator first right?
    Pete Doherty
    @ethagnawl
    right
    ScrumpyJack
    @ScrumpyJack
    do i need to put panes before or after layout?
       - email:
          panes:
            - echo zero
            - echo one
            - echo two
            - echo three
            - echo four
          layout: '3e70,272x81,0,0{166x81,0,0,0,105x81,167,0[105x20,167,0{52x20,167,0,1,52x20,220,0,4},105x29,167,21,3,105x30,167,51,2]}’
    Pete Doherty
    @ethagnawl
    that shouldn't matter. try removing the single quotes around your layout value, though.
    ScrumpyJack
    @ScrumpyJack
    With the quotes, the panes are resized but don’t match my layout when i ran list-windows.
    Without the quotes the panes are created but without being resized.
    running tmux, opening 5 vertically split panes and running select-layout with the above layout value works fine
    Pete Doherty
    @ethagnawl
    unfortunately, i have to jump off. when i try to use a config based on the above, i get the following:
    tmuxinator 0.11.3, tmux 2.7, gnome terminal, debian 9.4
    ScrumpyJack
    @ScrumpyJack
    yes, i get the same when running tmuxinator
    but just with tmux and that layout string, i get this (three screenshots showing what i’m doing)
    Pete Doherty
    @ethagnawl
    @ScrumpyJack I see what you're saying. There must be something weird happening as a result of tmuxinator usage of tmux's split-window when creating the desired layout. (This has cropped up in other issues.) Here's a script which emulates how tmuxinator handles your config file: https://gist.github.com/ethagnawl/00c7e13c66ab9a5c20a27202a5df0752 I'd suggest we both try poking at it (changing the flags passed to split-window, etc.) to see if it's possible to achieve what you're creating manually.
    Jarrett Drouillard
    @kuatsure
    question ... so I know that pre_window is a thing ... and I was hoping pre_pane was too, but it looks like it's not ... and I had to resort to pre on the specific window portion of the yaml ... am I missing something?
    and I know pre is deprecated ( or is going to be )
    each of my windows deals with js or ruby ( one window is the front end, while a second window is the back ) so I'd be doing rvm use; nvm use; on the pre_window which I guess isn't terrible, but was curious if there was a better way of doing things
    Harsh Khajuria
    @horcrux2301
    Hey does anyone face any issues in NerdTree when using vim with tmuxinator?
    NerdTree renders weirdly and takes only half of the screen.
    ScrumpyJack
    @ScrumpyJack
    nope, NerdTree in vim in tmux works fine here
    ScrumpyJack
    @ScrumpyJack
    can i set per session options with tmuxinator? like load tmux1.conf in session1 and tmux2.conf in sessions2?
    it might be worth adding a readme entry for this option
    ScrumpyJack
    @ScrumpyJack
    can i have one project open several sessions, each with a different tux.conf file?
    Pete Doherty
    @ethagnawl
    no. i think the only way to do this at the moment would be to create one project config file which uses tmux_options: -f ~/.tmux1.conf, copy it and update the name (manually or using tmuxinator copy ...) and update the new config's tmux_options accordingly.
    ScrumpyJack
    @ScrumpyJack
    so just to be clear, one project = one session?
    Pete Doherty
    @ethagnawl
    actually. you can use the -n flag to start a different session using the same project config file. so, you should be able to use ERB in your tmuxinator config file to dynamically set tmux_options. something like, tmuxinator start -n config-1 project ~/.tmux1.conf and https://gist.github.com/ethagnawl/347b3377dc744fcf417c4711fc7a552b
    Pete Doherty
    @ethagnawl
    @ScrumpyJack any luck?
    ScrumpyJack
    @ScrumpyJack
    haven’t been able to try yet
    Pete Doherty
    @ethagnawl
    would anyone with wemux experience mind reviewing this PR and/or pulling that branch and verifying that everything works as expected? tmuxinator/tmuxinator#590
    ScrumpyJack
    @ScrumpyJack
    how can i use tmuxinator with tmate?
    ScrumpyJack
    @ScrumpyJack
    or even wemux
    Jacobo de Vera
    @jdevera
    Can I specify a window specific root and then a set of commands without adding panes? I only want one single pane but want to specify a different root than the global one.
    Mikhail Mirzoyan
    @Seybo
    image.png

    hi guys. I have ten different apps where i use tmuxinator and all is good but the last one has a weird problem: it seems to run commands before the panes are actually loaded. I think a screenshot above would explain better (vim and tig are commands from my tmux config)

    and this is the config

    ---
    name: rumbl
    root: /mnt/dev/elixir/phoenix/rumbl
    startup_window: code
    
    windows:
      - server:
          layout: 46ac,146x39,0,0[146x33,0,0,3,146x5,0,34,9]
          panes:
            - iex -S mix phx.server
            -
    
      - code:
          layout: 46ac,146x39,0,0[146x33,0,0,3,146x5,0,34,9]
          panes:
            - vim
            - tig
    
      - misc:
          layout: 979d,158x39,0,0[159x31,0,0{116x31,0,0,4,42x31,117,0,11},159x8,0,32,12]
          panes:
            -
            -
    Pete Doherty
    @ethagnawl
    @Seybo That's odd. Have you been able to reduce your config down to a minimal subset that reproduces that issue (i.e. does that issue still present itself when there's only one window)? Is there anything that your environment is doing based on that directory or some files within it (e.g. automatically loading a virtualenv or something)?
    Mikhail Mirzoyan
    @Seybo
    nope. This minimal config doesn't work already
    image.png
    but this one works...
    image.png
    Pete Doherty
    @ethagnawl
    So, it looks like iex is causing the problem. Do you have any idea how that works in terms of going to background, forking, etc.?
    Mikhail Mirzoyan
    @Seybo
    nope. Doesn't look like iex is the problem
    image.png
    Jonathan Arnett
    @J3RN
    @Seybo Out of curiosity, what shell are you using?
    Slawek Laskowski
    @slawek-survicate
    Hi i need help, tmuxinator wont run command i the first pane:
    config:
    project_name: test
    
    windows:
      - editor:
          layout: main-vertical
          panes:
            - echo 1
            - echo 2
            - echo 3
    4 replies
    Nomas Prime
    @nomasprime

    Hi, have a general tmux question.

    Does anyone know why bind-key M-R confirm-before -p "rename-window #{b:pane_current_path}? (y/n)" "rename-window #{b:pane_current_path}” doesn’t work?

    rename-window doesn’t seem to receive pane_current_path.

    Pete Doherty
    @ethagnawl
    Hey, all. I need to step down or, at the very least, step back from being the primary maintainer of this project. It's been a great ride, but between family, work, etc. I just don't have the time to keep up with bug reports, releases, etc. I don't want to cut and run, so it'd be good to coordinate -- even very loosely -- with some others (current maintainers or new ones) who are willing to pick up the slack. Feel free to respond inline here, DM me or contact me out of band using the info in my GitHub profile.