lite-xl-plugins icon indicating copy to clipboard operation
lite-xl-plugins copied to clipboard

Settings / Keybindings: not able to remove a binding through the GUI

Open thdoan opened this issue 2 years ago • 2 comments

As demonstrated below, I removed a binding, restarted the program, and the binding is still not removed:

keybinding_del

thdoan avatar May 05 '23 10:05 thdoan

Nice catch! if my assumption is correct, basically the issue is the binding is set to nil and when serializing the changes to the user_settings.lua file the value is lost, since the value is now nil it is basically interpreted as not set by the user and default value gets restored on next launch.

Possible fix could be setting the binding to string "none" instead of nil and ignoring it at startup.

jgmdev avatar May 05 '23 19:05 jgmdev

I wish I knew how to program Lua so I could submit a PR myself....maybe someday since I always wanted to make a Roblox game ;).

thdoan avatar May 05 '23 21:05 thdoan