Skip to content

Instantly share code, notes, and snippets.

@bitbutter
Last active March 7, 2023 09:13
Show Gist options
  • Save bitbutter/7a3755b1faea3c841d5d760bf0bb8b1d to your computer and use it in GitHub Desktop.
Save bitbutter/7a3755b1faea3c841d5d760bf0bb8b1d to your computer and use it in GitHub Desktop.
Espanso trigger for importing kindle highlights from connected device to Tana. Append this trigger to the file at [username]/AppData/Roaming/espanso/match
# append this to [username]/AppData/Roaming/espanso/match
- trigger: kindle_import_book_from_clippings
replace: "{{output}}"
vars:
- name: booktitles
type: script
params:
args:
- python
- "%CONFIG%/scripts/kindle_get_book_titles_from_clippings.py"
- name: form1
type: form
params:
layout: |
Select file:
[[booktitle]]
fields:
booktitle:
type: list
values: "{{booktitles}}"
- name: booktitle
type: echo
params:
echo: "{{form1.booktitle}}"
- name: output
type: script
params:
args:
- python
- "%CONFIG%/scripts/kindle_tana_paste_from_book_name.py"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment