| @@ -171,6 +171,10 @@ fn global_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 171 | 171 | KeyCodeSerde::Char('c'), |
| 172 | 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 | 183 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 180 | 184 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 181 | 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 | 196 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 192 | 197 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 193 | 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 | 205 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 200 | 206 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 201 | 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 | 214 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 208 | 215 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 209 | 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 | 223 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 216 | 224 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 217 | 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 | 232 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 224 | 233 | (KeyCodeSerde::Char('A'), HashMap::from([(1, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle"))])), |
| 225 | 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 | 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 | 246 | fn watchhistory_default() -> HashMap<KeyCodeSerde, HashMap<u8, String>> { |
| 234 | 247 | HashMap::from([ |
| 235 | 248 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 236 | 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 | 267 | KeyCodeSerde::Char('p'), |
| 254 | 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 | 275 | HashMap::from([ |
| 261 | 276 | (KeyCodeSerde::Char('a'), HashMap::from([(2, String::from("parrun ${terminal-emulator} mpv '${hover-url}' --no-video"))])), |
| 262 | 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 | } |