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 Note
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. You can also configure the default extension for new files.


The workflow will pick up on your location in the Finder and create the new file there. If you use the keyword, 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.


Modifiers

  • Hold to view the full file path.
  • Hold ⌘+⇧ before hitting enter to enforce creating the file with clipboard contents.
  • Hold ⌥+⇧ before hitting enter to enforce creating the file without clipboard contents.

Bonus: In addition to all plain-text type files, the workflow can also quickly create docx, doc, odt, rtf and rtfd files for you.


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
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

 

@Mods, could you update the documentation in the first post with this?

 

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.14400737e8619c50efc18eb210d126e6.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.6659a332c876f4d9483c2d0c18b67da4.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.

 

Bonus: In addition to all plain-text type files, the workflow can also quickly create docx, doc, odt, rtf, rtfd files and Xcode playgrounds.


Auto-Suggest
image.thumb.png.40c798ec4416a73224b82785c90f3b6a.png

If auto-suggest is enabled, press TAB to accept and expand the suggested filename.

Edited by zeitlings
formatting
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...