Henrik Friedrichsen
510f1ff6ad
add new themable color for selected + playing track
...
fixes #166
2020-04-09 23:50:56 +02:00
Henrik Friedrichsen
705a54c08c
reformat + remove redundant closure
2020-04-02 21:21:51 +02:00
Marcin Sobczyk
07be9dc48d
Command::Move: Add support for extreme moves
...
This patch adds a 'MoveAmount' enum that permits movements by integer
values or to abstract extremes which loosely translate to "top" for up
direction, "bottom" for down direction, etc. The goal behind the effort
is to add support for buttons like "Home" and "End".
The new enum has a 'Default' impl that yields a value of integer
movement by 1 field. This replaces the previous 'Option' wrap, that
in fact served the same purpose, with the value of '1' scattered
around different places in code.
Along with the enum, new commands have been defined to make use of it:
- "move top"
- "move bottom"
- "move leftmost"
- "move rightmost"
2020-03-31 10:49:08 +02:00
Henrik Friedrichsen
dccb36d8e7
update to rust edition 2018 + bump version
2020-03-15 11:06:24 +01:00
Henrik Friedrichsen
d2915316da
various non-functional code cleanups
2020-02-21 23:33:08 +01:00
Tobias Langendorf
363e71242a
Shuffle: Start with random track if not selecting track directly
...
Starting a playlist, album or artist with shuffle enabled always
starts on the first track in it and then plays the rest of the
queue shuffled.
This changes it so unless a track is picked directly, playback
will start on a random track of the selection.
2020-02-21 18:42:31 +01:00
Henrik Friedrichsen
6bf1d662dc
minor code cleanups
2019-11-02 23:18:34 +01:00
Henrik Friedrichsen
31a8119749
draw pagination indicator if applicable
2019-10-31 12:30:25 +01:00
Henrik Friedrichsen
7aa70fcb6b
fix deprecation warnings caused by old trait object syntax
2019-09-01 01:32:50 +02:00
Henrik Friedrichsen
980f6eb528
move to a separate save/delete binding approach
...
this is to address accidental deletions of playlists/tracks that some users
faced
closes #75
related #15
2019-08-13 21:59:11 +02:00
Henrik Friedrichsen
f7458b4137
make sharing to clipboard a feature that can be disabled
...
this is for users that want to eliminate dependences (e.g. libxcb).
the feature is enabled by default and must be explicitly disabled.
fixes #84
2019-08-13 11:49:27 +02:00
Henrik Friedrichsen
d213e8a54c
introduce new context menu for simplified controls
...
as outlined in #75
2019-06-10 00:07:18 +02:00
Rasmus Larsen
1671db14c1
Move to enum-based commands
2019-05-20 22:15:12 +02:00
Rasmus Larsen
cd4bd627da
Ensure no 'unknown command' error is thrown when no track is played
2019-05-10 20:20:55 +02:00
Rasmus Larsen
1a075694af
Break share command into smaller chunks
2019-05-10 13:06:36 +02:00
Rasmus Larsen
641ddf0113
Remove extra trailing comma and reformat
2019-05-10 12:57:31 +02:00
Rasmus Larsen
224597ae92
Move share command handling completely to ListView
2019-05-10 12:55:22 +02:00
Rasmus Larsen
4897d97931
Move URL handling to relevant structs and share selected song
2019-05-09 16:04:07 +02:00
KoffeinFlummi
c96d666481
Clear queue on play command
2019-04-28 11:56:47 +02:00
Henrik Friedrichsen
18c2f6466a
fix most of the clippy linter warnings
2019-04-23 22:28:05 +02:00
KoffeinFlummi
35303db5f0
cargo fmt
2019-04-23 01:47:40 +02:00
KoffeinFlummi
eed218d0c3
Implement browsing for albums, artists, playlists
2019-04-23 01:40:00 +02:00
KoffeinFlummi
1e58ca9345
Implement (un)saving tracks, albums; (un)following artists
2019-04-18 15:43:51 +02:00
KoffeinFlummi
adba809327
Display saved/followed checkmark
2019-04-18 14:04:40 +02:00
KoffeinFlummi
cb32f0ca07
Add all tracks to queue when playing
2019-04-16 19:52:44 +02:00
Henrik Friedrichsen
69e6c77753
implement pagination interface for listview
2019-04-09 22:48:42 +02:00
Henrik Friedrichsen
95370b23c0
simplified overflow-safe subtraction
2019-04-09 22:00:54 +02:00
Henrik Friedrichsen
534ccc904f
respect currently playing track when shifting queue entries
2019-04-07 14:14:56 +02:00
Henrik Friedrichsen
b72f560e5a
implement moving of tracks in queue
2019-04-05 00:27:20 +02:00
Henrik Friedrichsen
0da6cd08c7
fix: prevent usize overflow when moving down in listview
2019-04-03 14:16:36 +02:00
KoffeinFlummi
d223aae9c7
Add album and artist searching
2019-04-02 08:31:17 +02: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
4f8342da83
refactorial spring cleaning (cargo fmt + clippy)
2019-03-26 20:51:39 +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
2a7770177b
bugfix: make sure len is in bounds of usize
2019-03-24 01:02:08 +01:00
Henrik Friedrichsen
7e17b127ac
Merge branch 'KoffeinFlummi-theming' into develop
2019-03-22 16:05:43 +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
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
e0d1d456f4
select first item in listviews initially
2019-03-17 23:03:35 +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
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