Jump to content

rounak

Member
  • Posts

    57
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by rounak

  1. 3 hours ago, Andrew said:

    If you want to show the actions panel for the given file, select the file and use the Features > File Search > Actions > File Selection hotkey. This will always show the actions panel for the file you have selected.

    I need to perform actions on selected text and files depending on what is frontmost with the same hotkey. That's how it works in LB (and QS when I last used it). 

     

    Toggling the Fuzzy matching does work. The fact, that I have to turn off Fuzzy matching for merely actioning a selected file does not make too much sense to me. 

  2.  

    ~/devon-think

    added in search scope

     

    but folder "database" contained in ~/devon-think is not shown in Alfred.

    Reload Aflred cache

    No change in result.

     

    Checked "Include folders in Home"

    "database" folder and its content appear in search

     

    Unchecked "Include folders in Home"

    results disappear again

     

    edit 1: however, there is no change in the behaviour of ~/Libaray/Script Libraries after checking "Include folders in Home"

     

  3.  

     Is this a bug or it is intended? 

     

     

    Top tip in https://www.alfredapp.com/help/workflows/triggers/hotkey/ 

     

    Top tip: You can use the same hotkey for multiple actions within a single workflow. For example, you can set a hotkey to perform action A only when your browsers are in focus, while performing a different task when Mail is in focus. This can only be done within a single workflow, not across multiple ones.

  4. OS X also doesn't show you recent files via an .app package, so again I'm not following your "more consistent" argument.

     

    I mentioned clearly, in my previous post, in what way it is consistent and in what way it is context-specific.

     

     

     

    But Alfred's "equivalent" of Launchbar's → menu is File Actions, which is where its Recent Files… feature currently resides. And indeed, that's precisely where → takes you using Alfred's default options.

     

    Wrong. LaunchBar does allow actions on .app with the Tab key whereas it show recent files on right arrow key. (Two different keys performing two different actions)

     

     

    Is it only for the special "arrow keys for folder navigation" mode?

    Yes. The thread title reads "Navigation" (Alfred>>Preferences>>File Search>>Navigation)

     

    What happens when you're in the Recent Documents list? Is that just a shortcut to the existing File Action ....

     

     
     

    Yes.

  5. It sounds an awful lot like you're saying, "I've selected left and right arrows for folder navigation and now I don't like that right arrow navigates into the folder".

     

     

    I am only saying this for .app files (or folder, whatever).

    It would be context-specific behaviour but result in more productivity.

    Also, though not consistent with Alfred's behaviour, it would be more consistent with Mac OS behaviour which does not allow "ready" browsing of .app files.

    This is exactly how it is implemented in LaunchBar.

     

    Before calling an idea half-baked, maybe, you could try passing it through a though process which does not have an exit statement on encountering an error. Instead, handle the error and see what advantages comes out of it. Then weigh it against the disadvantages. That would give you a better perspective.

  6.  

     

     

    Then how are you supposed to use any of the other File Actions apart from Recent Documents…?
     

     

     

    With the Action key.

     

    Right arrow is not my action key. I don't know if its the default or not (If it is the default action key, I don't mind using tab for viewing Recent Documents. Its better to have keys do more than the same tasks). In Navigation shortcuts, I have checked left and right arrows for folder navigation. 

  7. Playing with this has made me spot another minor issue though, when you have adv. calc enabled and std. calc disabled and delete the =, you see the same result but it doesn't update. I'll get that fixed for the next release.

     

     

     

    Yes, that is the problem I am facing. But it also comes up when I don't start with = in the first place instead of deleting it as in your case.

    Another issue, I noticed today is

    I copied a calculator result. Returned back to Aflred after a minute and pasted it, so as to do further calculations. The result had "," included which is good and I know there are settings in Alfred regarding this. However, it is not eligible for calculation anymore, it goes to fall back searches.

    e.g.

    =56+45,667

    (45667 was what I had copied earlier and then pasted back)

    I think it would also be better if thousand separators are shown when typing numbers as they are shown in results or when pasting results.

  8. Settings:

    Unchecked Enable standard calculator

    Checked Enable advanced calculator

     

    1. Typed

    =5+5

    result shows 10

     

    2. dismissed alfred 

     

    3. activated alfred again

     

    4. typed 5+6 (forgot to type =)

    result shows 10

     

     

     

     

    result must show nothing when = is not pressed. I am not used to looking at the result, when I am typing, thus it is likely that I shall assume the previous answer as the current answer.

  9. Sorry, if it was offending. I only have respect and admiration for you contributions here and gratitude for helping me several times.

     

    I mean this: 

    https://www.dropbox.com/s/upnh196glnu5uja/Screen%20Shot%202016-09-09%20at%208.57.04%20AM.png?dl=

     

    Regarding:

    This basically excludes any results from Alfred's built-in searches, leaving you with a list of your own keywords.
  10.  

    A common "workaround" is to start your keywords with "." (period/full stop). This basically excludes any results from Alfred's built-in searches, leaving you with a list of your own keywords.

     

    "." does show every possible file which has an extension. I don't know if it has to do with my Mac OS setting of show all file name extensions. Or maybe keywords are priortised over filenames in search. I cannot say, because I don't have keywords beginning with ".".

     

    I use "@". Harder to type but far fewer unwanted results since my contacts don't have emails saved. 

  11. I think you referenced me this page in some other thread: https://github.com/mgax/applescript-json

     

    Future readers of this thread must have an answer instead of returning back hopeless. Hence, this post.

     

    I was able to do this:

     

     

    tell application "Finder"

    set json_path to file "json.scpt" of folder of (path to me)

    end tell

    set json to load script (json_path as alias)

    set theCSVfile to (POSIX path of (path to home folder)) & "/Downloads/sample.csv"

     

    --remove all quotes from the csv file.

    set theCSVfile to do shell script "sed 's/\"//g' " & theCSVfile

     

    set allParas to every paragraph of theCSVfile

     

    set theResult to {}

    repeat with aPara in allParas

     

    set aPara to aPara as text

    set my_dict_2 to json's createDictWith({{"title", aPara}, {"arg", aPara}})

    set end of theResult to json's encode(my_dict_2)

    end repeat

    --return theResult

    do shell script "echo " & quoted form of (theResult as text) & " > ~/Desktop/deleteme__.txt"

     

     

     

     

    I put / \ and ' in some strings in my csv file to check if gives the output correctly.

     

     

    Here is the file that needs to be in the same folder as your applescript. Or just paste the code in your applescript. (Posting something on GitHub really complicates simple matters for those like me who don't use it):

     

    https://www.dropbox.com/s/yhhniidejzxovus/json.scpt?dl=0

     

    This is my sample csv. Actually, I had just one column in my original csv. I have not modified the above pasted applescript code to demonstrate working with two columns.

     

     

     
    Result:

     

    https://www.dropbox.com/s/1an5d361eldxxrr/deleteme__.txt?dl=0

     

     

    PS: code above looks better, when code tags are not used.

×
×
  • Create New...