Osmose / advanced-open-file

Open files and folders in Atom easily.
https://atom.io/packages/advanced-open-file
Other
118 stars 20 forks source link

Add emitter and emit event when files are created #28

Closed Osmose closed 9 years ago

Osmose commented 9 years ago

A continuation of the request from PR #16.

@Krzysztof-Cieslak Did you want the event to be triggered only when a file is created, or when a file is opened? If the "Create files instantly" preference is disabled, then the file isn't created until it is saved, and we can't really emit an event in that case.

Krzysztof-Cieslak commented 9 years ago

This is unfortunate limitation but don't think we can do anything about it. As for now I would emit 2 events - one for "on file opened", second one "on file created" (if "Create files instantly" is enabled). I'm actually mostly interested in this second case, even if it requires some preferences setup.

What do You think about it? It would requires updates in PR.

Osmose commented 9 years ago

What do You think about it? It would requires updates in PR.

Sounds fine to me!