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

+5 -1
View File
@@ -86,7 +86,7 @@ Same as **-print-selection**, but write the newline-separated list to *path* ins
**-remote** *command*
Send *command* to the running server (e.g. `send`, `query` or `quit`). See `REMOTE COMMANDS` for more details.
Send *command* to the running server (i.e. `send`, `query`, `list`, `quit`, or `quit!`). See `REMOTE COMMANDS` for more details.
**-server**
@@ -1777,6 +1777,10 @@ For example, to select a previous command using fzf and execute it:
lf -remote "send $id $cmd"
}}
The `list` command prints the IDs of all currently connected clients:
lf -remote 'list'
There is also a `quit` command to quit the server when there are no connected clients left, and a `quit!` command to force quit the server by closing client connections first:
lf -remote 'quit'