Jump to content
idea4IT

Tab key ignores empty autocomplete

Recommended Posts

Hi guys,

 

In order to implement a "Back" button in my workflow, I've tried to use an item with an empty autocomplete attribute.

Unfortunately, Alfred seems to just ignore these kind of items instead of applying the empty attribute.

 

Here's an example:

Alfred value: "gmail INBOX"

Item selected: "Back" with empty autocomplete attribute

 

Expected behavior:

Alfred value changed to: "gmail "

 

Current behavior:

Alfred value: "gmail INBOX" -> nothing happens

 

Alfred version & build number: v2.5.1 (308)

OS X version: Yosemite 10.10

 

Is there a good reason why Alfred ignores this?

 

 

Cheers,

Fabio

Share this post


Link to post
Share on other sites

 

Hi guys,
 
In order to implement a "Back" button in my workflow, I've tried to use an item with an empty autocomplete attribute.
Unfortunately, Alfred seems to just ignore these kind of items instead of applying the empty attribute.
 
Here's an example:
Alfred value: "gmail INBOX"
Item selected: "Back" with empty autocomplete attribute
 
Expected behavior:
Alfred value changed to: "gmail "
 
Current behavior:
Alfred value: "gmail INBOX" -> nothing happens
 
Alfred version & build number: v2.5.1 (308)
OS X version: Yosemite 10.10
 
Is there a good reason why Alfred ignores this?
 
 
Cheers,
Fabio

 

 

Sorry about the slow reply on this... I'm going to have to do a bit of analysis to see what's going on here. Essentially, tab auto-complete only forward completes, not backwards which is why an empty auto complete is treated as ignored.

 

I am going to look into treating empty and nil differently to see if I can allow empty autocompletes to clear out a field.

 

Cheers,

Andrew

Share this post


Link to post
Share on other sites

This would be a pretty cool feature.

 

In fact, I'd like to see a standard keyboard shortcut for "clear query, but leave keyword".

 

Admittedly, ALT+BACKSPACE (delete last word) usually works, but it'd be cool to have, say, CTRL+BACKSPACE assigned in Alfred to "delete to keyword".

Share this post


Link to post
Share on other sites

This would be a pretty cool feature.

 

In fact, I'd like to see a standard keyboard shortcut for "clear query, but leave keyword".

 

Admittedly, ALT+BACKSPACE (delete last word) usually works, but it'd be cool to have, say, CTRL+BACKSPACE assigned in Alfred to "delete to keyword".

 

That's a good idea! I've added a note :)

Share this post


Link to post
Share on other sites

 

Hi guys,
 
In order to implement a "Back" button in my workflow, I've tried to use an item with an empty autocomplete attribute.
Unfortunately, Alfred seems to just ignore these kind of items instead of applying the empty attribute.
 
Here's an example:
Alfred value: "gmail INBOX"
Item selected: "Back" with empty autocomplete attribute
 
Expected behavior:
Alfred value changed to: "gmail "
 
Current behavior:
Alfred value: "gmail INBOX" -> nothing happens
 
Alfred version & build number: v2.5.1 (308)
OS X version: Yosemite 10.10
 
Is there a good reason why Alfred ignores this?
 
 
Cheers,
Fabio

 

 

I've just been playing with this a bit, and it works as originally intended. If you leave out the autocomplete flag, autocomplete is ignored. If you set autocomplete to "" then it clears it back to just the keyword when you try to autocomplete.

 

Can you show me the XML you are having an issue with?

 

Cheers,

Andrew

 

[moving to investigating]

Share this post


Link to post
Share on other sites
I suspect it's due to the way Alfred-Workflow (on which I think the Gmail workflow is based) works.

 

If autocomplete is an empty string, it doesn't add the autocomplete attribute.

 

Have you tried changing Alfred-Workflow's behaviour, Fabio?

Edited by deanishe

Share this post


Link to post
Share on other sites

×
×
  • Create New...