Henrik Friedrichsen
8ee3ffed92
switch to patched rspotify until upstream has merged pr
...
PR: https://github.com/samrayleung/rspotify/pull/36
2019-03-20 23:12:29 +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
9920bf605f
bump cursive to latest release
2019-03-17 18:01:22 +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
Henrik Friedrichsen
c0469a3b3d
fix playlist cache parsing
2019-03-17 16:17:15 +01:00
Henrik Friedrichsen
40289f6e3e
Merge branch 'develop' into KoffeinFlummi-keybindings
2019-03-17 16:12:49 +01:00
Henrik Friedrichsen
114fe0edb8
print playlist cache parsing errors
2019-03-17 16:10:20 +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
fb83746476
Fix MPRIS progress time unit
...
MPRIS expects time in micro, not milli seconds.
2019-03-17 04:30:45 +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
3d385aff9b
fix compilation on rustc <1.33
...
also, precision in the seconds should be good enough
fixes #33
2019-03-14 21:00:46 +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
Henrik Friedrichsen
7aa6d49f3d
move foreign SpotifyId struct out of Track model
2019-03-13 23:30:50 +01:00
Henrik Friedrichsen
8894c356f7
pin to latest cursive release
2019-03-13 16:38:21 +01:00
Henrik Friedrichsen
6120ce18d4
match with LICENSE file
...
closes #31
2019-03-13 13:58:16 +01:00
Henrik
d30a9e156a
Create LICENSE
2019-03-13 13:56:30 +01:00
Henrik Friedrichsen
e5073647cc
Merge branch 'KoffeinFlummi-mpris' into develop
2019-03-12 18:04:41 +01:00
KoffeinFlummi
ea08608eec
Refactor DBus server, implement PropertiesChanged
2019-03-12 16:40:21 +01:00
Henrik Friedrichsen
8291a91f8a
we can retrieve up to 100 tracks from a list, crank the limit
2019-03-12 15:45:23 +01:00
Henrik Friedrichsen
c7ebe39453
add keybinding for previous track
2019-03-11 22:36:31 +01:00
Henrik Friedrichsen
778bf5f418
install libdbus-1-dev for mpris support
2019-03-11 22:26:52 +01:00
Henrik Friedrichsen
2042ab44d1
Merge branch 'KoffeinFlummi-mpris' into develop
2019-03-11 22:26:10 +01:00
Henrik Friedrichsen
ea8dc36020
handle tracks that don't have album art images
2019-03-11 22:25:10 +01:00
Henrik Friedrichsen
90dd26fa02
fix panic caused by strings that where cut outside of char boundary
2019-03-11 21:35:36 +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
805039032b
trigger a redraw after screen change
2019-03-10 22:51:43 +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
0c601a37a2
document new vim-style prompt
2019-03-10 21:34:56 +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
2bc87d8af5
make sure the title is set for the regular and chained method
2019-03-09 01:11:25 +01:00
Henrik Friedrichsen
2162a52544
use Cursive::noop
2019-03-09 00:32:48 +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