Comments (6)
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 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:
And this helper script:
from tmux-copycat.
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.
A note about tmux's native regex support has been added to the readme.
from tmux-copycat.
@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.
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)
- tmux-yank stops working after one yank when tmux-copycat is present. HOT 13
- [PROPOSAL] Migration to ripgrep HOT 3
- Git status - Long file names are not detected properly HOT 1
- search not working HOT 4
- Is it possible to highlight all matches HOT 2
- Git status file search does not work with multiple panes HOT 1
- tmux-copycat slow on my machine HOT 24
- n/N bindings on window 6, pane 1 HOT 1
- Ignore $PROMPT text in backward searches HOT 2
- how to search across multiple lines ?
- Add the possibility of jumping forward or backwards from matches using vim syntax
- Anyone made it work with byobu?
- Fails to run without `en_US@UTF-8` locale
- Prefix C-g doesn't match paths starting with ../ HOT 3
- Tmux-copycat stops working after tmux commit f8ad72b2eeafc1146c116f73194a3950aa0c2143
- File search doesnt find files HOT 2
- Way to disable a predefined searches. HOT 3
- FR: tmux-copycat (C-a C-u) for url search is not consistent with tmux-urlview
- Git status - issues with fish as default shell while using Allacrity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-copycat.