Commit Graph

128 Commits

Author SHA1 Message Date
KoffeinFlummi
d2dc2f0ecc Tweak progress bar style 2019-04-02 08:30:16 +02:00
KoffeinFlummi
626ee79654 Pass focus cmd through, fix search keybinding 2019-04-02 08:30:15 +02:00
KoffeinFlummi
3f57111b7e Handle keybindings immediately 2019-04-02 08:30:15 +02:00
Henrik Friedrichsen
3d446ab942 enable librespot cache for audio data 2019-03-31 16:28:43 +02:00
Henrik Friedrichsen
fdb1d01d9a fix crash when adding list to randomized empty queue
with an empty queue the index calculation results in a negative value for
unsigned type usize.
2019-03-30 23:23:16 +01:00
Henrik Friedrichsen
90ffd94c61 add missing whitespace to shuffle mode indicator 2019-03-30 23:20:23 +01:00
Henrik Friedrichsen
c649adebdf minor wording changes, mainly to make the dialog smaller in width 2019-03-30 22:40:42 +01:00
Henrik Friedrichsen
d500466e2e use webbrowser crate which is already a dependency in rspotify 2019-03-30 22:40:42 +01:00
Michael Edwards
d78e71871a Credentials helper if config not present or unparseable
Fixes #1
2019-03-30 22:40:42 +01:00
Michael Edwards
58f34b9288 Attempt to remove files on config path before creating folders 2019-03-30 22:40:42 +01:00
Michael Edwards
dc88f7e3ee Statusbar only needs nerdfont config 2019-03-30 22:40:42 +01:00
Henrik Friedrichsen
d7848ec333 code formatting + minor refactorings 2019-03-28 05:42:47 +01:00
KoffeinFlummi
486bc7617e Refactor command handling 2019-03-28 03:05:25 +01:00
Henrik Friedrichsen
83a394790f implement deletion of playlists
closes #11
2019-03-26 22:24:20 +01:00
Henrik Friedrichsen
0e3c9fc504 use constants for listview IDs and search edit 2019-03-26 21:28:25 +01:00
Henrik Friedrichsen
5c6aa593d8 restore old EditView behaviour in search
closes #49
2019-03-26 21:07:34 +01:00
Henrik Friedrichsen
4f8342da83 refactorial spring cleaning (cargo fmt + clippy) 2019-03-26 20:51:39 +01:00
Henrik Friedrichsen
2eea519e82 refactor for more generic usage of config path helpers 2019-03-26 19:12:07 +01:00
Henrik Friedrichsen
3892ac07d0 move config to separate folder
this requires the previous config file to be deleted, as it has the same name of
the folder.
2019-03-26 19:05:02 +01:00
KoffeinFlummi
9cf1e9945e Only regenerate random order if shuffle is enabled 2019-03-25 20:07:38 +01:00
KoffeinFlummi
2b75e985ad Properly clear cmdline when deleting last char 2019-03-25 18:32:51 +01:00
KoffeinFlummi
45062bd89e Add shuffle and repeat 2019-03-25 18:32:51 +01:00
KoffeinFlummi
e6a7d8a693 Add seeking 2019-03-25 18:32:51 +01:00
Henrik Friedrichsen
79246957df also highlight currently playing track if selected 2019-03-24 19:11:36 +01:00
Henrik Friedrichsen
e0f7b5c156 implement functionality to save queues to playlists 2019-03-24 16:33:39 +01:00
Henrik Friedrichsen
212edcb18c implement modal view wrapper
this wrapper swallows all events that were not processed by the child view. it
can be used for modal dialogs.
2019-03-24 16:30:48 +01:00
Henrik Friedrichsen
43a1dc654f implement playlist saving interface 2019-03-24 16:27:36 +01:00
Henrik Friedrichsen
0807f6464f bugfix: don't panic when an invalid index is to be played
this can be triggered by commands or when hitting return in an empty queue
view. we shouldn't crash in that case..
2019-03-24 13:23:45 +01:00
Henrik Friedrichsen
2a7770177b bugfix: make sure len is in bounds of usize 2019-03-24 01:02:08 +01:00
Henrik Friedrichsen
53255a48af implement playlist update on demand + prune stale playlists 2019-03-23 18:38:58 +01:00
Henrik Friedrichsen
b318ac84e6 remove debug view + implement debug logging to file
closes #41
2019-03-23 15:48:54 +01:00
Henrik Friedrichsen
6ae08c7da9 Merge branch 'feature/handle_expired_tokens' into develop 2019-03-22 16:09:09 +01:00
Henrik Friedrichsen
7e17b127ac Merge branch 'KoffeinFlummi-theming' into develop 2019-03-22 16:05:43 +01:00
Henrik Friedrichsen
4a5a38716f handle and renew expired web api tokens
closes #36
2019-03-22 16:01:05 +01:00
KoffeinFlummi
69b79f5d63 Add configurable theme 2019-03-22 01:08:29 +01:00
KoffeinFlummi
b7dcfb54fa Draw background for entire highlit row 2019-03-22 01:07:34 +01:00
Henrik Friedrichsen
4b3a53ef74 remove leftover comment 2019-03-20 23:41:20 +01:00
Henrik Friedrichsen
c0e6f9ec34 cargo fmt 2019-03-20 23:38:17 +01:00
Henrik Friedrichsen
cdf63ba9ac move from xdg crate to cross-platform directories crate
closes #38
2019-03-20 23:37:56 +01:00
Henrik Friedrichsen
2b45778196 handle rate limiting imposed by spotify web api
closes #29
2019-03-20 23:12:58 +01:00
Henrik Friedrichsen
2e8fbae89e cargo fmt 2019-03-20 23:10:37 +01:00
KoffeinFlummi
b7e0e87e44 Add scroll bar to ListView, remove ScrollView 2019-03-20 22:32:45 +01:00
Henrik Friedrichsen
cf482519af use cursive's debug logger + DebugView 2019-03-19 16:18:16 +01:00
Henrik Friedrichsen
92e01a848e don't overwrite RUST_LOG/RUST_BACKTRACE env variables 2019-03-18 15:54:41 +01:00
Henrik Friedrichsen
e0d1d456f4 select first item in listviews initially 2019-03-17 23:03:35 +01:00
Henrik Friedrichsen
9842b89457 remove obsolete events and callbacks 2019-03-17 22:14:59 +01:00
Henrik Friedrichsen
2d5fa1e67f remove redundant mpris update 2019-03-17 19:58:21 +01:00
Henrik Friedrichsen
32b1c4f583 the spelling focused is much more common 2019-03-17 19:38:06 +01:00
Henrik Friedrichsen
c74b5786f2 make TAB switch between search field and list view 2019-03-17 18:53:45 +01:00
Henrik Friedrichsen
d9eaa507c6 hardcode and arrow up/down keybindings for list navigation
this is considered default behaviour
2019-03-17 18:00:45 +01:00