add keybinding scope

This commit is contained in:
raziman 2021-02-14 20:33:37 +08:00
parent cf50bde7a0
commit a358b3a2b2

View File

@ -35,14 +35,12 @@ color_now_playing_title = "#017702"
color_playlist = "#008B8B"
color_popup = "#0A0F14"
// this struct holds pressed key and function to be executed
// use also can access internal command as function, for example yank command
keybinds = {
global = {
"b": func() {
out, err = shell(`"bruhh"`);
if err != nil {
debug_popup("an error occurred")
return
return
}
debug_popup(out)
},
@ -55,4 +53,10 @@ keybinds = {
}
}
// this struct holds pressed key and function to be executed
// use also can access internal command as function, for example yank command
keybinds = {
"global": global
}
// vim: syntax=go