Description: This is a small utility to launch programs, similar to gnome-run-dialog or gmrun. It tries to keep the best features and improve the worst ones.
FEATURES: -completion for programs in PATH and filenames; ex: type su, press tab and cycle through sudo, sudoedit, sum, ... (control+tab to cycle back) type /b and complete to /bin and /boot; -completion for element in history; ex: type su, press up or down and cycle through all commands in history starting with su.. (quite useful..) -run commands in terminal (ex top, control+enter) -run commands as root (ex. nautilus, shift+enter) -open files with default application: ex: /home/user open nautilus in user home folder, /home/user/party.jpg open picture viewer,... http://ubuntu.com -a nice program icon
There are lots of bugs but it's a young project. Enjoy it. Let me know wht do you think.
TODO: -improve gui, by adding a list of know applications. I would like to receive suggestions. -packaging stuff (deb, rpm).. work in progress. -bug fixing, please report bugs! -whatever you like me to do
EDIT: fixed a bug, released new versionLast changelog:
v0.3.2 released 03-02-2009 - fixed bug in filenames with whitespaces
v0.3.1 released 31-01-2009 - fixed bug in history behaviour - changed icon choose method - if there is only one match, put the cursor at the end of the line. (less tabbing) - improved sorting of files and directories: first visible dirs and files, then hidden dirs and files
v0.3 released 17-01-2009 - program icon added - fixed bug in filenames with whitespace..
v0.2.2 released 14-01-2009 - fixed bug in installation
v0.2.1 released 13-01-2009 - fixed bug in history behaviour
v0.2, released 13-01-2009 - files and directories are opened with default application with xdg-open - command history is now on a separate file. no more in ~/.bash_history - added control + tab to cycle back through completion list - cut, copy, paste, select all are now handled correctly - sort path matches by alphabetical order - "smarter" label behaviour - improved startup (just a little) - BIG code cleanup - rewritten match finding function - lots of bugs fixed
Well, i'm not actually tweaking the code anymore, but if you can program in python and if you can find your way through that messy code you can surely change the terminal emulator that is fired up.
Cheers
It appears "run" requires gnome-terminal to run apps in terminal. Would it possible to make it call x-terminal-emulator instead?
x-terminal-emulator is the command for calling the default terminal, whatever one it may be.
Nice work, bro ....
I love it ...
But, reading ~/.bash_history for history is a really bad idea coz when I recall history by "Alt + UP " it shows a bunch of commands like "ls , grep " ....
Why not make a simple log file instead ?
Sorry for that, but i initially made like it is because i wanted to have access to the commands i usually run in the terminal: top, sudo apt-get ... , etc.
You make a good point, i'll think to this.
hi,thanks very useful! could you make it not dependent on the window manager?? i mean, if someone has compiz this has to be fixed in some ways...let me know what you can do..
cheers
> i mean, if someone has compiz this has to be fixed in some ways...let me know what you can do..
Why ? I am using compiz with gnome but I got no problem ...
Ratings & Comments
11 Comments
Well, i'm not actually tweaking the code anymore, but if you can program in python and if you can find your way through that messy code you can surely change the terminal emulator that is fired up. Cheers
It appears "run" requires gnome-terminal to run apps in terminal. Would it possible to make it call x-terminal-emulator instead? x-terminal-emulator is the command for calling the default terminal, whatever one it may be.
Nice work, bro .... I love it ... But, reading ~/.bash_history for history is a really bad idea coz when I recall history by "Alt + UP " it shows a bunch of commands like "ls , grep " .... Why not make a simple log file instead ?
Sorry for that, but i initially made like it is because i wanted to have access to the commands i usually run in the terminal: top, sudo apt-get ... , etc. You make a good point, i'll think to this.
I wrote a simple installation script, configuring keyboard shorcut settings for gnome ... #! /bin/sh echo "Creating Directory ..." mkdir "$HOME"/.run sleep 1 echo "Copying Contents ..." cp -r ./* "$HOME"/.run/ sleep 1 echo "Configuring Settings ..." gconftool-2 -s -t string "/apps/metacity/global_keybindings/run_command_1" "<Alt>F3" gconftool-2 -s -t string "/apps/metacity/keybinding_commands/command_1" "$HOME/.run/run.py" sleep 1 echo "----------------------" echo "Installation Finished!" echo "----------------------"
hi,thanks very useful! could you make it not dependent on the window manager?? i mean, if someone has compiz this has to be fixed in some ways...let me know what you can do.. cheers
For cross-wm (KDE, GNOME, XFCE), xbindkeys will work ...
> i mean, if someone has compiz this has to be fixed in some ways...let me know what you can do.. Why ? I am using compiz with gnome but I got no problem ...
Sorry, i thought that the gconf command was dependent on the window manager...isn't it??
I think, in run.py, the first line, /us/bin/env, should be /usr/bin/env ...
yep.. fixed..