Logseq-Git-Sync-101 icon indicating copy to clipboard operation
Logseq-Git-Sync-101 copied to clipboard

ios wiki is unclear on shortcut instructions

Open ianepreston opened this issue 6 months ago • 0 comments

When I tried to follow it I found I had to create the pull and push repository shortcuts before I could apply them to the automation. Suggest revising that section as follows:

Open Shortcuts > Shortcuts > click the plus sign in the upper right

Search actions > Pull Repository - Repo: your Logseq repo
Name it "pull logseq repo" or something similar
Add a second action:
    Search actions >
        Stage for Commit - Path: *, Repo: your Logseq repo
        If condition
            Input: Select Magic Variable - choose Filenames below the first action
            Condition: has any value
            Put the following two actions Commit Repository and Push Repository under this If condition so that we only make a commit when changes detected therefore we can avoid empty commit
        Commit Repository - Repo: your Logseq repo, Message: Auto-commit from iOS/iPadOS
        NOTE: In Commit Repository, you can toggle off Fail when nothing to Commit if you find the failure notification annoying. Although I prefer to keep it toggle on to prevent empty commit and empty push.
        Push Repository - Repo: your Logseq repo

Open ShortCuts > Automation > Create Personal Automation: On App Open: App > choose Logseq > click Next select the pull action you created Turn off ask before running (or leave it on up to you) On App Close: select the push action you created Turn off ask before running (or leave it on up to you) The final workflow should look like:

ianepreston avatar Aug 09 '24 01:08 ianepreston