Coder Social home page Coder Social logo

Comments (3)

pcottle avatar pcottle commented on April 26, 2024

I actually think this is one of the best features of PathPicker -- tools like less don't understand whats a file and whats not, so they require you to page through everythinggggggg instead of just what you might be interested in.

Especially for inputs like git diff where the filenames are really spread out, the quick jump is quite helpful imo

I'll close out for now, but I'd be interested in seeing a PR for this since it shouldn't be terribly hard to built (unless you wanted to decorate the simple line that was matched)

from pathpicker.

lastquestion avatar lastquestion commented on April 26, 2024

Actually, the only reason I want this is for things like git diff | fpp where I want to examine every line of the diff and if a diff has an issue, I want to quickly open the corresponding file.

If I go from one link to another right now, I might lose half a page of diff that I can't read because the diff for the previous file is so big that it spans multiple pages. In that case, I'd have to open up git diff and then remember which files I wanted to touch and then open up git status and then fpp on that?

Hm, actually 90% of the time I actually probably want page up/down by page, and then up|down on matched line.

It might be confuzzling but another option I'd probably want to prototype out as well is "navigate on matched lines and then page per page". Terrible description, but what I mean is, up|down move the cursor thru matched lines until it can't find another one on the same page. Then it moves the page forward and shows the next text page, and then you nagivate thru that. It's more of a change to the scroll algorithm.

However this might mean you would scroll to a page w/ no matched text and then you're forced to press down again. And in a very big input I'm not sure if this is better or worse.

from pathpicker.

lastquestion avatar lastquestion commented on April 26, 2024

How do you deal with the situation where when you're looking at git diff the next link forces fpp to scroll down so much you miss some diff?

from pathpicker.

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.