kagi-text-config.yml

· eirk's pastes · raw

expires: never

 1# custom bang (derived from trovu)
 2# example !tr en es hello world
 3# the * means accepts everything after it, including spaces/Users/eric/.config/espanso/match/accents.yml
 4tr from to content*:
 5    url: https://translate.google.com/?sl={from}&tl={to}&text={content}&op=translate
 6
 7# ^ means that uses the mapping
 8notion ^page:
 9    page:
10        hw: homework-b859835adb2a4d339ffecc7184f71d73
11        notes: math-21-notes-004893c47d3b42c3a7e9cce4c3feeda2
12    url: https://www.notion.so/username/{page}
13
14# rewriting urls:
15  - from: ^old.reddit.com
16    to: www.reddit.com
17    options:
18      match-scheme: false # ignore the https?:// part when matching
19
20# rewriting queries
21  - match: home
22    replace: Boston, MA
23
24  - match: tre\((\w+)\)
25    translate:
26        from: any
27        to: english