Why can't I resize my panes in tmux with the current bindings that I have?Shift-arrow not working in emacs...

Do any instruments not produce overtones?

Did thousands of women die every year due to illegal abortions before Roe v. Wade?

Payment instructions from HomeAway look fishy to me

Pushout commutative diagram

How do photons get into the eyes?

PostgreSQL - Array of overlapping Polygon Ids

Proof that shortest path with negative cycles is NP hard

Does an ice chest packed full of frozen food need ice?

Bent spoke design wheels — feasible?

How do I write "Show, Don't Tell" as a person with Asperger Syndrome?

Should I "tell" my exposition or give it through dialogue?

When conversion from Integer to Single may lose precision

Why don't B747s start takeoffs with full throttle?

How many times can you cast a card exiled by Release to the Wind?

What LISP compilers and interpreters were available for 8-bit machines?

After the loss of Challenger, why weren’t Galileo and Ulysses launched by Centaurs on expendable boosters?

How to end this song correctly?

Is the decompression of compressed and encrypted data without decryption also theoretically impossible?

How to retract the pitched idea from employer?

My coworkers think I had a long honeymoon. Actually I was diagnosed with cancer. How do I talk about it?

When writing an error prompt, should we end the sentence with a exclamation mark or a dot?

SF novella separating the dumb majority from the intelligent part of mankind

Is it possible for people to live in the eye of a permanent hypercane?

Where does this pattern of naming products come from?



Why can't I resize my panes in tmux with the current bindings that I have?


Shift-arrow not working in emacs within tmuxTmux Terminfo problem with Zsh key bindingsHow can I create a shortcut to resize panes in a tmux window?Tmux key-bind like to use the windows/super for my meta key in Tmux Without XHow do I re-map the changing pane keys in tmux?How to scroll while Holding Shift to copy in tmux?Execute a command after tmux split paneTMUX Ctrl and Shift KeysSelecting text in rxvt-unicode and tmux with mouse reporting disabledCan I ask Tmux to immediately exit copy mode and paste the content when you yank?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I was trying to set up my key binding in tmux so that I can resize my panes without having to type the whole command. Currently I have it set up as:



bind-key -n S-Left resize-pane -L 1
bind-key -n S-Right resize-pane -R 1
bind-key -n S-Up resize-pane -U 1
bind-key -n S-Down resize-pane -D 1


however, that does not work for some reason. When I press shift left with not prefix it does not work (since thats what -n and S do). Does someone know what might be going wrong? My whole .tmux.conf file is as follows:



# Force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf

#set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection

#unbind %
bind | split-window -h
bind - split-window -v

# remap prefix to Control + a
unbind C-b
set -g prefix C-a
bind a send-prefix

# copy mode using vi
set-window-option mode-keys vi

bind-key -n S-Left resize-pane -L 1
bind-key -n S-Right resize-pane -R 1
bind-key -n S-Up resize-pane -U 1
bind-key -n S-Down resize-pane -D 1




I actually tried a new thing and I tried executing one of those commands sperately on the tmux command line. To get there I pressed prefix and then :. Then I typed the command:



bind-key -n S-Up resize-pane -U 1


which did work. Now Shift up with no prefix resizes the pane. But for some reason the tmux config file is not being sourced...right? Not sure what might it be.





It seems it works now after I added:



source ~/.tmux.conf


