Giter VIP home page Giter VIP logo

Comments (6)

Drowze avatar Drowze commented on August 17, 2024 4

I know this is closed, but I'd like to leave the config I've been using on 3.2 instead of tmux-copycat and tmux-yank for anyone who's curious to try (inspired by this issue):

# Copy selection with y
bind-key -T copy-mode-vi y send -X copy-selection-no-clear

# Search backwards with prefix-/
bind / copy-mode \; send ?

# Somewhat tmux-copycat select url functionality (requires 3.1+)
bind C-u copy-mode \; send -X search-backward "(https?://|git@|git://|ssh://|ftp://|file:///)[[:alnum:]?=%/_.:,;~@!#$&()*+-]*"

from tmux-copycat.

toupeira avatar toupeira commented on August 17, 2024 2

@toupeira do you want to work on a copycat replacement plugin?

Oh I also forgot to respond to this, I guess a plugin feels like overkill if it's just a bunch of regex patterns, and it becomes more complicated to customize the plugin rather than just writing your own mappings 😀

But I've been happily using the native regex search too, with these mappings:

https://github.com/toupeira/dotfiles/blob/503b929d30980d549ebef8d6da522d36b13d6e1e/tmux.conf#L161-L167

And this helper script:

https://github.com/toupeira/dotfiles/blob/503b929d30980d549ebef8d6da522d36b13d6e1e/tmux/scripts/search#L1-L41

from tmux-copycat.

bruno- avatar bruno- commented on August 17, 2024

This is great news. Native regex support will be much faster and better implemented I'm sure.

As for the transition: I think we can leave this plugin as-is. Maybe it will be useful to some users stuck on older tmux versions.
We can add a note to the README about new tmux features.

As for the useful parts: we can create a new, much smaller plugin for that.

from tmux-copycat.

bruno- avatar bruno- commented on August 17, 2024

A note about tmux's native regex support has been added to the readme.

from tmux-copycat.

toupeira avatar toupeira commented on August 17, 2024

@bruno- thanks, sounds good to me! 👍 Feel free to close this issue.

I played around with the native regex search a bit, it is indeed much faster and supports the same extended regex syntax, so I could just reuse the patterns from tmux-copycat. But I ran into a problem with moving between matches which is being discussed in tmux/tmux#2301, so at the moment I'm still using this plugin.

from tmux-copycat.

bruno- avatar bruno- commented on August 17, 2024

Yes, I think this plugin still has some extra features. Once tmux natively implements search highlighting (search match selection) it will become obsolete.

@toupeira do you want to work on a copycat replacement plugin?

from tmux-copycat.

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.