SublimeText/AAAPackageDev — pull request #13 by FichteFoll (2012-07-28 18:35:34+00:00)
Title: Enhanced conversion

So, here is my attempt on a new file conversion method. I kind of like this because it is *dynamic*.

Also not a few new functions for the sublime_lib. Since I am using them anyway in this package I thought, why not just making them accessable for any plugin?

I'm not yet finished, I still have to add build systems, use the new sub-build system (well, I don't fully understand it yet but I think it will be useful here) and make a command that auto-detects the current file. And maybe add the possibility to auto-detect the target file type, though I don't know how I should do that (especially for json since it has no comments and the like).

The reason I already made a pull request is so that you can test this thing. I made it as functional as I could get it without adding more features.

Here is what I used as keybindings to try several:
```json
[
{ "keys": ["alt+,", "alt+j", "alt+p"], "command": "convert_file", "args": {"source": "json", "target": "plist"} },
{ "keys": ["alt+,", "alt+j", "alt+y"], "command": "convert_file", "args": {"source": "json", "target": "yaml"} },
{ "keys": ["alt+,", "alt+p", "alt+j"], "command": "convert_file", "args": {"source": "plist", "target": "json"} },
{ "keys": ["alt+,", "alt+p", "alt+y"], "command": "convert_file", "args": {"source": "plist", "target": "yaml"} },
{ "keys": ["alt+,", "alt+y", "alt+j"], "command": "convert_file", "args": {"source": "yaml", "target": "json"} },
{ "keys": ["alt+,", "alt+y", "alt+p"], "command": "convert_file", "args": {"source": "yaml", "target": "plist"} }
]
```

Let me know what you think so far.