Jump to content

derfla

Member
  • Posts

    27
  • Joined

  • Last visited

Posts posted by derfla

  1. I suppose it wouldn't be a problem having the screenshots and Readme in the workflow (I've been writing a separate help file).

     

    I think so too. But my auto-release script removes some files before generating the .alfredworkflow file.

     

    Have you had any problems with .git directories in Dropbox? I don't think I'd like to try sorting out and Dropbox conflicting files in the git objects database.

     

    I don't use Dropbox syncing, so I can not help here.

  2. I code in the workflow directory and this is also my git directory. So I have one directory only.

    And if I push to github, a WebHook on my website is called automatically, which generates the new workflow file from source. Then all the users of my workflow will get an update message the next time they use the workflow, and after confirming the workflow will be updated automatically.

     

    So I don't have to copy between directories or export and upload new versions. I only have to develop in the workflow directory and to push to github.

  3. Use "Custom" and this script:

    on alfred_script(q)
    	tell application "Terminal"
    		activate
    		tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
    		do script q in front window
    	end tell
    end alfred_script
    

    It will open a new tab in the main window of TotalTerminal. If you want to use the existing tab, delete the line starting with 'tell application "System Events"…'.

  4. Update: I added the missing "gh user/repo issues new" command. And before some weeks I added copy & paste possibilities: With cmd+enter the URL of the current item is copied and pasted to the frontmost app. If you just want to copy the URL, hit cmd+c.

  5. If you want that Alfred opens new Terminal tabs instead of windows (for "Open Terminal Here" and ">"), then do this:

    1. Open Alfred Preferences,
    2. Go to "Features"
    3. Go to "Terminal / Shell"
    4. Select Application "Custom"
    5. Paste this script into the textbox:
    on alfred_script(q)
    	tell application "Terminal"
    		activate
    		tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
    		do script q in front window
    	end tell
    end alfred_script

    Maybe it's usefull for some of you.

  6. For example, in my CloudApp workflow (more on this here), I need people who use it to edit a file to enter the credentials for their CloudApp account and archive the files themselves. It would be way easier if they could just import the workflow and fill out the needed fields.

     

    In my GitHub Workflow I solved it this way: Video

     

    At first the user only sees the login command (gh > login <user>, I use ">" as indicator for commands to manage the workflow itself). After calling this login command with a username, I open (with applescript) a dialogbox for the password. So the password does not appear in the Alfred history.

  7. In Germany addresses are always formatted like this (ML Addressbook):

     

    screenshots%2F3885a1a9ecc3ecce5bbe3e19cb

     

    But Alfred puts the postal code under the city:

     

    screenshots%2F36f494b5008ab791826ab50a32

     

    I guess it is the normal format in the UK, but in Germany it is very unusual. So it would be very nice, if Alfred uses different formats for (some) countries. 

  8. Thanks for the feedback!

     

    For instance, I start typing "gh github", I then select "github/d3", hit TAB, Alfred search input gets autocompleted to "gh github/d3" and then I can add " issues" and hit enter to get to the issues page of the d3 repo.

    It should already work this way: Example (I typed: "gh github/", DOWN, DOWN, TAB, "is", DEL, DEL, "#")

  9. It works similar to the GitHub command bar and to its update, the keyword is "gh" (example: "gh github/gollum issues").

     

    With enter you can open the entry in your default browser. If you just want to copy the URL of a repo/user/issue, hit cmd+c on an entry. Hit cmd+enter to paste the URL to the front most app. With shift or cmd+y you can open the URL in QuickLook.

     

    You have to login (gh > login <user>) before you can use the workflow. The login command opens a dialog box for the password. The workflow does not save the plain password, only a cookie for the login.

     

    DOWNLOAD | GitHub Repository | Command list

     

    screenshot.png

×
×
  • Create New...