Jump to content

Zenflow

New Member
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Zenflow's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Sure, I want to be able to search for Bear notes within alfred and display the results as I type. So the easiest way to interface with Bear seems to be though it's X-Callback-URLs https://bear.app/faq/x-callback-url-scheme-documentation/ There I found the search url which returns the found notes through the success callback. https://bear.app/faq/x-callback-url-scheme-documentation/#search So then I thought I could pass a URL to an external trigger as success URL since that seem to be the only way to interface with Alfred through a URL.
  2. Just to be clear the x success url is being called from bear with the data string in a parameter called notes and succesfully triggers the external trigger but it seems to only look for data in the argument called argument. If I call alfred://runtrigger/com.myapp.bear/displayresults/?argument=test it forwards "test" but if I call alfred://runtrigger/com.myapp.bear/displayresults/?notes=test it forwards an empty string "". Can I get around this?
  3. After some dugging I figured out the parameter does have to be in the "argument" parameter but bear passes it in a "notes" parameter. Is there any way to get around this?
  4. Im trying to make a search workflow for the Bear notes app, the success url is called but no JSON data seems to be included. Does anyone know why this wouldn't work? I have a bash script that is called when the keyword is typed, hardcoded to search for "test": open -g "bear://x-callback-url/search?term=test&show_window=no&token=MY_TOKEN&x-success=alfred://runtrigger/com.myapp.bear/displayresults/" Then an external trigger that executes this bash script: query=$1 # Check if query is empty if [ -z "$query" ]; then echo "No query was provided" >&2 else echo "The query is: $query" >&2 fi
×
×
  • Create New...