noahgorstein / jqp

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

feat: add support for aborting running query #19

Closed itchyny closed 2 years ago

itchyny commented 2 years ago

I propose to support aborting running query. Executing jq query can stuck with infinite or no output. Consider range(infinite) or def f: f; f. Currently jqp consumes CPU 100%, and cannot abort the query. I propose to introduce query-running state and allow users to abort the query with ctrl+c.