├── LICENSE ├── New Files.alfredworkflow └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Charlie Imhoff 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /New Files.alfredworkflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpimhoff/alfred3-newFiles/a6ead0243ec9041baadad944dc42cd6de3adce53/New Files.alfredworkflow -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # alfred3-newFiles 2 | An Alfred 3 workflow which allows for the fast creation of new documents and folders. 3 | 4 | ## Usage 5 | _New Files_ takes in the following parameters to create a new file: 6 | - File Type (from defaults list or specify file extension) 7 | - File Name 8 | - Location (from defaults list or browse for folder) 9 | 10 | For non-folders, you can then create the document with specific contents: 11 | - No Contents (blank) 12 | - Contents of Clipboard (text only) 13 | - Type Contents in Alfred Window 14 | 15 | ## Configuration 16 | _New Files_ supports modifying the behavior of the workflow in simple ways. 17 | 18 | ### Options 19 | Certain options can be configured in the **Workflow Enviromental Variables**: 20 | 21 | - **openNewFiles = 'default':** New files will automatically be opened in the default application after being created. 22 | - **openNewFiles = 'none':** New files will not be automatically opened. 23 | - **openNewFolders = 'finder':** New folders will automatically be opened in Finder. 24 | - **openNewFolders = 'terminal':** New folders will automatically be opened in a new Terminal Window. 25 | - **openNewFolders = 'none':** New folders will not be automatically opened. 26 | 27 | ### Editing Defaults Lists 28 | To edit the defaults lists of File Type and Location, configure the **List Filter** nodes in the workflow tree. 29 | 30 | ##### File Types 31 | Ensure the _args_ parameter of any option is the extension of the file type. **'custom' is reserved for the workflow.** 32 | 33 | ##### Locations 34 | 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.** 35 | --------------------------------------------------------------------------------