| @@ -171,6 +171,10 @@ fn global_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 171 | KeyCodeSerde::Char('c'), |
171 | KeyCodeSerde::Char('c'), |
| 172 | HashMap::from([(2, String::from("cp ${url}"))]), |
172 | HashMap::from([(2, String::from("cp ${url}"))]), |
| 173 | ), |
173 | ), |
| |
174 | ( |
| |
175 | KeyCodeSerde::Char('y'), |
| |
176 | HashMap::from([(0, String::from("cp ${url}"))]), |
| |
177 | ), |
| 174 | ]) |
178 | ]) |
| 175 | } |
179 | } |
| 176 | |
180 | |
| @@ -179,6 +183,7 @@ fn search_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 179 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
183 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 180 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
184 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 181 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
185 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
| |
186 | (KeyCodeSerde::Char(' '), HashMap::from([(0, String::from("parrun mpv '${hover-url}'"))])), |
| 182 | ]) |
187 | ]) |
| 183 | } |
188 | } |
| 184 | |
189 | |
| @@ -191,6 +196,7 @@ fn channel_playlists_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 191 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
196 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 192 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
197 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 193 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
198 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
| |
199 | (KeyCodeSerde::Char(' '), HashMap::from([(0, String::from("parrun mpv '${hover-url}'"))])), |
| 194 | ]) |
200 | ]) |
| 195 | } |
201 | } |
| 196 | |
202 | |
| @@ -199,6 +205,7 @@ fn channel_videos_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 199 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
205 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 200 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
206 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 201 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
207 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
| |
208 | (KeyCodeSerde::Char(' '), HashMap::from([(0, String::from("parrun mpv '${hover-url}'"))])), |
| 202 | ]) |
209 | ]) |
| 203 | } |
210 | } |
| 204 | |
211 | |
| @@ -207,6 +214,7 @@ fn playlist_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 207 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
214 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 208 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
215 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 209 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
216 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
| |
217 | (KeyCodeSerde::Char(' '), HashMap::from([(0, String::from("parrun mpv '${hover-url}'"))])), |
| 210 | ]) |
218 | ]) |
| 211 | } |
219 | } |
| 212 | |
220 | |
| @@ -215,6 +223,7 @@ fn popular_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 215 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
223 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 216 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
224 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 217 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
225 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
| |
226 | (KeyCodeSerde::Char(' '), HashMap::from([(0, String::from("parrun mpv '${hover-url}'"))])), |
| 218 | ]) |
227 | ]) |
| 219 | } |
228 | } |
| 220 | |
229 | |
| @@ -223,18 +232,23 @@ fn trending_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 223 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
232 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 224 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
233 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 225 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
234 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
| |
235 | (KeyCodeSerde::Char(' '), HashMap::from([(0, String::from("parrun mpv '${hover-url}'"))])), |
| 226 | ]) |
236 | ]) |
| 227 | } |
237 | } |
| 228 | |
238 | |
| 229 | fn video_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
239 | fn video_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 230 | HashMap::default() |
240 | HashMap::from([( |
| |
241 | KeyCodeSerde::Char(' '), |
| |
242 | HashMap::from([(0, String::from("parrun mpv '${embed-url}'"))]), |
| |
243 | )]) |
| 231 | } |
244 | } |
| 232 | |
245 | |
| 233 | fn watchhistory_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
246 | fn watchhistory_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 234 | HashMap::from([ |
247 | HashMap::from([ |
| 235 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
248 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 236 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
249 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 237 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])) |
250 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
| |
251 | (KeyCodeSerde::Char(' '), HashMap::from([(0, String::from("parrun mpv '${hover-url}'"))])), |
| 238 | ]) |
252 | ]) |
| 239 | } |
253 | } |
| 240 | |
254 | |
| @@ -253,6 +267,7 @@ fn feed_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 253 | KeyCodeSerde::Char('p'), |
267 | KeyCodeSerde::Char('p'), |
| 254 | HashMap::from([(2, String::from("parrun mpv '${hover-video-url}'"))]), |
268 | HashMap::from([(2, String::from("parrun mpv '${hover-video-url}'"))]), |
| 255 | ), |
269 | ), |
| |
270 | (KeyCodeSerde::Char(' '), HashMap::from([(0, String::from("parrun mpv '${hover-url}'"))])), |
| 256 | ]) |
271 | ]) |
| 257 | } |
272 | } |
| 258 | |
273 | |
| @@ -260,6 +275,7 @@ fn library_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 260 | HashMap::from([ |
275 | HashMap::from([ |
| 261 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
276 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 262 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
277 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 263 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])) |
278 | (KeyCodeSerde::Char('p'), HashMap::from([(2, String::from("parrun mpv '${hover-url}'"))])), |
| |
279 | (KeyCodeSerde::Char(' '), HashMap::from([(0, String::from("parrun mpv '${hover-url}'"))])), |
| 264 | ]) |
280 | ]) |
| 265 | } |
281 | } |