Skip to content

Commit bd3d6f4

Browse files
committed
feat: make trigger keyword more friendly
1 parent 5cf00cb commit bd3d6f4

File tree

6 files changed

+34
-7
lines changed

6 files changed

+34
-7
lines changed

Main.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ public List<Result> Query(Query query)
7575
}
7676
res.Add(new Result
7777
{
78-
Title = $"{playback.ArtistName} - {playback.Name}",
79-
SubTitle = "Click me to toggle play/pause",
78+
// TODO: Use the artwork as the icon
79+
SubTitle = $"{playback.ArtistName} - {playback.Name}",
80+
Title = "Play/Pause",
8081
IcoPath = TmpIcon,
8182
Action = c => PostMethod("playpause")
8283
});
@@ -89,7 +90,7 @@ public List<Result> Query(Query query)
8990
});
9091
res.Add(new Result
9192
{
92-
Title = "Previous Track",
93+
Title = "Previous",
9394
SubTitle = "Previous track",
9495
IcoPath = CiderIcon,
9596
Action = c => PostMethod("previous")
@@ -98,7 +99,7 @@ public List<Result> Query(Query query)
9899
{
99100
res.Add(new Result
100101
{
101-
Title = "Add to Library",
102+
Title = "Add",
102103
SubTitle = "Add to library",
103104
IcoPath = CiderIcon,
104105
Action = c => PostMethod("add-to-library")
@@ -108,14 +109,14 @@ public List<Result> Query(Query query)
108109
{
109110
res.Add(new Result
110111
{
111-
Title = "Add to Favourites",
112+
Title = "Favourite",
112113
SubTitle = "Add to favourites",
113114
IcoPath = CiderIcon,
114115
Action = c => ToggleFavourite(1)
115116
});
116117
res.Add(new Result
117118
{
118-
Title = "Less Suggested",
119+
Title = "Dislike",
119120
SubTitle = "Mark as less suggested",
120121
IcoPath = CiderIcon,
121122
Action = c => ToggleFavourite(-1)
@@ -125,7 +126,7 @@ public List<Result> Query(Query query)
125126
{
126127
res.Add(new Result
127128
{
128-
Title = "Remove from Favourites",
129+
Title = "Remove",
129130
SubTitle = "Remove from favourites",
130131
IcoPath = CiderIcon,
131132
Action = c => ToggleFavourite(0)

Settings.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
yaml-language-server: $schema=https://www.flowlauncher.com/schemas/settings-template.schema.json
2+
Settings:
3+
- type: input
4+
attributes:
5+
name: inputName
6+
label: API Token (NOT IMPLEMENTED)
7+
description: Leave blank for not using API Token
8+
defultValue: ""

assets/readme1.png

38.8 KB
Loading

assets/readme2.png

30.4 KB
Loading

image.png

30.4 KB
Loading

readme.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Flow.Launcher.Plugin.Cider2
2+
3+
Control [Cider2](https://cider.sh/) inside [Flow Launcher](https://flowlauncher.com/), default keyword is `cd`
4+
5+
## Requirements
6+
7+
- [Flow Launcher](https://flowlauncher.com/)
8+
- [Cider2](https://cider.sh/) version 2.5.0 or later
9+
10+
## Usage
11+
12+
This plugin requires Cider's WebSocket API, should be enabled in Cider's settings.(Setting > Connectivity), default port is `10676`
13+
14+
![Setting > Connectivity](assets/readme1.png)
15+
16+
By default, the plugin won't use a token, the setting `Require API Tokens` should be disabled.
17+
18+
![](assets/readme2.png)

0 commit comments

Comments
 (0)