--- /dev/null
+#!/bin/sh -e
+
+sel=`find . -not -type d | fzf`
+[ -n "$sel" ]
+if [ -p $sel ]; then fmt < $sel ; else cat $sel ; fi
+read foo
-#!/bin/sh -ex
+#!/bin/sh -e
cmd="$(dirname "$(realpath -- "$0")")"
what="$1"
mkdir -p users
rm -f debug users/status
mkfifo debug users/status
-[ -s tmux.conf ] || sed "s#NEWWIN#$cmd/newwin#" < "$cmd"/tmux.conf > tmux.conf
+[ -s tmux.conf ] || sed "s#NEWWIN#$cmd/newwin# ; s#CATFILE#$cmd/catfile#" < "$cmd"/tmux.conf > tmux.conf
$TMUX -f tmux.conf new-session -d -n ROOT -s mmc "cat debug | tai64n | tai64nlocal"
$TMUX split-window -h 'while : ; do cat users/status | spc -e grn,"^O:.*" -e cya,"^A:.*" ; sleep 5 ; clear ; done'
$TMUX split-window -v "$cmd/mmc/mmc -debug debug -user-status users/status -newwin $cmd/newwin -notify $cmd/notify | tai64n | tai64nlocal"
bind-key Q kill-session
bind-key c new-window NEWWIN
bind-key d kill-window
+bind-key S new-window CATFILE
bind-key -n C-PgUp previous-window
bind-key -n C-PgDn next-window
R tail -f debug | tai64n
R for { cat users/status ; sleep 5 }
R fzf **(/) | cmd/newwin
+ R cmd/catfile
+ R fzf **(.) | fmt
R cmd/mmc | tai64n
F users/status
F users/.../{id,email,name,|in,out.rec,|status,last}
@item By pressing @code{Prefix+d} you will close the window.
+@item By pressing @code{Prefix+S}, list of available files is shown
+inside @command{fzf}, just to quickly display it.
+
@item Status change and typing notifications are shown as a short-lived
message at the bottom of the screen.