Henrik Friedrichsen
990ba1fa29
fix: drop reference to main after usage to avoid double mut borrow
...
fixes a crash that occured when manually entering commands
2019-04-04 23:35:29 +02:00
Oscar Linderholm
65eb6c905a
Only allow owner read/write to credentials.toml
2019-04-04 21:15:55 +02:00
Henrik Friedrichsen
25fbdb8bde
force UI refresh after results are downloaded
2019-04-03 14:05:09 +02:00
KoffeinFlummi
d223aae9c7
Add album and artist searching
2019-04-02 08:31:17 +02:00
KoffeinFlummi
3f57111b7e
Handle keybindings immediately
2019-04-02 08:30:15 +02: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
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
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
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
Henrik Friedrichsen
e0f7b5c156
implement functionality to save queues to playlists
2019-03-24 16:33:39 +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
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
Henrik Friedrichsen
cdf63ba9ac
move from xdg crate to cross-platform directories crate
...
closes #38
2019-03-20 23:37:56 +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
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
da4f39ffba
Merge branch 'keybindings' of git://github.com/KoffeinFlummi/ncspot into KoffeinFlummi-keybindings
2019-03-17 15:45:13 +01:00
KoffeinFlummi
5a85619105
Add rebindable keys, refactor lists
2019-03-17 04:29:29 +01:00
Henrik Friedrichsen
98038e2cd1
match file naming to playlists model
2019-03-16 12:44:34 +01:00
Henrik Friedrichsen
a5d00730ea
implement playlist caching
2019-03-14 20:34:13 +01:00
Henrik Friedrichsen
8dbfbf104f
start with queue view initially
2019-03-14 19:43:30 +01:00
KoffeinFlummi
ea08608eec
Refactor DBus server, implement PropertiesChanged
2019-03-12 16:40:21 +01:00
Henrik Friedrichsen
c7ebe39453
add keybinding for previous track
2019-03-11 22:36:31 +01:00
KoffeinFlummi
9db8d0fcb3
Implement MPRIS D-Bus spec
2019-03-11 21:24:25 +01:00
Henrik Friedrichsen
cf31b2204a
trigger redraw every 400ms while playing to keep statusbar in sync
2019-03-11 01:07:21 +01:00
Henrik Friedrichsen
13ef40254e
Merge branch 'wip_event_redraw' into develop
2019-03-10 21:56:35 +01:00
Henrik
57893be64d
Merge pull request #26 from andrewhalle/remove-log-file
...
turn off writing log to file
2019-03-10 21:37:57 +01:00
Henrik Friedrichsen
fa56b03133
attempt to reconstruct search term
2019-03-10 21:29:56 +01:00
Andrew Halle
d4c882768a
turn off writing to file, but leave the file writing stuff for possible command line arguments later
2019-03-09 10:04:07 -08:00
KoffeinFlummi
fcf28183bc
Add a vim-style command line
2019-03-09 15:04:02 +01:00
Henrik Friedrichsen
392e3efb87
turn off autorefresh and redraw only on demand
...
this should significantly reduce CPU usage but is a little bit more complicated.
while we're at it, remove the different screen redraw events and use a combined
event for all screens.
TODO:
the spotify player still needs to update the statusbar at least every second.
2019-03-09 01:55:55 +01:00
Henrik Friedrichsen
4776375f68
re-order screens
2019-03-08 10:58:25 +01:00
Henrik Friedrichsen
75fd57108e
add 'clear playlist' keybinding
2019-03-08 00:23:03 +01:00
Henrik Friedrichsen
82f10fccde
download playlist once at startup and keep it in memory
2019-03-08 00:13:45 +01:00
Henrik Friedrichsen
502ac36de3
get rid of the panel wrapper for more space
...
the screen title is now displayed by the layout
2019-03-07 22:34:45 +01:00
Henrik Friedrichsen
0b14fc5da7
transform simple queue to a preserving, more complex kind
...
this is a pretty big but necessary change and might not be stable yet.
some key points:
- the queue is now responsible for playback controls and track management, as
this was scattered between the queue and spotify objects.
- because the queue is now retained, it should be easier to save it as a
spotify playlist
closes #12
2019-03-06 23:59:33 +01:00
Henrik Friedrichsen
91e89c2970
introduce track data class
2019-03-06 00:15:28 +01:00
Henrik Friedrichsen
0f3cc41115
cargo fmt
2019-03-05 23:26:23 +01:00
KoffeinFlummi
7a24eca809
Add main layout view and status bar
...
Fix #4
2019-03-05 19:18:36 +01:00
Henrik Friedrichsen
92811a2ce3
use scrollview in linearlayout for playlist items
...
this approach is more flexible for future additions, e.g. further callbacks such
as playlist deletion.
2019-03-04 19:13:39 +01:00