Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzzy finding only between output from last command #16

Open
hqkhan opened this issue Jan 23, 2023 · 5 comments
Open

Fuzzy finding only between output from last command #16

hqkhan opened this issue Jan 23, 2023 · 5 comments

Comments

@hqkhan
Copy link
Contributor

hqkhan commented Jan 23, 2023

Hello! I wanted to ask if there's a way to only fuzzy find within stdout from last executed command. I run a lot of tests and sometimes I'm looking for specific string inside output that gets matched from one of my old runs.

I realize that I could output everything into a file and find in there but I was wondering if I can do that strictly from stdout.

@roosta
Copy link
Owner

roosta commented Jan 23, 2023

Hi! I have thought of it, I've had the same issue. But I couldn't figure out a way to tell fuzzback where to stop looking, if you have any ideas I'm all ears :)

@hqkhan
Copy link
Contributor Author

hqkhan commented Jan 26, 2023 via email

@roosta
Copy link
Owner

roosta commented Jan 27, 2023

I did a little bit of research into signals in a shell, what I was thinking is that maybe it'd be possible to have your shell execute a command on each command, by trapping the DEBUG signal, then that could send another signal to fuzzback indicating the start of the last command.

@roosta
Copy link
Owner

roosta commented Jan 27, 2023

its an idea, but it would require a fair bit of shell modification at best, a bad idea at worst :) best I could come up with that didn't include leaving some sort of text behind after each command.

@hqkhan
Copy link
Contributor Author

hqkhan commented Jan 27, 2023

Oh, that is rather interesting. That is completely uncharted territory. I'll have to read to see how that can POTENTIALLY be applied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants