williamg / recycle Goto Github PK
View Code? Open in Web Editor NEWRecycle saves you time by saving your commonly used files and templates for future use
Home Page: http://williamg.me/recycle
License: MIT License
Recycle saves you time by saving your commonly used files and templates for future use
Home Page: http://williamg.me/recycle
License: MIT License
It'd be nice to autocomplete both the commands ("new", "use", etc.) but also the names of the templates in the case of "use". So if I have a template called "LatexHomework" and I type in "Latex" I should be able to tab complete "LatexHomework"
This would improve cross-compatibility and allow for better error/exception handling.
It might also be worthwhile to add an optional parameter to rename the thing that gets copied. (Should probably happen after #8 is fixed)
The idea of version-controlled templates isn't new. Recycle should support this (at a minimum, by ignoring ".git" directories in folders) A more intense solution might be optimal, but I'm not sure what it is.
Currently, if you use "new" to save a directory, and then "use" that template, the directory's contents get copied into the current directory. This is inconsistent with how it works with files. If you use "new" to save a file and then "use" that template, the file itself gets copied into the current directory.
I think that if "new" is used on a directory, the directory itself should be saved as a template, not just its contents. So if you were to do
re new DirectoryTest ~/MyDirectory
cd ~/Desktop
re use Directory Test
You would now have a directory called MyDirectory
on the desktop.
Here are the details:
vadim@desktop:~$ sudo pip install recycle
Downloading/unpacking recycle
Downloading recycle-1.0.0.tar.gz
Running setup.py egg_info for package recycle
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/vadim/build/recycle/setup.py", line 7, in <module>
with open(path.join(here, "DESCRIPTION.md"), encoding="utf-8") as f:
File "/usr/lib/python2.7/codecs.py", line 881, in open
file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: '/home/vadim/build/recycle/DESCRIPTION.md'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/vadim/build/recycle/setup.py", line 7, in <module>
with open(path.join(here, "DESCRIPTION.md"), encoding="utf-8") as f:
File "/usr/lib/python2.7/codecs.py", line 881, in open
file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: '/home/vadim/build/recycle/DESCRIPTION.md'
----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/vadim/.pip/pip.log
vadim@desktop:~$ pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)
Unit tests would really help speed the development by making sure things don't break.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.