idpaterson / alfred-wunderlist-workflow

Unbelievably fast task entry in Wunderlist with due dates, reminders, and recurrence
297 stars 8 forks source link

WL Is Now On All Desktops #22

Closed frecklebit closed 11 years ago

frecklebit commented 11 years ago

I have to close WL before I use the "wl" keyword otherwise it just triggers a right click and then sets WL on all desktops.

idpaterson commented 11 years ago

Once it does that, are you able to use the wl keyword properly? Unfortunately there is no way to get the lists in Wunderlist without having it active on the current desktop. Do you customarily use Wunderlist in full screen mode, assigned to a specific desktop, or is it just open on whichever desktop it happens to be opened on?

I can think of a few alternative approaches for the workflow to handle this:

  1. The workflow could assign Wunderlist to the current desktop, then switch it back to being assigned to "None"
    • This causes the Alfred prompt to be dismissed
    • This would cause Wunderlist to move around to whichever desktop you're on and remain there, which may be confusing
  2. The workflow could switch to whichever desktop is showing Wunderlist when the wl command is activated
    • This causes the Alfred prompt to be dismissed
    • This does not cause any changes in which desktop Wunderlist is on
  3. The wl command could use cached list data even if it expired in the case where it cannot update the lists because Wunderlist is not on the screen
    • This may be the best approach since the task can be entered in one step, after which Wunderlist will become active to add the task

The idea behind assigning to all desktops is to make sure that the next time you use wl it is able to update the lists without issue, but I can see how that might be frustrating.

frecklebit commented 11 years ago

So the app has to be open and in view to use the wl keyword?

idpaterson commented 11 years ago

Yeah it's a pain until Wunderlist adds custom support for AppleScript to get lists and tasks. I think that the third option above could be more friendly than assigning Wunderlist to all desktops though.

The workflow already keeps a copy of all your lists to speed up displaying them (plays a bigger role in the upcoming 0.2 release that lets you type to select a list – see preview). That copy is reloaded periodically in case you made changes to a list, but maybe if you're not on the desktop with Wunderlist it should just use the last known lists. Do you think that would be better than messing with the All Desktops setting?

idpaterson commented 11 years ago

0.2-beta.3 removes assignment to all desktops in favor of just retrieving the lists from the cache as described above. Give it a try if you're interested - thanks for using the workflow!