The other day Ricardo came up with an idea which I found great, so we went and implement it. Since then it has grown a nice set of features and I think it’s ready to test the world (well it was a week ago but I haven’t had the time to make the post).
In general the idea is to reduce the ammount of typing you do in the CLI.
I wrote a nice “extensive” readme file, which also showed me the very cool mime type “text/x-trac-wiki” so the link before is directly into SVN with trac wiki syntax formatting, sweet!
Since it’s a one file program there is no need for a installer, so just download it from here. If you are lazy enough the Makefile has a install target, and in case you where wondering the build.xml is just a sample. Although I could make it install the python code just for fun (evil laugh).
Last but not least I finally got my trac up (I’ll add another post for that) but if you find a bug please submit the patch here
Enjoy!
8 comments ↓
[…] with and wallpaper thingy Filed under Uncategorized having Leave a Comment […]
Care to tell us what it does and how without having to download it first?
that’s why you have the README, just click the link and it will show you what it does and how it does it.
It doesn’t really tell me anything, or should I say, it doesn’t seem to do anything I couldn’t just as easily do without calling “with” first. No bashing intended, just don’t see what’s the point. Also, grammar-check the README. That doesn’t help it either.
Yes of course with is a helper tool, you can do without it and it will work just fine. Let me give you an example you are editing a file and running it so you do
#with %s file
>>> vi
— vi is open and you are editing the file, you exit and it goes back to with
>>> python
this will run the file you just edit.
then you cycle until you get it to work.
another example: you are searching for several patterns in a file just do
$ with grep -i %s bigLogFile.txt
>>> someText
>>> someOtherText
that feature will be better ones I implement the “multiple replacer” in which you could do the following
$ with grep -i %s bigLogFile.txt > %s.txt
>>> someText
>>> someOtherText
and it will create a file for each pattern.
Ah! Now I see it. It does help, and it is a simple yet cool idea. You just need a better explanation.
If I get the time (and will :P), I’ll try and re-write the README description, to better describe what it does, and send it to you, so that if you like it, you may replace the existing one. How’s that?
sure I’m better with code then words
This was one of those weird ideas that came up when i was thinking about the ‘with’ construct in some languages i’ve tortured computers with in the past.
Any news on it?
Leave a Comment