Changing behavior for TryBindKey() for lua to not write to bindings.json

This commit is contained in:
Neko Box Coder
2025-09-06 20:25:47 +01:00
parent 0b9c7c0c4a
commit b39b5b5916
4 changed files with 19 additions and 10 deletions

View File

@@ -174,11 +174,10 @@ The packages and their contents are listed below (in Go type signatures):
values afterwards
- `NoComplete`: no autocompletion suggestions
- `TryBindKey(k, v string, overwrite bool) (bool, error)`: bind the key
`k` to the string `v` in the `bindings.json` file. If `overwrite` is
true, this will overwrite any existing binding to key `k`. Returns true
if the binding was made, and a possible error (for example writing to
`bindings.json` can cause an error).
- `TryBindKey(k, v string, overwrite bool) (bool, error)`:
bind the key `k` to the string `v`. If `overwrite` is true, this will
overwrite any existing binding to key `k`.
Returns true if the binding was made, and a possible error.
- `Reload()`: reload configuration files.