Resize to full terminal screen
Dentrax opened this issue · 2 comments
Thanks for such a great tool! I've been trying to give some feedback.
Like how fx already does, we can resize the output to full terminal screen by passing a flag or by default.
Press q
to exit. Wdyt?
Thanks for such a great tool! I've been trying to give some feedback.
Thanks!
Like how fx already does, we can resize the output to full terminal screen by passing a flag or by default.
It is just a matter of swapping:
Line 217 in 5a223aa
into:
auto screen = ScreenInteractive::Fullscreen();
I see the ability to display the json inline to be a feature. I don't mind adding the capability to do both. Do you think I should allow users to configure it? Maybe a config.json file or some flags.
.config/json-tui/config.json
{
"display": "fullscreen",
"colors": {
"number": "red",
"string": { "r": 255, "g": 0, "b": 0}
"boolean": { "h": 255, "s": 0, "v": 0}
},
"key": {
"quit": "q"
},
"autoexpand-depth": {
"object": 1
"array": 0
}
}
Press q to exit. Wdyt?
Haha, yes, that would be nice indeed!
Maybe a config.json file or some flags.
config.json
would be a bit overengineering in this context. Probably passing a flag better idea.
I see the ability to display the json inline to be a feature.
If you want to display the JSON inline by default, then we can add smth --fullscreen
flag to change ScreenInteractive mode.