Giter Site home page Giter Site logo

Comments (7)

PythonNut avatar PythonNut commented on June 2, 2024

Hmm... AFAIK I don't think it can be done at the moment. (I read all the code, and I don't see anything pertaining to what you want). How would you like this to be resolved, specifically?

  • A zaw keybinding that appends $BUFFER to the current zaw query
  • A way to tell zaw to start a particular source with the $BUFFER as it's initial value
  • something else...

from zaw.

jfelchner avatar jfelchner commented on June 2, 2024

@PythonNut thanks for pinging me. Here's the flow I'd like. I don't know enough about the implementation to know exactly what I'd like from that perspective, but here's how I'd like it to function:

$ heroku logs prod

At this point, I want to be able to press Control-R and see something like this:

$ heroku logs prod
filter: heroku logs prod
heroku logs -n 2000 --tail --app=my-app-production
heroku logs -n 2000 --tail --app=my-other-app-production
heroku logs -n 2000 --tail -p worker.1 --app=my-app-production
heroku logs -n 2000 --tail -p app.1 --app=my-app-production
heroku logs -n 2000 --tail -p worker.1 --app=my-other-app-production
[1/18]

at which point I could continue to type my other and have it continue to filter down the list.

from zaw.

jkarni avatar jkarni commented on June 2, 2024

👍 zaw-history is great, but the lack of this feature almost makes me want to go back to built-in zsh history commands

from zaw.

jfelchner avatar jfelchner commented on June 2, 2024

@willghatch I just tried your commit. It's exactly what I was wanting 😍

THANK YOU SO MUCH!!

from zaw.

moonrumble avatar moonrumble commented on June 2, 2024

It is a good idea to extend this functionality to other sources like ssh-host etc

from zaw.

willghatch avatar willghatch commented on June 2, 2024

I'm not sure it would be a great fit for ssh-host, because that probably implies that the line start ssh, but the hostnames probably don't have "ssh" in them, so you would have to go back and delete the ssh thing. So unless you start adding some fancy filtering for what you want to keep from the initial command line (which I don't want to do), it wouldn't work very well.

from zaw.

moonrumble avatar moonrumble commented on June 2, 2024

Thanks, I was hoping that I can just type hostname and search using ssh-host source. Press enter.

from zaw.

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.