@@ -174,11 +174,16 @@ The packages and their contents are listed below (in Go type signatures):
174174 values afterwards
175175 - ` NoComplete ` : no autocompletion suggestions
176176
177- - ` TryBindKey(k, v string, overwrite bool) (bool, error) ` : bind the key
178- ` k ` to the string ` v ` in the ` bindings.json ` file. If ` overwrite ` is
179- true, this will overwrite any existing binding to key ` k ` . Returns true
180- if the binding was made, and a possible error (for example writing to
181- ` bindings.json ` can cause an error).
177+ - ` RegisterKeybindingPlug(k, v string) (bool, error) ` : registers a default
178+ keybinding ` k ` with action ` v ` for the plugin without writing to
179+ ` bindings.json. ` This operation can be rejected by ` lockbindings ` to
180+ prevent unexpected actions by the user.
181+
182+ - ** Drepecated** ` TryBindKey(k, v string, overwrite bool) (bool, error) ` :
183+ bind the key ` k ` to the string ` v ` in the ` bindings.json ` file.
184+ If ` overwrite ` is true, this will overwrite any existing binding to key
185+ ` k ` . Returns true if the binding was made, and a possible error
186+ (for example writing to ` bindings.json ` can cause an error).
182187
183188 - ` Reload() ` : reload configuration files.
184189
@@ -223,13 +228,13 @@ The packages and their contents are listed below (in Go type signatures):
223228 - ` GetGlobalOption(name string) any ` : returns the value of a
224229 given plugin in the ` GlobalSettings ` map.
225230
226- - ` SetGlobalOption(option, value string) error ` : sets an option to a
227- given value. Same as using the ` > set ` command. This will try to convert
228- the value into the proper type for the option. Can return an error if the
229- option name is not valid, or the value can not be converted.
231+ - ** Deprecated ** ` SetGlobalOption(option, value string) error ` : sets an
232+ option to a given value. Same as using the ` > set ` command. This will try
233+ to convert the value into the proper type for the option. Can return an
234+ error if the option name is not valid, or the value can not be converted.
230235
231- - ` SetGlobalOptionNative(option string, value any) error ` : sets
232- an option to a given value, where the type of value is the actual
236+ - ** Deprecated ** ` SetGlobalOptionNative(option string, value any) error ` :
237+ sets an option to a given value, where the type of value is the actual
233238 type of the value internally. Can return an error if the provided value
234239 is not valid for the given option.
235240
0 commit comments