Skip to content

Allow Pythonista to download a git file, folder, or repo from the Working Copy app

License

Notifications You must be signed in to change notification settings

cclauss/Pythonista-and-Working-Copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pythonista and Working Copy

alt text alt text

Working Copy --> Pythonista

Note: Working Copy has recently made changes that might make much of this unnecessary!

Please try to share a file or repo from Working Copy to Pythonista (or Editorial) and you will get an "Install a Workflow" message...

Also see: https://github.com/humberry/WorkingCopy

Appex script that enables Pythonista to download a git repo, file, or folder from a share sheet from the Working Copy app

Pre requisites:

Workflow:

  • In Working Copy open a GitHub repository that you want copied into Pythonista
    • if your needs are more modest, you can even select a single file or folder
  • Click the Share icon at the upper right corner of the Working Copy screen
  • Click Run Pythonista Script
  • Click on this script
  • Click the run button

When you return to Pythonista your files should be in the 'from Working Copy' directory.

Pythonista --> Working Copy

Working Copy has a "save to Working Copy" Share Sheet action (you might have to enable in Share Sheet, More...)

Workflow A -- a single file:

  • Open the file of interest in the Pythonista editor
  • Click the wrench icon at the upper right
  • Click the "Share..." button
  • Click "Save in Working Copy" button
  • Select the repo that you want to save the file into
  • Click "Save As..."
  • Change the filename if you want to and click "Save As..." again
  • Click "Just Save" if you want to bundle multiple files into a single commit --or-- Type your commit message and click "Commit"

Workflow B -- a folder or a file:

  • Click Edit in the Pythonista file browser
  • Select the folder or file of interest
  • Click the Share icon at the bottom of the file browser
  • Click "Save in Working Copy" button
  • Select "Import as Repository" or "Save as Directory"

Note: When selecting multiple folders or multiple files, only the first one is processed.

Now we have an end to end workflow: GitHub --> Working Copy --> Pythonista --> Working Copy --> GitHub

See: https://forum.omz-software.com/topic/2382/git-or-gist-workflow-for-pythonista/24

About

Allow Pythonista to download a git file, folder, or repo from the Working Copy app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages