             let urlText = build.addingPercentEncoding(withAllowedCharacters: allowedQueryParamAndKey)!
             if let url = URL(string: "bear://x-callback-url/add-text?id=\(noteUid)&mode=replace&text=\(urlText)") {
                 NSWorkspace.shared.open(url)
+                //shell("/usr/bin/open",["-jg",url.absoluteString])
                 if triggerLine >= 0 {
                     if verbose > 1 {
                         print("trigger at line: \(triggerLine) column: \(triggerColumn)")

        let text = String(parts[1])

        // it will still trigger twice because of the update to the note by url-scheme
        if row[changed] > newestChange {
            newestChange = row[changed]
        }

        let noteModified = Date(timeIntervalSinceReferenceDate: row[changed])

        var blocks = text.components(separatedBy: "```")


            .filter(changed > lastCheck)
            .filter(trashed == 0)
    for row in try bearDB.prepare(configQuery) {
        let chg = row[changed] ?? 0.0
        if  chg > newestChange {
            newestChange = chg
        }
        //print(chg)
        let text = row[text]
        for line in text.split(separator: "\n") {
            let keyval = line.split(separator: ":", maxSplits: 1)
