noahgorstein / jqp

A TUI playground to experiment with jq
MIT License
2.19k stars 40 forks source link

Feature request. Implement session history of executed queries #11

Closed padlyuck closed 1 year ago

padlyuck commented 2 years ago

I think it would be very helpful for users like me, who are not familiar with jq syntax and do many tries and experiments searching for solving their issues. It would be great if I can select a previously executed query from the dropdown and have the ability to edit it and execute it again.

noahgorstein commented 2 years ago

I do really like this suggestion and appreciate it. I think something more in line with what I could do more short-term is saving the session history of executed queries and allowing the user to use up key to navigate through, similar to how you'd navigate your shell history.

noahgorstein commented 2 years ago

@padlyuck , we had a nice contribution from @nerg4l implementing a basic session history. I haven't cut an official release yet, but feel free to checkout the latest code on main and give it a shot.

noahgorstein commented 1 year ago

closing this issue. Added in v0.4.0