mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
add keybinding scope
This commit is contained in:
parent
cf50bde7a0
commit
a358b3a2b2
12
test/config
12
test/config
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user