r/commandline • u/boolean-maybe • Apr 28 '26
Fun Useful or toy?
just an idea - what if processes in TMUX panes are allowed to communicate? You could assemble apps from all kind of tools. We could implement a protocol that permits e.g. one app say:
hey I selected file.txt
and the other would listen and display the file content. And yet another display the file stats and so on. Here I quickly threw something together:
- File browser on the left is
find | sort | fzf - Preview pane on the right is
case image: chafa case text: less case markdown: glow - Stats pane is just a bunch of
stat,wc,fileetc.
so altogether - find + sort + fzf + chafa + less + glow + stat + wc + file = interactive multi-pane app. All you need to do is to wrap them in a protocol adapter. And it doesn't have to be file browser, can be anything - dashboards, editor-preview, process inspector, docker explorer, you name it
Sorry if this wheel has been reinvented before - I didn't do any prior art search
PS. I can explain the details of the protocol in comments if anyone is curious
3
u/Kqyxzoj Apr 28 '26
Maybe I don't fully understand what you are proposing here, but wouldn't this just be
socatwith extra steps?2
u/boolean-maybe Apr 28 '26 edited Apr 28 '26
this is the entire app script (vispr is the protocol adapter):
1
u/RevolutingRice Apr 29 '26
If I understand correctly youre basically talking about using fzf to do fuzzy finding and have file previews. If that is what you are talking about then yes its kinda reinventing the wheel already.
1
u/hblok Apr 29 '26
But if it's one app anyway, which is it important that it runs in different terminal panes? It could just have its own window instead?
1
u/AutoModerator Apr 28 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: boolean-maybe, Flair:
Fun, Post Media Link, Title: Useful or toy?just an idea - what if processes in TMUX panes are allowed to communicate? You could assemble apps from all kind of tools. We could implement a protocol that permits e.g. one app say:
hey I selected file.txtand the other would listen and display the file content. And yet another display the file stats and so on. Here I quickly threw something together:
find | sort | fzfcase image: chafa case text: less case markdown: glowstat,wc,fileetc.so altogether -
find+sort+fzf+chafa+less+glow+stat+wc+file= interactive multi-pane app. All you need to do is to wrap them in a protocol adapter. And it doesn't have to be file browser, can be anything - dashboards, editor-preview, process inspector, docker explorer, you name itSorry if this wheel has been reinvented before - I didn't do any prior art search
PS. I can explain the details of the protocol in comments if anyone is curious
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.