hello everybody,
i hacked together a mimic of emacs’ god-mode for myself and thought that it would be helpful for many others that have an unfortunate alt-key position on their keyboard
credits to @\Screwtapello and @\alexherbo2 for giving me tips along the way in the #plugins
channel in the discord for giving me feedback and advice :^)
here is the repository for the plugin, thank you for your visitation and consideration:
tl;dr
this is an amateur (and my very first) plugin, please expect mistakes and oversights as a byproduct of my inexperience! feedback is appreciated :^)
q&a
isn’t manual binding more explicit?
yes it is! and this is the approach i took before hacking this for myself
if you value a smaller amount of autoload
files / plugins, then by all means bind all the keys manually since it is basically the equivalent of what this script does
pragmatically, manual binding IS the better approach, but aesthetically (and because of weird personal preference) i like this approach better and decided to share it in case anyone else shared the same sentiment
if you like the idea of this plugin, but not the execution, consider visiting the explicit approach detailed in the project’s README file ^-^
why doesn’t the kakrc example use -lock?
to_char and prompt bindings were the main issue that prevented a simple -lock
, but thankfully @\alexherbo2 kindly provided a fix for this problem that re-enters god-mode
as soon as the commands for those bindings have finished
why didn’t you include ALL alt keys?
this isn’t a deliberate decision, since this is a personal plugin and i only use a certain number of alt keys, i’ve only added the bindings that i personally use
you can customize god_alt_bindings
(and the other string lists) in the file itself or your kakrc
if you like!