A gtk run dialog
Type in a command, and press return to run it. Tab, up, and down can be used to cycle through possible completions for that command. Delete can be used to remove a completion from the list and history. Escape dismisses the completions or exits. Return runs a command, and Shift+Return runs a command in a terminal.
If you press tab on an empty entry, then you will get a list of recently run commands in the order that you last ran them. Otherwise, it will attempt to complete an executable, directory, or file. The completions will then be ordered by how many times they were previously run. A name beginning with an equals symbol will be expanded based on where it is located in the system path. If no completions are found, then your input will be manipulated based on spell checking to find any possible completions.
The programs used to run files, directories, and urls can be edited in ~/.drunrc:
http-handler = firefox
ssh-handler = xterm -e ssh
file-handler = gnome-open
directory-handler = nautilus
terminal-handler = xterm -e
Normally, drun will run commands in the current directory it was launched in. If a single directory is passed in as a parameter, then it will run the command in that directory. If a non-directory or multiple files are passed in as a parameter, then it will run the command in the directory of the first parameter, and append the list of files to the end of the command.
Custom run actions can be added to thunar's right-click menu by configuring them from thunar's edit menu.
You can add the following commands to be able to run commands in a directory or on selections of files from a thunar window. Similar actions are possible from other file managers such as nautilus.
Set command to: drun %N
Run in Directory:
Set command to: drun
- Tab completion
- Runs files, directories, urls, and executables
- Runs on thunar/nautilus file and directory selections
- Spelling correction
- Recursive directory completion
- Completions ordered using history
- Completes parameters from history
In a hurry? Add it to your Download Basket!
What's New in This Release:
- Run terminal on shift+return or control+return
- Run terminal in directory if shift+return or control+return is pressed with a path
- Modified reverse search behaviour
- Complete directories from history as well as file system