bmatsuo / jqsh

An interactive wrapper to the jq command line utility
MIT License
23 stars 2 forks source link

Prompt template #21

Open bmatsuo opened 10 years ago

bmatsuo commented 10 years ago

There should be a user-specified template for the prompt text (default: "> "). I have gone back and forth about printing the filter string alone on a line just before each prompt. People may also be into colors and stuff that shouldn't be enabled by default.

This would necessitate an optional config file. I'd lean toward TOML at this point, having just about had about my fill of comment-less JSON configs. edit: there should probably be a ":config" command and, instead of an structured config file, an rc script.

bmatsuo commented 10 years ago

I marked this a "priority:med" just to introduce a config file sooner than later, if its going to be there.

edit: reduce to "priority:low". rc files are well know beasts. anyone should be able to implement this at some point in the future.