feat(tracker/gioui): keybindings file is keybindings.yml, not .yaml

This commit is contained in:
5684185+vsariola@users.noreply.github.com 2024-10-13 14:52:30 +03:00
parent 10f021a497
commit 3fb7f07c2c
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 {