tildebyte / ChucK-plugin-for-ST3

A Sublime Text 3 plugin for ChucK (http://chuck.cs.princeton.edu).
19 stars 2 forks source link

option to define an archive destination folder, (like a local dropbox folder) #44

Closed zeffii closed 10 years ago

zeffii commented 10 years ago

Option to write the file locally to the directory or to also write the file to the users local folder used for their backup service (dropbox, whatever google drive).

If I could figure out OAUTH i'd be able to save zips to github repositories, or multifile gists.

tildebyte commented 10 years ago

Nice, nice idea.

zeffii commented 10 years ago

i've uploaded multifile gists with python before, let me find the code (anonymous uploads only.. but they're easy enough to fork)

zeffii commented 10 years ago
    backup_dir = "C:/Users/whatever/Dropbox/Public/chuck_folder/"
    if os.path.exists(backup_dir):
        print("directory exists!")
        try:
            shutil.copy(zipname, backup_dir)
        except:
            print("something went wrong")

seems to work nicely, will merge tomorrow and add a sublime preference for backup dir.

zeffii commented 10 years ago

couldn't sleep. can't sleep.

done, added backup_dir as option to ChucK.sublime-settings

i'll leave the gist uploading as a different issue, it doesn't need to happen at all..but I might have a look around for old code to this effect and polish it a bit.

closed.