nf (VERSION) -- create new file from template
Examples:
nf text
-> Creates new text file (newfile.txt) in current directory.
nf text /path/to/directory
-> Creates new text file in given directory.
nf text /path/to/file
-> Creates new text file in same directory as given file.
nf --list (-l)
-> Lists file templates (e.g. "text" above)
nf --store word /path/to/template.docx (-s)
-> Stores a new template named "word", copying the given file
into ~/.nf/word and updating the database. A new Word file
can now be created with "nf word".
nf --delete word (-d, --remove)
-> Removes the template that was stored by the previous example,
both from the database and the filesystem.
Motivation:
MacOSX lacks the Windows Explorer right-click functionality to
create a new file in the currently browsed folder. That is annoying. With
'nf' and DTerm installed, from any finder directory I can open DTerm and type
"nf word" to create a new Microsoft Word file.
Templates:
nf has two "global" templates: 'text' and 'ruby'. Any local templates you
create with '--store' are saved in ~/.nf.
Project:
Homepage: http://github.com/gsinclair/nf
Licence: MIT