mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
feat(tracker/gioui): keybindings file is keybindings.yml, not .yaml
This commit is contained in:
parent
10f021a497
commit
3fb7f07c2c
@ -8,8 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- A toggle button for copying non-unique patterns before editing. When enabled
|
- A toggle button for copying non-unique patterns before editing. When enabled
|
||||||
and if the pattern is used in multiple places, the pattern is copied first.
|
and if the pattern is used in multiple places, the pattern is copied first.
|
||||||
([#77][i77])
|
([#77][i77])
|
||||||
- User can define own keybindings in
|
- User can define own keybindings in `os.UserConfigDir()/sointu/keybindings.yml`
|
||||||
`os.UserConfigDir()/sointu/keybindings.yaml` ([#94][i94], [#151][i151])
|
([#94][i94], [#151][i151])
|
||||||
- A small number above the instrument name identifies the MIDI channel /
|
- A small number above the instrument name identifies the MIDI channel /
|
||||||
instrument number, with numbering starting from 1 ([#154][i154])
|
instrument number, with numbering starting from 1 ([#154][i154])
|
||||||
- The filter unit frequency parameter is displayed in Hz, corresponding roughly
|
- The filter unit frequency parameter is displayed in Hz, corresponding roughly
|
||||||
|
@ -32,7 +32,7 @@ func loadCustomKeyBindings() []KeyBinding {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
path := filepath.Join(configDir, "sointu", "keybindings.yaml")
|
path := filepath.Join(configDir, "sointu", "keybindings.yml")
|
||||||
bytes, err := os.ReadFile(path)
|
bytes, err := os.ReadFile(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
@ -47,7 +47,7 @@ func loadCustomKeyBindings() []KeyBinding {
|
|||||||
return keyBindings
|
return keyBindings
|
||||||
}
|
}
|
||||||
|
|
||||||
//go:embed keybindings.yaml
|
//go:embed keybindings.yml
|
||||||
var defaultKeyBindingsYaml []byte
|
var defaultKeyBindingsYaml []byte
|
||||||
|
|
||||||
func loadDefaultKeyBindings() []KeyBinding {
|
func loadDefaultKeyBindings() []KeyBinding {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user