Commit graph

108 commits

Author SHA1 Message Date
4cd2883d02
[improve/config] Fix the defualt notification body 2023-04-23 05:19:38 +02:00
0eed8c5360
[implement] Implement the {progress} placeholderr 2023-04-23 05:16:40 +02:00
44bb297e78
[update/improve] Improve the timeout selection mecarthm 2023-04-22 09:44:46 +02:00
91878512ca
[lint] Improve the code 2023-04-22 09:02:14 +02:00
10543a2cc1
[update/improve] Improve the notification cereation mecarthm 2023-04-22 08:49:52 +02:00
31946b66ca
[update/improve] Create macro to build the notification and use it inestad of methods mess 2023-04-22 06:49:15 +02:00
0090da70ae
[args] Add the --config option 2023-04-22 04:16:51 +02:00
588ca11113
[improve/config] Ignore the markdown-help attribute 2023-04-22 03:46:21 +02:00
80b047f007
[improve] Remove the trak title from the default notification body 2023-04-19 08:17:49 +02:00
b2d2f7a347
[fix/improve] Sleep for a 300ms before make the first query 2023-04-18 22:06:17 +02:00
15c7b9bd04
Un use the assert_match in the tests 2023-04-08 23:42:21 +02:00
a5b2a65d33
Just format the code 2023-02-24 02:30:08 +02:00
8e708796dd
Refactor example code in doc comments to use dynamic_image instead of temp_fileRefactor doc comments to use dynamic_image instead of temp_file 2023-02-24 02:29:19 +02:00
190d8befc6
Add markdown help flag and corresponding logic to settings 2023-02-24 02:12:51 +02:00
d5a05a2223
Update notifications to use '{title}' placeholder 2023-02-23 23:26:34 +02:00
a784a4b9d4
, for the cmus track changed notificationAdd #[cfg_attr(any(feature = "debug", test), derive(Debug))] to structs for debug and test builds 2023-02-23 22:53:08 +02:00
8226253891
Just format the code :) 2023-02-23 13:54:22 +02:00
9fad1454c1
Iimprove the docs 2023-02-23 13:53:44 +02:00
8c4a2a5501
Refactor TrackCover set_notification_image to use String for external path 2023-02-23 13:51:06 +02:00
cdc5085506
Commit: Update settings struct to remove default_values 2023-02-23 13:47:09 +02:00
c11a8d2625
Refactor search_for function to accept mutable max_depth parameter 2023-02-23 13:42:23 +02:00
5420ec481d
Refactor track_cover function:Refactor track_cover function to support custom cover path templates 2023-02-23 13:40:17 +02:00
cf3a738a76
Update settings to use const instead of pub const 2023-02-23 11:22:38 +02:00
549e807444
Update notification body to include the track's release date 2023-02-23 10:41:39 +02:00
561ff70374
Commit: Update notification implementation to use Track struct instead of track path 2023-02-23 00:23:04 +02:00
ff2dd059e8
Setup cover image when static cover is specified or track cover is enabled 2023-02-22 19:19:47 +02:00
960da31218
Set notification timeout based on CmusEvent type 2023-02-22 00:54:11 +02:00
4484495776
Fix the sttings 2023-02-21 21:48:31 +02:00
a867ee5fe2
Add #[inline(always)] attribute to process methods in PlayerSettings and Track 2023-02-21 05:10:25 +02:00
a82dc31beb
Add documentation for TemplateProcessor and compare events in CmusQueryResponse 2023-02-21 05:07:56 +02:00
e34d676eb9
Update code to replace manual action assignment with direct return from event.build_notification() 2023-02-21 04:47:05 +02:00
607d53a4a0
Refactor code to use other_track in CmusEvent::StatusChanged 2023-02-21 04:44:46 +02:00
5488404fb3
Process the settings place holders in the template 2023-02-21 04:41:12 +02:00
cb164f962a
Add implementation of TemplateProcessor for Track struct to process template placeholders 2023-02-20 23:53:41 +02:00
2d8fc85ba5
Update notification summary to display title only 2023-02-20 23:38:21 +02:00
d004461209
Improve the artict 2023-02-20 23:04:38 +02:00
9a5a93450a
Iimprove the articet 2023-02-20 06:40:30 +02:00
b8af73ee0f
Update notification implementation to include inline set cover function 2023-02-20 05:42:34 +02:00
4773c1c1cd
Add NoEvents error for CmusQueryResponse 2023-02-20 05:41:01 +02:00
6d62c66b5f
Commit message: Update notification.rs to support new feature and refactor code 2023-02-20 05:35:56 +02:00
19ef64f8ed
Just create the notifications handler 2023-02-20 05:34:03 +02:00
6270ea9717
Commit message: Update cover when track changes, and set a desktop entry and category for notifications 2023-02-20 04:36:32 +02:00
a252a0727d
Just format the code 2023-02-19 12:57:16 +02:00
1bd4f7e034
Update notification image for tracks with covers 2023-02-19 12:55:33 +02:00
f975803fc4
Update notification body to include album in bold 2023-02-18 14:47:06 +02:00
5c7a8fc694
Update notification body to include line break between track and album information 2023-02-18 14:39:15 +02:00
aae9580bce Rename src/bin/main.rs to src/bin/cmus-notify.rs 2023-02-18 12:41:48 +02:00
ce858dff5f
Just create the fucking track change notification 2023-02-17 22:57:20 +02:00
9b629fc238
Fix the search for method 2023-02-17 12:42:03 +02:00
391ca67890
Improve the get cover mecarthim 2023-02-17 10:51:59 +02:00