Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Espanso: Fix broken module to be compatible with Espanso version 2.x (#…
…4066) * Fix espanso module to work with 2.x version * espanso: fix espanso module This module is currently broken. It does not create `config` and `match` folders which are required by espanso 2.x version. This PR fixed this issue and support creating multiple files under `config` and `match` folder. * Espanso: fix espanso module This module is currently broken. It does not create `config` and `match` folders which are required by espanso 2.x version. This PR fixed this issue and support creating multiple files under `config` and `match` folder. Add descriptions * Add versionAtLeast and mkRemovedOptionModule * Correct maintainers list * remove config key from example * format basic-configuration.nix * Update modules/services/espanso.nix Co-authored-by: Naïm Favier <n@monade.li> * fix maintainers list --------- Co-authored-by: Naïm Favier <n@monade.li>
- Loading branch information
Showing
5 changed files
with
147 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
matches: | ||
- replace: Hi there! | ||
trigger: :espanso | ||
- replace: '{{mydate}}' | ||
trigger: :date | ||
vars: | ||
- name: mydate | ||
params: | ||
format: '%m/%d/%Y' | ||
type: date | ||
- replace: '{{output}}' | ||
trigger: :shell | ||
vars: | ||
- name: output | ||
params: | ||
cmd: echo Hello from your shell | ||
type: shell | ||
show_notifications: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
global_vars: | ||
- name: currentdate | ||
params: | ||
format: '%d/%m/%Y' | ||
type: date | ||
- name: currenttime | ||
params: | ||
format: '%R' | ||
type: date | ||
matches: | ||
- replace: It's {{currentdate}} {{currenttime}} | ||
trigger: :now | ||
- replace: 'line1 | ||
line2' | ||
trigger: :hello | ||
- regex: :hi(?P<person>.*)\. | ||
replace: Hi {{person}}! |