Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danielbayley/alfred-finder-new-item

Swiftly create new items in Finder with support for templates.
https://github.com/danielbayley/alfred-finder-new-item

alfred coffeescript file finder macos npm osx packal templates workflow

Last synced: about 2 months ago
JSON representation

Swiftly create new items in Finder with support for templates.

Awesome Lists containing this project

README

        

[![badge][npm]][package]
[![badge][downloads]][package]

Finder New Item _[Alfred]_ [workflow]
=====================================
Swiftly create new items in Finder with support for [templates](#templates).

demo
\* Demo using the _[mnml]_ Alfred [theme].

Templates
---------
Templates are sourced from the workflow itself by default, but this can be overridden by a `TEMPLATES` [environment variable] specifying an alternative folder path.

[Symbolic links] at the root level of the templates directory will be followed such that the original item is copied.

If the selected template would replace an existing item, the two will first be compared using your favourite [diff tool].

The workflow will respect a `.gitignore` file in the templates directory, which can itself also be used as a template.

select to edit template.
select to reveal original template.
select to remove template.

Install
-------
This workflow requires [Node].js (easily available with _[Homebrew]_) and [Alfred] 3 with the paid _[Powerpack]_ upgrade.

~~~ sh
brew install node
npm install -g alfred-finder-new-item
~~~

License
-------
[MIT] © [Daniel Bayley]

[MIT]: LICENSE.md
[Daniel Bayley]: https://github.com/danielbayley

[alfred]: http://alfredapp.com
[mnml]: https://github.com/danielbayley/alfred-mnml-light
[theme]: http://alfredapp.com/help/appearance
[powerpack]: https://alfredapp.com/powerpack
[workflow]: http://alfredapp.com/workflows
[packal]: https://packal.org/workflow/finder-new-item
[awm]: https://github.com/jonathanwiesel/awm

[npm]: https://flat.badgen.net/npm/v/alfred-finder-new-item
[downloads]: https://flat.badgen.net/npm/dt/alfred-finder-new-item
[package]: https://npmjs.com/package/alfred-finder-new-item
[node]: https://nodejs.org
[homebrew]: http://brew.sh

[environment variable]: http://alfredapp.com/help/workflows/script-environment-variables
[symbolic links]: https://en.wikipedia.org/wiki/Symbolic_link
[diff tool]: http://git-tower.com/blog/diff-tools-mac