feat: add list server command (#2314)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-12-21 06:56:43 +01:00
1 parent f0f7cfbbed
commit 59a27bbaed
5 files changed
+36 -6

No files matched your search

+11 -3
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.7.0.2
.\"
.TH "LF" "1" "2025\-12\-10" "r40" "DOCUMENTATION"
.TH "LF" "1" "2025\-12\-21" "r41" "DOCUMENTATION"
.SH NAME
lf \- terminal file manager
.SH SYNOPSIS
@@ -88,8 +88,9 @@ list to \f[I]path\f[R] instead of stdout.
.SS SERVER
.TP
\f[B]\-remote\f[R] \f[I]command\f[R]
Send \f[I]command\f[R] to the running server (e.g.
\f[CR]send\f[R], \f[CR]query\f[R] or \f[CR]quit\f[R]).
Send \f[I]command\f[R] to the running server (i.e.
\f[CR]send\f[R], \f[CR]query\f[R], \f[CR]list\f[R], \f[CR]quit\f[R], or
\f[CR]quit!\f[R]).
See \f[CR]REMOTE COMMANDS\f[R] for more details.
.TP
\f[B]\-server\f[R]
@@ -1849,6 +1850,13 @@ map <a\-h> ${{
}}
.EE
.PP
The \f[CR]list\f[R] command prints the IDs of all currently connected
clients:
.IP
.EX
lf \-remote \(aqlist\(aq
.EE
.PP
There is also a \f[CR]quit\f[R] command to quit the server when there
are no connected clients left, and a \f[CR]quit!\f[R] command to force
quit the server by closing client connections first: