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:
1 parent
c56e319211
commit
9068801831
11 files changed
+243
-118
No files matched your search
@@ -2736,14 +2736,6 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
|
||||
app.ui.cmdAccLeft = acc
|
||||
update(app)
|
||||
case "cmds":
|
||||
app.runPagerOn(listCmds())
|
||||
case "maps":
|
||||
app.runPagerOn(listBinds(gOpts.keys))
|
||||
case "cmaps":
|
||||
app.runPagerOn(listBinds(gOpts.cmdkeys))
|
||||
case "jumps":
|
||||
app.runPagerOn(listJumps(app.nav.jumpList, app.nav.jumpListInd))
|
||||
default:
|
||||
cmd, ok := gOpts.cmds[e.name]
|
||||
if !ok {
|
||||
|
||||
Reference in new issue
Block a user