File tree Expand file tree Collapse file tree 9 files changed +15
-5
lines changed Expand file tree Collapse file tree 9 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ A plugin's metadata is defined `pop-launcher/plugins/{plugin}/plugin.ron`.
54
54
description: "Plugin Description: Example",
55
55
bin: (
56
56
path: "name-of-executable-in-plugin-folder",
57
- )
57
+ ),
58
58
icon: Name("icon-name-or-path"),
59
59
// Optional
60
60
query: (
@@ -65,7 +65,9 @@ A plugin's metadata is defined `pop-launcher/plugins/{plugin}/plugin.ron`.
65
65
// Optional -- avoid sorting results from this plugin
66
66
no_sort: true,
67
67
// Optional -- pattern that a query must have to be sent to plugin
68
- regex: "pattern"
68
+ regex: "pattern",
69
+ // Optional -- the launcher should keep a history for this plugin
70
+ history: true,
69
71
)
70
72
)
71
73
```
Original file line number Diff line number Diff line change 8
8
isolate_with : "^(=).*" ,
9
9
),
10
10
bin : (path : "calc" ),
11
- icon : Name ("x-office-spreadsheet" )
11
+ icon : Name ("x-office-spreadsheet" ),
12
+ history : false ,
12
13
)
Original file line number Diff line number Diff line change 3
3
description : "Query applications by their .desktop entries" ,
4
4
bin : (path : "desktop-entries" ),
5
5
icon : Name ("new-window-symbolic" ),
6
+ history : true ,
6
7
)
Original file line number Diff line number Diff line change 8
8
no_sort : true ,
9
9
),
10
10
bin : (path : "files" ),
11
- icon : Name ("system-file-manager" )
11
+ icon : Name ("system-file-manager" ),
12
12
)
Original file line number Diff line number Diff line change 7
7
isolate : true ,
8
8
),
9
9
bin : (path : "find" ),
10
- icon : Name ("system-file-manager" )
10
+ icon : Name ("system-file-manager" ),
11
11
)
Original file line number Diff line number Diff line change 8
8
),
9
9
bin : (path : "terminal" ),
10
10
icon : Name ("utilities-terminal" ),
11
+ history : true ,
11
12
)
Original file line number Diff line number Diff line change 4
4
query : (help : "ddg " , priority : High ),
5
5
bin : (path : "web" ),
6
6
icon : Name ("system-search" ),
7
+ history : true ,
7
8
)
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ pub struct PluginConfig {
27
27
28
28
#[ serde( default ) ]
29
29
pub query : PluginQuery ,
30
+
31
+ #[ serde( default ) ]
32
+ pub history : bool ,
30
33
}
31
34
32
35
#[ derive( Debug , Default , Deserialize ) ]
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ pub const CONFIG: PluginConfig = PluginConfig {
23
23
regex : None ,
24
24
} ,
25
25
icon : Some ( IconSource :: Name ( Cow :: Borrowed ( "system-help-symbolic" ) ) ) ,
26
+ history : false
26
27
} ;
27
28
pub struct HelpPlugin {
28
29
pub id : usize ,
You can’t perform that action at this time.
0 commit comments