Wed 28 Jan 2009 (04:01:35)
“Fui”
The fake user interface—copy/paste on the command line.
The Fake User Interface
http://pypi.python.org/pypi/fui
From that page:
Select and copy/move files & Directories on the command-line in a way very similar to how it’s done in a gui with copy/cut and paste.
By selecting filenames/directories into a selection set you can add and remove names quite simply. Once done, you’d go to another directory (even in another console or tab) and then you can copy (or move) the selection to there.
So, you can select some files using normal wildcards; here for example, all the png files:
fui bling blang bong *.png
Then move to another folder
cd someotherplace
Add some more files
fui socks shorts shirts
Then you decide you don’t want shorts or wibble.png
fui --exclude shorts wibble.png
Now you want to copy those somewhere
cd whereIwantStuff
fui --copy
done!
Copying/moving is done recursively when directories are involved. More help is available via —help
The idea was to imitate the process in a typical file-manager gui. I know there are many ways to do this with grep and backticks and other tricks, but I wanted a simple way that I could remember :)
Dev version
Another chap has taken fui on and is working on it here: http://bitbucket.org/mentallaxative/fui2/
~
