Jump to content

jdno

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by jdno

  1.  

    That would be ideal, but the problem with that is it would require that the subl command has been linked to /usr/local/bin/.
     
    It could use subl from within the application bundle, but what is the workflow supposed to do if both ST2 and ST3 are installed?
     
    The workflow will open the .sublime-project file with whatever application you have set to open that type of file.
     
    So if you want that to be the subl command, create an application with Automator with a Run Shell Script action that calls subl with the passed file.
     
    Set that as the default application for .sublime-project files and it will have the added advantage of also restoring the workspace when double-clicking a .sublime-project file in Finder.

     

     

     

    Thanks for that tip! Makes this workflow really awesome. Can you include it on the Packal page?

  2. Description

     

    This workflow allows you to create .gitignore files with Alfred. It uses the templates from the github/gitignore repository, and combines them into a single file that you can copy into your project. The templates are stored on your machine, so you have easy access to them, even when you are on the move and don't have internet connectivity.

     

    Download

     

    The workflow can be downloaded from Packal:

     

    gitignore by jdno

     

    Requirements

     
    Although it should be pretty self-explanatory, these are the requirements for this workflow:
    • OS X
    • Alfred 2
    • Git
     
    Installation
     
    After installing the workflow, you need to download the templates. Enter the following command into Alfred:
    gitignore-update
    Executing this will clone the github/gitignore repository, and make the templates in it available for offline use.
     
    Usage
     
    To use this workflow, simply type in:
    gitignore

    You will now see a list of all templates installed on your machine. You can search for specific templates by typing in their name. Selecting a template will place add it to the command line.

     
    If you've selected all templates that you want to combine, simply select the first item in the list called "Build .gitignore file". This will start the generation of the template, and open it in TextEdit once it has been created.
     
    Copy & paste the contents of the file and paste them into the `.gitignore` file in your project.
     
    Have fun!
     
    I hope some of you will find this workflow useful. If you experience any problems, please tell me so that I can fix them.  :)
×
×
  • Create New...