at the end of the file. However, it feels like a super hacky solution. Anyone know why I need to do such a silly command in the tmux config file?










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    0















    I was trying to set up my key binding in tmux so that I can resize my panes without having to type the whole command. Currently I have it set up as:



    bind-key -n S-Left resize-pane -L 1
    bind-key -n S-Right resize-pane -R 1
    bind-key -n S-Up resize-pane -U 1
    bind-key -n S-Down resize-pane -D 1


    however, that does not work for some reason. When I press shift left with not prefix it does not work (since thats what -n and S do). Does someone know what might be going wrong? My whole .tmux.conf file is as follows:



    # Force a reload of the config file
    unbind r
    bind r source-file ~/.tmux.conf

    #set-window-option -g mode-keys vi
    bind-key -t vi-copy 'v' begin-selection
    bind-key -t vi-copy 'y' copy-selection

    #unbind %
    bind | split-window -h
    bind - split-window -v

    # remap prefix to Control + a
    unbind C-b
    set -g prefix C-a
    bind a send-prefix

    # copy mode using vi
    set-window-option mode-keys vi

    bind-key -n S-Left resize-pane -L 1
    bind-key -n S-Right resize-pane -R 1
    bind-key -n S-Up resize-pane -U 1
    bind-key -n S-Down resize-pane -D 1




    I actually tried a new thing and I tried executing one of those commands sperately on the tmux command line. To get there I pressed prefix and then :. Then I typed the command:



    bind-key -n S-Up resize-pane -U 1


    which did work. Now Shift up with no prefix resizes the pane. But for some reason the tmux config file is not being sourced...right? Not sure what might it be.





    It seems it works now after I added:



    source ~/.tmux.conf


    at the end of the file. However, it feels like a super hacky solution. Anyone know why I need to do such a silly command in the tmux config file?










    share|improve this question
















    bumped to the homepage by Community 1 hour ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I was trying to set up my key binding in tmux so that I can resize my panes without having to type the whole command. Currently I have it set up as:



      bind-key -n S-Left resize-pane -L 1
      bind-key -n S-Right resize-pane -R 1
      bind-key -n S-Up resize-pane -U 1
      bind-key -n S-Down resize-pane -D 1


      however, that does not work for some reason. When I press shift left with not prefix it does not work (since thats what -n and S do). Does someone know what might be going wrong? My whole .tmux.conf file is as follows:



      # Force a reload of the config file
      unbind r
      bind r source-file ~/.tmux.conf

      #set-window-option -g mode-keys vi
      bind-key -t vi-copy 'v' begin-selection
      bind-key -t vi-copy 'y' copy-selection

      #unbind %
      bind | split-window -h
      bind - split-window -v

      # remap prefix to Control + a
      unbind C-b
      set -g prefix C-a
      bind a send-prefix

      # copy mode using vi
      set-window-option mode-keys vi

      bind-key -n S-Left resize-pane -L 1
      bind-key -n S-Right resize-pane -R 1
      bind-key -n S-Up resize-pane -U 1
      bind-key -n S-Down resize-pane -D 1




      I actually tried a new thing and I tried executing one of those commands sperately on the tmux command line. To get there I pressed prefix and then :. Then I typed the command:



      bind-key -n S-Up resize-pane -U 1


      which did work. Now Shift up with no prefix resizes the pane. But for some reason the tmux config file is not being sourced...right? Not sure what might it be.





      It seems it works now after I added:



      source ~/.tmux.conf


      at the end of the file. However, it feels like a super hacky solution. Anyone know why I need to do such a silly command in the tmux config file?










      share|improve this question
















      I was trying to set up my key binding in tmux so that I can resize my panes without having to type the whole command. Currently I have it set up as:



      bind-key -n S-Left resize-pane -L 1
      bind-key -n S-Right resize-pane -R 1
      bind-key -n S-Up resize-pane -U 1
      bind-key -n S-Down resize-pane -D 1


      however, that does not work for some reason. When I press shift left with not prefix it does not work (since thats what -n and S do). Does someone know what might be going wrong? My whole .tmux.conf file is as follows:



      # Force a reload of the config file
      unbind r
      bind r source-file ~/.tmux.conf

      #set-window-option -g mode-keys vi
      bind-key -t vi-copy 'v' begin-selection
      bind-key -t vi-copy 'y' copy-selection

      #unbind %
      bind | split-window -h
      bind - split-window -v

      # remap prefix to Control + a
      unbind C-b
      set -g prefix C-a
      bind a send-prefix

      # copy mode using vi
      set-window-option mode-keys vi

      bind-key -n S-Left resize-pane -L 1
      bind-key -n S-Right resize-pane -R 1
      bind-key -n S-Up resize-pane -U 1
      bind-key -n S-Down resize-pane -D 1




      I actually tried a new thing and I tried executing one of those commands sperately on the tmux command line. To get there I pressed prefix and then :. Then I typed the command:



      bind-key -n S-Up resize-pane -U 1


      which did work. Now Shift up with no prefix resizes the pane. But for some reason the tmux config file is not being sourced...right? Not sure what might it be.





      It seems it works now after I added:



      source ~/.tmux.conf


      at the end of the file. However, it feels like a super hacky solution. Anyone know why I need to do such a silly command in the tmux config file?







      tmux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 28 '16 at 22:44







      Charlie Parker

















      asked Jan 28 '16 at 22:11









      Charlie ParkerCharlie Parker

      2521312




      2521312





      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Surely you have realized by now, that "silly command" is the command to "read" your default tmux configuration file.



          It is not necessary for the function of your resize-shortcuts.






          share|improve this answer































            0














            Adding the command to the end of the file is not enough to actually source the file, since sourcing the file would be needed to reach that command, essentially resulting in a double source.



            More likely you did something in between, e.g. restarted your terminal session and restarted tmux (or just restarted tmux), which WOULD trigger the the source command against the tmux config file.



            Having source ~/.tmux.conf at the end of ~/.tmux.conf is redundant and unnecessary.






            share|improve this answer
























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f258392%2fwhy-cant-i-resize-my-panes-in-tmux-with-the-current-bindings-that-i-have%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              Surely you have realized by now, that "silly command" is the command to "read" your default tmux configuration file.



              It is not necessary for the function of your resize-shortcuts.






              share|improve this answer




























                0














                Surely you have realized by now, that "silly command" is the command to "read" your default tmux configuration file.



                It is not necessary for the function of your resize-shortcuts.






                share|improve this answer


























                  0












                  0








                  0







                  Surely you have realized by now, that "silly command" is the command to "read" your default tmux configuration file.



                  It is not necessary for the function of your resize-shortcuts.






                  share|improve this answer













                  Surely you have realized by now, that "silly command" is the command to "read" your default tmux configuration file.



                  It is not necessary for the function of your resize-shortcuts.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 13 '16 at 18:51









                  Alex StragiesAlex Stragies

                  3,3901742




                  3,3901742

























                      0














                      Adding the command to the end of the file is not enough to actually source the file, since sourcing the file would be needed to reach that command, essentially resulting in a double source.



                      More likely you did something in between, e.g. restarted your terminal session and restarted tmux (or just restarted tmux), which WOULD trigger the the source command against the tmux config file.



                      Having source ~/.tmux.conf at the end of ~/.tmux.conf is redundant and unnecessary.






                      share|improve this answer




























                        0














                        Adding the command to the end of the file is not enough to actually source the file, since sourcing the file would be needed to reach that command, essentially resulting in a double source.



                        More likely you did something in between, e.g. restarted your terminal session and restarted tmux (or just restarted tmux), which WOULD trigger the the source command against the tmux config file.



                        Having source ~/.tmux.conf at the end of ~/.tmux.conf is redundant and unnecessary.






                        share|improve this answer


























                          0












                          0








                          0







                          Adding the command to the end of the file is not enough to actually source the file, since sourcing the file would be needed to reach that command, essentially resulting in a double source.



                          More likely you did something in between, e.g. restarted your terminal session and restarted tmux (or just restarted tmux), which WOULD trigger the the source command against the tmux config file.



                          Having source ~/.tmux.conf at the end of ~/.tmux.conf is redundant and unnecessary.






                          share|improve this answer













                          Adding the command to the end of the file is not enough to actually source the file, since sourcing the file would be needed to reach that command, essentially resulting in a double source.



                          More likely you did something in between, e.g. restarted your terminal session and restarted tmux (or just restarted tmux), which WOULD trigger the the source command against the tmux config file.



                          Having source ~/.tmux.conf at the end of ~/.tmux.conf is redundant and unnecessary.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 19 '17 at 1:38









                          modle13modle13

                          1012




                          1012






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f258392%2fwhy-cant-i-resize-my-panes-in-tmux-with-the-current-bindings-that-i-have%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

                              The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

                              Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...