Giter VIP home page Giter VIP logo

Comments (6)

bruno- avatar bruno- commented on July 17, 2024 1

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.

bruno- avatar bruno- commented on July 17, 2024

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?
screen shot 2015-01-02 at 6 38 31 pm

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.

windowsrefund avatar windowsrefund commented on July 17, 2024

yes exactly. The 'e' trick is ok as pressing it once highlighted the remaining portion of the URL

from tmux-copycat.

windowsrefund avatar windowsrefund commented on July 17, 2024

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.

davidjb avatar davidjb commented on July 17, 2024

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.

dragon788 avatar dragon788 commented on July 17, 2024

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)

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.