by medv on 9/19/23, 8:26 AM with 78 comments
by medv on 9/19/23, 8:28 AM
I've taken `fx` back to the drawing board and completely rewritten it from the ground up. Excited to share what's new:
1. *Going Big*: `fx` now gracefully handles even the most massive JSON files.
2. *A New TUI Look*: Dive deep into your data with a revamped terminal interface—now with themes!
3. *Swift Navigation with Dig Fuzzy Search*: Feeling lost in JSON? Just type `.` and navigate with ease.
4. *Powerful Regex Search*: Scan across your entire JSON content with precision.
5. *Elegant Long String Wraps*: No more cut-offs. Your strings wrap beautifully now.
6. *All Things JSON*: Added love for comments, trailing commas, and JSON streams.
Pouring my heart and soul into this rewrite has been a journey to make `fx` faster and more powerful. If you find value in what I've crafted and want to support its future, consider sponsoring on GitHub.
Would love to hear your thoughts and feedback!
by parhamn on 9/19/23, 4:20 PM
> echo '{"name": "world"}' | fx 'x => x.name' 'x => `Hello, ${x}!`'
Wow, that is so nice. Having to memorize JQ syntax is such a pain.
by ivanche on 9/19/23, 1:26 PM
echo '{"name": "hello"}\n{"name": "world"}' | fx '.name'
would output what? My guess is hello world but it might be hello\nworld.by jspeaks on 9/19/23, 1:23 PM
by montroser on 9/19/23, 2:38 PM
by dpedu on 9/19/23, 5:01 PM
by nathell on 9/19/23, 1:44 PM
/one/two
/one/three/four
/one/three/five
/six
I ended up converting it to a JSON with a one-off Python script, and then using fx for the viewing. It worked very well! Thank you for the tool!(Incidentally, I’ve been writing my own viewer [0] to satisfy my original need more straightforwardly, but that’s still in very early stages.)
by meatjuice on 9/19/23, 1:51 PM
by swah on 9/19/23, 1:08 PM
by cwaffles on 9/19/23, 5:34 PM
by lionkor on 9/19/23, 1:46 PM
Do you mean to say "efficiency" or "performance"? I dont see both working like that
by madspindel on 9/19/23, 6:03 PM
Might wanna change to something else.
by Daeraxa on 9/19/23, 11:28 AM
One thing that isn't clear to me is how to actually use the themes you can display with fx --themes.
by gavanwilhite on 9/19/23, 8:34 PM
by who-shot-jr on 9/19/23, 4:13 PM
What is the website https://fx.wtf/ built-in?
by fodkodrasz on 9/19/23, 1:38 PM
by nikolay on 9/19/23, 6:47 PM
by replwoacause on 9/19/23, 12:51 PM
by tinix on 9/19/23, 9:24 PM
by _def on 9/19/23, 7:19 PM
by JohnMakin on 9/19/23, 5:09 PM