Giter VIP home page Giter VIP logo

Comments (9)

ionsquare avatar ionsquare commented on July 28, 2024 1

@JESii I started getting these errors recently after an update to tmux 2.4 on Arch linux. The way the bindings works changed a bit, see tmux issue #610 here for solution.

from dotfiles.

christoomey avatar christoomey commented on July 28, 2024

Hey @JESii, nice to hear from you!

I'm running with the following config on tmux 2.3:

# Use vim keybindings in copy mode
setw -g mode-keys vi
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
unbind -t vi-copy Space
bind -t vi-copy Space jump-again
bind-key -t vi-copy 0 back-to-indentation
bind y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy '
bind C-y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy '

Not sure what the issue is with your config setup, but the above works for me. Is there a specific error message or failure mode you encounter?

from dotfiles.

JESii avatar JESii commented on July 28, 2024

You too, Chris... if/when you're out in San Francisco, give me a shout and we can grab a bite to eat.

When I'm back in the office tomorrow, I'll reset my config and try again (and of course, I should have given you the error messages... sorry)

from dotfiles.

JESii avatar JESii commented on July 28, 2024

Here are the errors I was getting:

 invalid or unknown command: bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
 invalid or unknown command: unbind -t vi-copy Enter
 invalid or unknown command: bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
 invalid or unknown command: unbind -t vi-copy Space
 invalid or unknown command: bind -t vi-copy Space jump-again
 invalid or unknown command: bind-key -t vi-copy 0 back-to-indentation
 invalid or unknown command: bind -t vi-copy 'v' begin-selection
 invalid or unknown command: bind -t vi-copy 'y' copy-selection
 invalid or unknown command: bind -t vi-copy 'r' rectangle-toggle

I'm gonna check my .conf file again and see if anything jumps out at me.

from dotfiles.

JESii avatar JESii commented on July 28, 2024

OK; I have these commands from your config:

### FROM Chris Toomey's config
setw -g mode-keys vi
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
unbind -t vi-copy Space
bind -t vi-copy Space jump-again
bind-key -t vi-copy 0 back-to-indentation
bind y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy '
bind C-y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy '
### END Chris Toomey's config

And I still get those errors... Am gonna try rebooting tmux and see if that makes a dofference (don't know why it should...)

from dotfiles.

JESii avatar JESii commented on July 28, 2024

Nope; didn't make any difference. Whenver I reload the .tmux.conf, I get those error messages

from dotfiles.

JESii avatar JESii commented on July 28, 2024

Hi, Chris... Sorry if I seemed to get a little too "familiar" with my lunch invitation. For some reason, I thought you remembered that I took your design class in Boston (2, maybe 3 years ago). Obviously, that was stretching things a bit so my apologies for expecting you to have the memory of an elephant :=)

from dotfiles.

christoomey avatar christoomey commented on July 28, 2024

Hi Jon, no worries and thanks for the invite! Always appreciated and welcome. I'm not sure if I remember crossing paths when you were here for the design class, but I certainly recognize from years on Upcase. Sorry I can't be of more help with the tmux issues :(

from dotfiles.

christoomey avatar christoomey commented on July 28, 2024

Closing this now as things are working fine for me, and I think other sources are a better starting point for folks having issues on newer tmux versions.

from dotfiles.

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.