Jump to content

New File


Recommended Posts

 

nf.png.c5614fb86cc48016cc00d3ba591faecf.png 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 ◂

 

preview_nf.gif.83e5ef498b6e0fa9046584d3ae3b86e4.gif

 

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

image.thumb.png.e8f27eea79407edd659a2c67fd0e7910.png
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

image.thumb.png.af9dbd54cb604ca50101a219082036ec.png

  •  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 by zeitlings
v1.2.0
Link to comment
  • 1 year later...
Posted (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 by zeitlings
Moved to main post
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...