fx icon indicating copy to clipboard operation
fx copied to clipboard

Add search history

Open hcgatewood opened this issue 1 year ago • 3 comments

It would be helpful to have something like FX_SAVE_SEARCH=1 to save interactive mode's cached search between separate fx invocations.

Motivation: I frequently use fx to inspect multiple, similar Kubernetes objects, and am searching for the same fields for the 3-4 fx invocations in a row. As of today, I have to re-type my search query every time I fx a new object, which wastes a few distracting seconds and takes me out of flow state.

Thank you so much for a wonderful tool!

hcgatewood avatar Apr 24 '25 06:04 hcgatewood

Nice idea! What also about adding support for search history?

antonmedv avatar Apr 24 '25 07:04 antonmedv

Nice idea! What also about adding support for search history?

100%, would be super helpful + for me at least would solve this issue 🙂

hcgatewood avatar Apr 25 '25 01:04 hcgatewood

I haven't added history of searches yet. but I added something cool what may be useful here:

Try typing @ and fuzzy search JSON path.

antonmedv avatar May 26 '25 15:05 antonmedv