espanso: move matches into a separate file
This commit is contained in:
		
							parent
							
								
									b64556e2ca
								
							
						
					
					
						commit
						8c095288dc
					
				
					 2 changed files with 67 additions and 64 deletions
				
			
		|  | @ -12,70 +12,7 @@ in | |||
|     }; | ||||
| 
 | ||||
|     matches = { | ||||
|       base = { | ||||
|         matches = [ | ||||
|           { | ||||
|             trigger = ":archive"; | ||||
|             replace = "${baseUrl}/archive"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":atdc"; | ||||
|             replace = "${baseUrl}/atdc"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":call"; | ||||
|             replace = "${baseUrl}/call"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":coaching"; | ||||
|             replace = "${baseUrl}/team-coaching"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":daily"; | ||||
|             replace = "${baseUrl}/daily"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":dotfiles"; | ||||
|             replace = "https://github.com/opdavies/dotfiles.nix"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":dc"; | ||||
|             replace = "Drupal Commerce"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":dr"; | ||||
|             replace = "Drupal"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":gt"; | ||||
|             replace = "Great, thanks!"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":lh"; | ||||
|             replace = "http://localhost"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":podcast"; | ||||
|             replace = "${baseUrl}/podcast"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":pricing"; | ||||
|             replace = "${baseUrl}/pricing"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":talks"; | ||||
|             replace = "${baseUrl}/talks"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":website"; | ||||
|             replace = "${baseUrl}"; | ||||
|           } | ||||
|           { | ||||
|             trigger = ":zoom"; | ||||
|             replace = "https://savvycal.com/opdavies/zoom"; | ||||
|           } | ||||
|         ]; | ||||
|       }; | ||||
|       base = import ./espanso/matches.nix { inherit baseUrl; }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										66
									
								
								lib/nixos/home-manager/modules/espanso/matches.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								lib/nixos/home-manager/modules/espanso/matches.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,66 @@ | |||
| { baseUrl }: | ||||
| 
 | ||||
| { | ||||
|   matches = [ | ||||
|     { | ||||
|       trigger = ":archive"; | ||||
|       replace = "${baseUrl}/archive"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":atdc"; | ||||
|       replace = "${baseUrl}/atdc"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":call"; | ||||
|       replace = "${baseUrl}/call"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":coaching"; | ||||
|       replace = "${baseUrl}/team-coaching"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":daily"; | ||||
|       replace = "${baseUrl}/daily"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":dotfiles"; | ||||
|       replace = "https://github.com/opdavies/dotfiles.nix"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":dc"; | ||||
|       replace = "Drupal Commerce"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":dr"; | ||||
|       replace = "Drupal"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":gt"; | ||||
|       replace = "Great, thanks!"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":lh"; | ||||
|       replace = "http://localhost"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":podcast"; | ||||
|       replace = "${baseUrl}/podcast"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":pricing"; | ||||
|       replace = "${baseUrl}/pricing"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":talks"; | ||||
|       replace = "${baseUrl}/talks"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":website"; | ||||
|       replace = "${baseUrl}"; | ||||
|     } | ||||
|     { | ||||
|       trigger = ":zoom"; | ||||
|       replace = "https://savvycal.com/opdavies/zoom"; | ||||
|     } | ||||
|   ]; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue