Jump to content


  • Content Count

  • Joined

  • Last visited

  1. I am gathering the questions because i realize that they were swamped in the rest of the post: 1- where can I find documentation about the file filter advanced tab? 2- there is absolutely no way alfred autocompletion works like any shell autocompletion work?
  2. sounds logic now do you think you can paste a link to a doc and maybe some examples? I still don't get it I set up a file filter to look for truecrypt images with .tc extensions in ~/Documents A] keyword="mtc" | with space=ON I type "mtc " (single space), nothing is listed I type "mtc " (double space), the list appears I add a 'p', so I have "mtc p" (double space) in alfred, and autocomplete gives me: "mtc perso.tc" (single space, one space has disappeared!) B] keyword="mtc" | with space=OFF I type "mtc" (no space), nothing is listed I type "mtc " (single space), the list appears I add a 'p', so I have "mtc p" (single space) in alfred, and autocomplete gives me: "mtcperso.tc" (no space! it disappeared!) how can I get one of the following: C] keyword="mtc" I type "mtc" (no space), nothing listed I type "mtc " (single space), the list appears I add a 'p', so I have "mtc p" (single space) in alfred, and autocomplete gives me: "mtc perso.tc" or even better D] keyword="mtc" I type "mtc" (no space), the list appears if I add a 'p', so I have "mtcp" (no space) in alfred >> the list disappears, logic cause no keyword is match if I type "mtc " (single space), the list is still here I then add a 'p', so I have "mtc p" (single space) in alfred, and autocomplete gives me: "mtc perso.tc" is any of this situation possible? this would be more intuitive and faster at worst can we get B] but without the space disappearing on autocompletion? this is really counter intuitive. in shell, when you tab some word, it does not remove any part of it, it just keeps adding to it can't alfred just mimic this behavior?
  3. Ok, then what are the Advanced tab options for? Where can I find documentation? Yep, I got that, but I would like not to type any space and Alfred starts listing the files as soon as the keyword match. Not possible right?
  4. Hi Two questions regarding "File Filters" 1) I would like to know how to make a file filter that searches for a specific extension. I have some Truecrypt images in my ~/Documents folder, to which I can add a .tc extension. In the advanced tab of the file filter node, I noticed the KMDItemDisplayName matadata field I tried to change the "Value" column from "{query}" to ".tc" or even "{query}.tc" without success. How would you do such a thing without a script filter? Where can I find information on how to use those Advanced fields columns? 2) I noticed that when I type the file filter keyword in Alfred, it waits for the space to be entered after the keyword to display results. If I uncheck the "with space" option it needs only one space, if I check it it needs two spaces. Is there any way that it starts displaying the results without having to type any space? And the space would be autocompletes when selected an entry in the list? Cheers!
  5. Hi I would like to know how to make a script filter that works like the "eject" system command workflow. When I create a script filter, Alfred waits for the keyword to be complete before it actually displays any result. But when I type just "ej" Alfred shows the "eject" list immediately. Would be great to have that responsiveness in a script filter as well Thanks!
  6. I'd rather use #!/usr/bin/env python so my script is portable to other installations I sourced my .bash_profile before calling for my python script and now it works the run script node looks like this: source ~/.bash_profile ~/tools/myscript.py {query} I am happy with this solution for now, and this closes this topic. But I keep thinking Alfred should run a session in the user environment, like any other terminal, iterm and alike I think this would be more elegant and straightforward This could be a new discussion of its own, I don't know all the consequences of such a change, so I'll leave it up to you guys Thanks a lot for your help solving this issue. Cheers!
  7. yep I think it is related to the PATH if I run echo $PATH in the terminal i get: /usr/local/bin:/usr/local/share/python:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin if I run echo $PATH in the workflow I get: /usr/bin:/bin:/usr/sbin:/sbin my ~/.bash_profile loads my ~/.bashrc which loads a ~/.path file in which I set: export PATH=/usr/local/share/python:$PATH export PATH=/usr/local/bin:$PATH And, appart for some dylibs, brew doctor is happy Could it be that Alfred does not load the ~/.bash_profile and so the ~/.path is not loaded in the end?
  8. Hi there I would like to run a python script with an Alfred workflow but I realized that the python version I run in the terminal is not the same Alfred is running The python I use was installed with homebrew, and my path is set up so I run the "brew installed" python which is 2.7.3 and is located here: $ which python $ /usr/local/bin/python I setup my script to print out the python version with this statement: $ print(sys.version) When I run it in the terminal I get 2.7.3, but the workflow notification prints out 2.7.2 The shebang in my script.py is #!/usr/bin/env python If I set my shebang to #!/usr/local/bin/python everything work fine and the workflow notification prints out 2.7.3 But I don't want to change all my scripts and hardcode the path, I would prefer to use #!/usr/bin/env python Anybody has a trick? Is there anything to do with my ~/.bash* dotfiles, or is this Alfred not loading the user environment? Thanks for your help!
  • Create New...