spotatui 0.38.0

A Spotify client for the terminal written in Rust, powered by Ratatui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::core::app::App;
use crate::tui::event::Key;

pub fn handler(key: Key, app: &mut App) {
  match key {
    Key::Char('s') => {
      super::playbar::toggle_like_currently_playing_item(app);
    }
    k if k == app.user_config.keys.back => {
      app.pop_navigation_stack();
    }
    _ => {}
  }
}