fiatjaf / jiq

jid on jq - interactive JSON query tool using jq expressions
MIT License
919 stars 32 forks source link

engine: exit on Ctrl-D, just like Ctrl-C #26

Closed wchargin closed 3 years ago

wchargin commented 3 years ago

Many common CLI applications quit when stdin reaches end-of-file, as triggered by Ctrl-D. (Examples: python, bash, node, gdb, ed.) Though jiq is more of a TUI than a CLI, exiting with Ctrl-D still feels familiar and intuitive to me, and was how I tried to exit jiq the first time that I used it.

wchargin-branch: ctrl-d-exit