zeitlings Posted April 10, 2023 Share Posted April 10, 2023 (edited) New File The workflow does something very simple, it allows you to quickly create new files in the Finder. If, like me, you know that awkward dance you sometimes have to do, just to get a new text, source, or bib file, you might like this one. ‣ Download on Github ◂ Usage Keyboard Shortcut If the post-haste behavior is enabled, new files are created the same way as folders are when you use the shortcut (default: ⌥+⇧+N). Otherwise you will be prompted with the input mask where you can configure the file name and type. Keyword The workflow will pick up on your location in the Finder and create the new file there. If you use the keyword (default: new), the most recently used Finder window will be selected as the destination. If no Finder window is currently open, the file will be created in the configurable fallback location. Alternatively, press ⌘+↩ to explicitly specify an output location. Creating a New File ⌘ to view the full path to the target folder. ↩ to create the file with configured settings. ⌘+⇧+↩ to create the file with clipboard contents. ⌥+⇧+↩ to create the file without clipboard contents. TAB to accept and expand the auto-suggested filename. Bonus: In addition to all plain-text type files, the workflow can also quickly create docx, doc, odt, rtf, rtfd files and Xcode playgrounds. Configuration The Fallback Location will be used when activating the workflow with the keyword, but no Finder window is currently open. Otherwise the most recently used Finder window is used as destination. If the post-haste behavior is disabled, the shortcut will also prompt you with the input mask. If the option to create new files with the contents of the clipboard is disabled, you can still choose to create new files with the clipboard contents by using the input mask and enabling the correlating modifier. Similarly, you can opt out on a per-file basis. Edited July 17 by zeitlings v1.2.0 Link to comment
sepulchra Posted April 11, 2023 Share Posted April 11, 2023 You are on a tear! zeitlings 1 Link to comment
zeitlings Posted April 30 Author Share Posted April 30 (edited) I just updated the workflow with some fixes, convenience features, optional auto-suggest and added support for creating Xcode playgrounds. v1.2.0 Added support for new Xcode Playgrounds Added optional auto-suggest for file extensions v1.1.0 Added output location selection (keyword modifier: ⌘) Added configurable keyword (default: new) Added keyword to open the workflow configuration (default: :new) Fixed line breaks not being preserved when creating a new file via the input mask Improved creating new file with initial input being preserved Edited July 17 by zeitlings Moved to main post Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now