@@ -167,11 +167,16 @@ The packages and their contents are listed below (in Go type signatures):
167167 values afterwards
168168 - ` NoComplete ` : no autocompletion suggestions
169169
170- - ` TryBindKey(k, v string, overwrite bool) (bool, error) ` : bind the key
171- ` k ` to the string ` v ` in the ` bindings.json ` file. If ` overwrite ` is
172- true, this will overwrite any existing binding to key ` k ` . Returns true
173- if the binding was made, and a possible error (for example writing to
174- ` bindings.json ` can cause an error).
170+ - ` RegisterKeybindingPlug(k, v string) (bool, error) ` : registers a default
171+ keybinding ` k ` with action ` v ` for the plugin without writing to
172+ ` bindings.json. ` This operation can be rejected by ` lockbindings ` to
173+ prevent unexpected actions by the user.
174+
175+ - ** Drepecated** ` TryBindKey(k, v string, overwrite bool) (bool, error) ` :
176+ bind the key ` k ` to the string ` v ` in the ` bindings.json ` file.
177+ If ` overwrite ` is true, this will overwrite any existing binding to key
178+ ` k ` . Returns true if the binding was made, and a possible error
179+ (for example writing to ` bindings.json ` can cause an error).
175180
176181 - ` Reload() ` : reload configuration files.
177182
@@ -216,13 +221,13 @@ The packages and their contents are listed below (in Go type signatures):
216221 - ` GetGlobalOption(name string) interface{} ` : returns the value of a
217222 given plugin in the ` GlobalSettings ` map.
218223
219- - ` SetGlobalOption(option, value string) error ` : sets an option to a
220- given value. Same as using the ` > set ` command. This will try to convert
221- the value into the proper type for the option. Can return an error if the
222- option name is not valid, or the value can not be converted.
224+ - ** Deprecated ** ` SetGlobalOption(option, value string) error ` : sets an
225+ option to a given value. Same as using the ` > set ` command. This will try
226+ to convert the value into the proper type for the option. Can return an
227+ error if the option name is not valid, or the value can not be converted.
223228
224- - ` SetGlobalOptionNative(option string, value interface{}) error ` : sets
225- an option to a given value, where the type of value is the actual
229+ - ** Deprecated ** ` SetGlobalOptionNative(option string, value interface{}) error ` :
230+ sets an option to a given value, where the type of value is the actual
226231 type of the value internally. Can return an error if the provided value
227232 is not valid for the given option.
228233
0 commit comments