Comments (6)
Hi guys,
after more investigation I think solving this is theoretically possible. There's a -J
flag for tmux capture-pane
that enables dumping tmux scrollback without line wraps (it does "respect" normal new-lines). This means that even though the lines on the screen are wrapped, they will not be wrapped when dumped to a file.
So now grepping this file without additional line wraps should return correct/full results.
However, when this -J
flag is enabled here, things break apart. Now that results are ok, locating a correct line with the result in tmux copy mode breaks. I didn't go further than this .. If someone wants to try to make this work that would be great.
from tmux-copycat.
Hey, thanks for taking the time to report.
So, are you getting the scenario where only the part of the match in the first line is highlighted? As shown on the screenshot below?
If this is it, unfortunately I'm not sure what can be done :( From what I know grep
(we're using it for matching) can't go multiline consistently.
On the other hand, extending the highlighted area is easy, by just pressing e
once or twice.
Anyway, I'm not sure what action do take except making this as a known bug and hoping it doesn't occur too often.
Love your plugins btw. Thanks for each and every one.
Thank you!
from tmux-copycat.
yes exactly. The 'e' trick is ok as pressing it once highlighted the remaining portion of the URL
from tmux-copycat.
Things are getting a bit more interesting when I bring tmux-open into the mix. On a terminal-wrapped URL, try the following:
Prefix+u
e
<complete URL should now be highlighted across 2 lines>
o
I think you'll find only the first half of the URL is (unsuccessfully) loaded into your browser despite the extra step taken to extend the highlight.
from tmux-copycat.
This looks to be the same issue for me. I have a tmux window split into several panes, and any wrapped output lines with URLs (or file paths etc) can't be searched using copycat; only the first matching part gets picked up. Does tmux understand line wrapping inside a pane? If not, there's probably no easy option since as you say it's grep.
from tmux-copycat.
One workaround found for this and Ctrl/Cmd+click is to briefly Prefix+Z to "zoom" the pane to full screen (then the build in terminal URL handling works at least). I haven't tested with Tmux-copycat to see if it also resolves it's handling.
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
- Use native regex searches in tmux 3.2 HOT 6
- 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.