You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I pipe live streaming JSONL files into a temp file (I'd like to pipe directly to fx, but it looks like the stream must be closed before fx begins formatting and offering interactivity).
Example:
deno task dev > /tmp/stream.jsonl
When I run fx /tmp/stream.jsonl to read the file, it works well. However, since the file is growing since the last time fx read it, it becomes out of date. Rather than quitting and running fx again, it would be excellent if there were a reload hot key (e.g. r).
A "nice to have" would also be that my current position and state is preserved--e.g. if the cursor is on the 5th jsonl line, and current node is open, keep it that way after the reload occurs.
The text was updated successfully, but these errors were encountered:
Instead of fx, you can leverage fzf (interactive selector) and ja (JSON parser):
tail -f /tmp/stream.jsonl | jq -c '.' | fzf --tac
• tail -f keeps reading the file as it grows.
• ja -c ' . ' parses and formats each
JSON line compactly.
• fzf --tac allows you to scroll through results interactively, with the latest entries at the bottom.
I pipe live streaming JSONL files into a temp file (I'd like to pipe directly to fx, but it looks like the stream must be closed before fx begins formatting and offering interactivity).
Example:
When I run
fx /tmp/stream.jsonl
to read the file, it works well. However, since the file is growing since the last time fx read it, it becomes out of date. Rather than quitting and running fx again, it would be excellent if there were a reload hot key (e.g.r
).A "nice to have" would also be that my current position and state is preserved--e.g. if the cursor is on the 5th jsonl line, and current node is open, keep it that way after the reload occurs.
The text was updated successfully, but these errors were encountered: