Giter VIP home page Giter VIP logo

search-omnifocus's Issues

Database not found

screen shot 2015-10-27 at 11 37 37 am

I get the above results when trying to use this workflow. I have looked through the readme and can't find any additional installation instruction about adding specific database info. Any suggestions?

.s search doesn't work, others do

Email from Jos van der Voort:

Hi there,

I have installed the Alfred OF search workflow by your hand. The .s workflow does not seem to work as it does not return any results. I checked the .c the .f and the .p commands. They all seem to work. I am using a localized version of OF (Dutch).

Could that be the reason why it does not work?

Thanks for looking into this.

Jos

Add a task

Is there anyway to add a task to omnifocus through this workflow ?
other side question, how can i list all my tasks ?
Thanks for this awesome workflow

No longer working

Hi there, I noticed it's no longer working on El Capitan. Is it just an isolated issue with mine?

.ff for focus on folder

Hi,

  • OmniFocus users using perspectives to filter and display tasks may end up with lists longer than one screen. Having folders to separate groups of projects help to reduce the clutter by focusing on a folder but, you have first to focus on the folder before the perspective selection.
  • It would be pretty useful to have a variant of the .f command.
    • In place of opening the folder, a .ff (focus on folder) would instantly limit the currently displayed tasks to the folder scope.
    • One could also use the command modifier to modify the .f to focus in place of opening?

I simply and successfully modified the ".f script filter" in the workflow. I added a "run NSAppleScript action" connected to the script filer ".f" through the "command modifier". The script is as follows:

on alfred_script(q)
  tell application "OmniFocus" to tell the default document
    set folderList to flattened folders whose id is q
    tell the front document window to set focus to folderList
    activate
  end tell
end alfred_script 

OmniFocus Unable to show linked item

Thanks for making this great workflow! For some time I've hade some issues with showing selected projects in OmniFocus.

Sometimes OmniFocus shows the message "Unable to show linked item: There is no item with the unique identifier given in the link." when I want to show the project found with the workflow. This affects only certain projects. I have not been able to track down any differences between the projects that can be shown in OmniFocus (this is the vast majority) and the ones that don't show up and generates the above error message (a minority of projects).

Doesn't find tasks with subtasks (or project folders)

I organise a lot of my tasks like this:

  • Parent task
    • Subtask 1
    • Subtask 2
    • Subtask 3

When searching tasks with .s <query>, "Parent task" doesn't show up in the results. All subtasks are there, however. I like to navigate straight to "Parent task", as the subtasks are often obscure things like document names that I can't remember.

Similarly, project folders don't show up anywhere in the results, but that's not a huge deal as, unlike a lot of my tasks, I can remember project names.

Use OF3 by default?

I think it's been out long enough that it could be the default

Happy to try to PR this if you want

Will not import

I have tried to get this workflow to load in Alfred to no avail. I tried the latest release and the one prior as well as cloning the repo and manually compiling, but not sure what else to try.

Show a "no results" message when there are no results?

This is very much a personal preference, but I dislike being dropped into Alfred's fallback searches when using a workflow. Mostly because it's hard to tell if that means there are no results or that the workflow crashed.

Would you consider showing a "No matching results" item when there are no results?

v2.1.1 is no longer support Alfred 3?

macOS Catalina v10.15.4
Alfred 3.8.6[972]

After the update, this workflow is not worked.
"Workflow incompatible. Please update to the latest version of Alfred. "

I have tried: v2.1.1 2.1.0 2.0.5
They show the same message……

Could you tell me which version can be used on Alfred 3.8.6[972]?
OR is there any problem??? Cause you didn't say Alfred 3 is never supported on release log.

OF3: Update .c to .t

I'm testing the beta of 3.

Would it make sense to update the .c keyword to .t now that Contexts have been replaced by Tags?

In the release version 2.0.3, 'version' is still tagged as 2.0.2

I just updated OF3 and found I need to update my workflow. I'm so glad you have kept updating this workflow!

I downloaded the 2.0.3 release from github, but when using this version inside Alfred, the alfred "workflow update" plugin thing kept popping up.

It looks like in the 2.0.3 binary, the 'version' file is still tagged as 2.0.2. Did something get messed up during upload? Maybe just doublecheck that I'm not crazy?
https://github.com/rhydlewis/search-omnifocus/releases/download/v2.0.3/Search.OmniFocus.v2.0.3.alfredworkflow

Search OmniFocus not working in Alfred 5

I was using Search OmniFocus in Alfred 4 without any issues, but it stopped working when I upgraded to Alfred 5. Specifically, when I perform a search, it shows the default search engines (e.g. Google) instead of results from the OmniFocus database.

Thanks for looking into this! Hopefully, it will be an easy fix.

List inbox (.li) also shows completed items.

Hi, great workflow — thanks for making it :) This really makes OF much more accessible! I just installed it and noticed what the title says: listing inbox items also show completed items. A quick solution for this is to use "File > Move old data to archive" which resolves the issue if you then actually move the data… I didn't even know that this option existed so I wanted to let you know about the issue, and anyone else that there is a quick workaround.

Thanks again for this awesome workflow!

Idea: .r for recently changed items

Occasionally I'll create a quick todo in the inbox, but then quickly change my mind.

You should be able to get a list of recently changed items, right? Being able to quickly get a list of your last changed items would be nice, to quickly jump back to something.

Search for non-latin characters is case sensitive

For latin characters I type in lower case and successfully find tasks with upper-cased words, for example:
screen shot 2016-08-16 at 02 04 14
However, for non-latin, I need to type the case exactly:
screen shot 2016-08-16 at 02 05 41
Otherwise I don't find anything:
screen shot 2016-08-16 at 02 07 49

Searching can sometimes leave stale python processes running

  • In Alfred, type:

    .s e

  • Alfred says "Searching..."

  • In terminal, type:

    ps aux | grep python

to see:

python search.py e

still running.

Note, running python script from workflow folder works. Alfred debug log doesn't seem to show anything happening. Odd.

Better Icon?

Thanks for building this - it's awesome.

I just threw together a new icon for me to use and thought you might want to use it too (by 'threw together", I actually mean "drew a glass on top of the OF logo"). It seemed silly to fork and PR for this, but I can if you want to use it.

slice 1

time data does not match format '%Y-%m-%dT%H:%M:%S.%fZ'

Hi,

When attempting to search using .s or .sa does not find results, but shows a warning:

Error in workflow 'Search OmniFocus'
time data does not match format '%Y-%m-%dT%H:%M:%S.%fZ'

Using:

  • Alfred 4.0.9 [1143]
  • Search OmniFocus Alfred Workflow v2.1.0
  • OmniFocus Pro - OmniFocus-3.6.x Tag: --tag OmniFocus/3.6/GM-v140.4

Database not found

I just installed the Omnifocus workflow for Alfred. Unfortunately, it can't find the database.

This may or may not be related to issue #12.

I'm running Alfred 3.1, and OmniFocus 2.6.2.

The database is in fact in /Users/freek/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus2/OmniFocusDatabase2. (The non-MAS location). Looking at the code, I see that it looks in two locations. Why it has not found it, I don't know yet.

Let me know if there is a particular way to debug this.

[2016-09-06 08:31:08][ERROR: input.scriptfilter] Code 1: 08:31:08 workflow.py:1972 DEBUG    Workflow version : 1.1.11
08:31:08 workflow.py:1387 DEBUG    Reading settings from `/Users/freek/Library/Application Support/Alfred 3/Workflow Data/net.rhydlewis.alfred.searchomnifocus/settings.json` ...
08:31:08 workflow.py:2233 DEBUG    Update check not due
08:31:08 search.py:36 DEBUG    Started workflow
08:31:08 search.py:133 DEBUG    [u'freek']
08:31:08 workflow.py:1610 DEBUG    Loading cached data from : /Users/freek/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.rhydlewis.alfred.searchomnifocus/__workflow_update_status.cpickle
08:31:08 workflow.py:2181 DEBUG    update_data : {u'available': True, u'version': u'v1.1.15', u'download_url': u'https://github.com/rhydlewis/search-omnifocus/releases/download/v1.1.15/Search.OmniFocus.v1.1.15.alfredworkflow'}
08:31:08 search.py:118 DEBUG    Searching tasks
08:31:08 workflow.py:1511 DEBUG    Data `db_path` stored in `cpickle` format
08:31:08 workflow.py:1526 DEBUG    Stored data loaded from : /Users/freek/Library/Application Support/Alfred 3/Workflow Data/net.rhydlewis.alfred.searchomnifocus/db_path.cpickle
08:31:08 search.py:169 DEBUG    /Users/freek/Library/Containers/com.omnigroup.OmniFocus2.MacAppStore/Data/Library/Caches/com.omnigroup.OmniFocus2.MacAppStore/OmniFocusDatabase2
08:31:08 workflow.py:1990 ERROR    unable to open database file
Traceback (most recent call last):
  File "/Users/freek/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.94461B96-1AB4-4831-8683-286AFDA280C2/workflow/workflow.py", line 1983, in run
    func(self)
  File "search.py", line 47, in main
    get_results(sql, args.type)
  File "search.py", line 55, in get_results
    results = run_query(sql)
  File "search.py", line 171, in run_query
    conn = sqlite3.connect(db_path)
OperationalError: unable to open database file
08:31:08 workflow.py:2008 DEBUG    Workflow finished in 0.104 seconds.

Question: I could have sworn that search-omnifocus used to open new windows on searches...

Was I imagining things? Is there a workflow variable that might change the behavior?

I ask this because if I've only got one OF window open deep into some view or project, and I want to search for another item, I hate getting my original location/context blown away...

I'm using OF3 on High Sierra.

Thanks! Great workflow. Thanks for writing and sharing it.

Workflow doesn't show results from OmniFocus after upgrade to 3.5

Problem

After upgrading to OmniFocus 3.5, my OmniFocus database moved from:

/Library/Containers/com.omnigroup.OmniFocus3/Data/Library/Application Support/OmniFocus/OmniFocus Caches/OmniFocusDatabase / /Library/Containers/com.omnigroup.OmniFocus3.MacAppStore/Data/Library/Application Support/OmniFocus/OmniFocus Caches/OmniFocusDatabase

to:

/Library/Group Containers/34YW5XSRB7.com.omnigroup.OmniFocus/com.omnigroup.OmniFocus3/com.omnigroup.OmniFocusModel/OmniFocusDatabase.db /
/Library/Group Containers/34YW5XSRB7.com.omnigroup.OmniFocus/com.omnigroup.OmniFocus3.MacAppStore/com.omnigroup.OmniFocusModel/OmniFocusDatabase.db

The 34YW5XSRB7 looks randomly/uniquely generated so will need to think about how to solve this.
34YW5XSRB7 is OmniGroup's container/team ID - think it's safe to assume this will be the same for everyone

Impact

Search OmniFocus workflow continues to show results from OmniFocus created before upgrading but nothing added or changed after upgrading.

Workaround

OmniFocus Database

  1. Open Terminal
  2. find ~/Library/Group\ Containers/ -name "OmniFocusDatabase.db"
  3. Copy result from /Library onwards

Workflow

  1. Open Alfred Preferences
  2. Right click on Search Omnifocus workflow and choose open in Finder
  3. Open search.py in a text editor
  4. Add a # to start of line 21 OF3_DB_LOCATION=...
  5. Add new line after line 21:

OF3_DB_LOCATION = "<text you copied above 👆>"

  1. Save file. Test workflow finds information entered after you upgraded to 3.5.

Unable to open database file

  • Workflow release v2.0.0
  • Alfred 3
  • Omnifocus 2

When performing any search, such as .sa buy or .s buy Alfred will display the following error: Unable to open database file.

Is this release incompatible with Omnifocus 2? I don't really see what other issue could be.

Tasks in inbox are not always found

I've noticed that search-omnifocus does not find all tasks. I had the impression it did not find newer items in the inbox. After a bit debugging, it seems that search-omnifocus runs the following query:

cd ~/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus2
sqlite3 OmniFocusDatabase2 SELECT t.persistentIdentifier, t.name, t.dateCompleted, t.blockedByFutureStartDate, c.name, p.name, t.flagged, t.dateToStart, t.inInbox, t.effectiveInInbox, t.effectiveDateToStart, t.childrenCountAvailable, t.blocked, pi.status, t.effectiveFlagged, t.dateModified, t.containingProjectInfo FROM ((task tt left join projectinfo pi on tt.containingprojectinfo=pi.pk) t left join task p on t.task=p.persistentIdentifier) left join context c on t.context = c.persistentIdentifier WHERE lower(t.name) LIKE lower('%query%') AND t.dateCompleted IS NULL AND t.containingProjectInfo <> t.persistentIdentifier ORDER BY t.name ASC

I could resolve this problem by removing the part AND t.containingProjectInfo <> t.persistentIdentifier from the query. In that case, new tasks in the Inbox are found too.

I run the query on some sample data, and got this result:

t.containingProjectInfo t.persistentIdentifier t.name c.name p.name t.inInbox t.blocked pi.status
brCwH7ATZfq brCwH7ATZfq Search-omnifocus project Search-omnifocus project 0 1 active
brCwH7ATZfq n2o7OKloiCc search-omnifocus group of tasks Search-omnifocus project 0 1 active
kSqW6_0Fod8 search-omnifocus in inbox, no project or context 1 0
hTVJT1AKEjJ search-omnifocus in inbox, project and context 1 0
gXj1JOu9LJx search-omnifocus in inbox, project, no context 1 0
oOivpkdUhPX gaIYqG87cY8 search-omnifocus with project and context Offline Bug Report 0 0 active
oOivpkdUhPX n6jvdmfMr3O search-omnifocus with project and no context Bug Report 0 0 active

It seems that this part of the query is ment to prevent names of projects to be found. Unfortunately t.containingProjectInfo <> t.persistentIdentifier also seems to be false if t.containingProjectInfo is NULL and t.persistentIdentifier is not. One way to solve this is to change this part of the query to (t.containingProjectInfo <> t.persistentIdentifier OR t.containingProjectInfo IS NULL):

sqlite3 OmniFocusDatabase2 "SELECT t.persistentIdentifier, t.name, t.dateCompleted, t.blockedByFutureStartDate, c.name, p.name, t.flagged, t.dateToStart, t.inInbox, t.effectiveInInbox, t.effectiveDateToStart, t.childrenCountAvailable, t.blocked, pi.status, t.effectiveFlagged, t.dateModified, t.containingProjectInfo FROM ((task tt left join projectinfo pi on tt.containingprojectinfo=pi.pk) t left join task p on t.task=p.persistentIdentifier) left join context c on t.context = c.persistentIdentifier WHERE lower(t.name) LIKE lower('%query%') AND t.dateCompleted IS NULL AND (t.containingProjectInfo <> t.persistentIdentifier OR t.containingProjectInfo IS NULL) ORDER BY t.name ASC

Incompatible in Alfred v3.8.2

Hi,

I installed Search.OmniFocus.v2.0.6.alfredworkflow and found Alfred shows "Workflow Incompatible.Please update to the latest version of Alfred", but it is the latest version.

No results returned for custom perspectives with .v or .lv

I've been having this issue for a while: no results returned for custom perspectives with .v or .lv. The only result returned are for default perspectives. Just did a fresh re-install of the workflow, and ran the "use-of-3" because I am on OmniFocus 3.2.1 (v122.6 r325053). I can't see what the problem is.

Request: fuzzier search queries?

First off, love this workflow! Thank you for your work on it!

Right now, if I have a project called "Finish raking leaves," and I try to search via the workflow for "Finish leaves" (no quotes), I get zero results. Any possibility of implementing a "fuzzier" search algorithm that would pick up matches, even if they're split across a string?

Again, thanks for this tool!

.s doesn't list tasks in inbox

Hi, I am not sure if this is intentional. but from the statement "Search for all tasks within OmniFocus (irrespective of status) with .s:", I assume it will search task in inbox too, which is not the case on my side. ".i" works perfectly though. If it is intentional behavior, can you define another keyword for "truely search for all tasks"?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.