Add query server command to expose internal state (#1384)

* Implement recv mechanism

* Implement recv commands

* Add mutex for state data structure

* Use string to store data instead of byte buffer

* Remove runPagerOn function

* Add history command

* Add documentation

* Add default `maps` command

* Add default `cmds` command

* Reduce locking time

* Remove empty line

* Fix documentation for `recv`

* Add comment about `recv` thread

* Change `recv` to `query`

* Fix comment

* test

* Add comment about connection lifetime

* Map `cmaps` by default
This commit is contained in:
Joe Lim authored and GitHub committed 2023-09-08 18:52:19 +10:00
1 parent c56e319211
commit 9068801831
11 files changed
+243 -118

No files matched your search

-4
View File
@@ -13,11 +13,8 @@ var (
"set",
"setlocal",
"map",
"maps",
"cmap",
"cmaps",
"cmd",
"cmds",
"quit",
"up",
"half-up",
@@ -31,7 +28,6 @@ var (
"open",
"jump-next",
"jump-prev",
"jumps",
"top",
"bottom",
"high",