cargo check -> cargo test; add cloc at end

+ don't fallthrough to sequencer on arranger edges
This commit is contained in:
🪞👃🪞 2024-12-25 01:59:30 +01:00
parent 41761f6793
commit ac0ee26b7c
3 changed files with 18 additions and 9 deletions

View file

@ -4,6 +4,7 @@
pkg-config
freetype
libclang
cloc
#bear
];
buildInputs = [

View file

@ -7,4 +7,4 @@ jobs:
- run: nix-channel --list && nix-channel --update
- run: nix-shell -p git --command 'git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .'
- run: whoami && pwd && ls -al
- run: nix-shell --command 'cargo version -vv && cargo check' .forgejo/workflows/build.nix
- run: nix-shell --command 'cargo version -vv && cargo test && cloc crates/tek/src' .forgejo/workflows/build.nix

View file

@ -122,6 +122,8 @@ fn to_arrangement_command (state: &ArrangerTui, input: &TuiInput) -> Option<Arra
Cmd::Select(if s > 0 { Selected::Scene(s - 1) } else { Selected::Mix })),
key_pat!(Down) => Some(
Cmd::Select(Selected::Scene((s + 1).min(s_len.saturating_sub(1))))),
key_pat!(Left) =>
return None,
key_pat!(Right) => Some(
Cmd::Select(Selected::Clip(0, s))),
@ -135,6 +137,8 @@ fn to_arrangement_command (state: &ArrangerTui, input: &TuiInput) -> Option<Arra
key_pat!(Delete) => Some(Cmd::Track(Track::Delete(t))),
key_pat!(Char('c')) => Some(Cmd::Track(Track::SetColor(t, ItemPalette::random()))),
key_pat!(Up) =>
return None,
key_pat!(Down) => Some(
Cmd::Select(Selected::Clip(t, 0))),
key_pat!(Left) => Some(
@ -149,8 +153,12 @@ fn to_arrangement_command (state: &ArrangerTui, input: &TuiInput) -> Option<Arra
key_pat!(Char('0')) => Some(Cmd::StopAll),
key_pat!(Char('c')) => Some(Cmd::Color(ItemPalette::random())),
key_pat!(Up) =>
return None,
key_pat!(Down) => Some(
Cmd::Select(Selected::Scene(0))),
key_pat!(Left) =>
return None,
key_pat!(Right) => Some(
Cmd::Select(Selected::Track(0))),