项目作者: cpimhoff

项目描述 :
An Alfred 3 workflow which allows for the fast creation of new documents and folders
高级语言:
项目地址: git://github.com/cpimhoff/alfred3-newFiles.git
创建时间: 2016-05-19T19:37:16Z
项目社区:https://github.com/cpimhoff/alfred3-newFiles

开源协议:MIT License

下载


alfred3-newFiles

An Alfred 3 workflow which allows for the fast creation of new documents and folders.

Usage

New Files takes in the following parameters to create a new file:

  • File Type (from defaults list or specify file extension)
  • File Name
  • Location (from defaults list or browse for folder)

For non-folders, you can then create the document with specific contents:

  • No Contents (blank)
  • Contents of Clipboard (text only)
  • Type Contents in Alfred Window

Configuration

New Files supports modifying the behavior of the workflow in simple ways.

Options

Certain options can be configured in the Workflow Enviromental Variables:

  • openNewFiles = ‘default’: New files will automatically be opened in the default application after being created.
  • openNewFiles = ‘none’: New files will not be automatically opened.
  • openNewFolders = ‘finder’: New folders will automatically be opened in Finder.
  • openNewFolders = ‘terminal’: New folders will automatically be opened in a new Terminal Window.
  • openNewFolders = ‘none’: New folders will not be automatically opened.

Editing Defaults Lists

To edit the defaults lists of File Type and Location, configure the List Filter nodes in the workflow tree.

File Types

Ensure the args parameter of any option is the extension of the file type. ‘custom’ is reserved for the workflow.

Locations

Ensure the args parameter of any option is a valid path to the folder. Use ‘~/‘ to start the path at the User folder. ‘browse’ is reserved for the workflow.