PCManFM Mod - User-Definable Commands And More
Posted: Sat Feb 27, 2010 8:00 pm
Hello LXDEers. I just got around to checking out this forum. I would like to invite you to give my mod of PCManfFM 0.5.2 a try. After dropping KDE and changing to Openbox, I selected PCManFM for my FM, but I missed having some commands I could customize, and a few other features. So I wrote this mod for my own use and have been sharing it on my blog and on the Arch forum for awhile (thread link).
I've also spoken with PCMan about adding some of these ideas to his new version and he seemed very receptive. So if you like the features in the mod please let him know. I haven't had much success running the git versions of his rewrite yet, which is why I modded the stable 0.5.2, but I'm going to keep an eye on the new version.
You can check out the website for details on the mod and download. It can be installed alongside the normal 0.5.2 version, or if you use Arch you can use the AUR. Others can use the installmod scripts that builds and installs it with one command.
Below are the key features of the mod reprinted.
1) Adds five user-definable commands to the right-click and Tools
menus (and keys F4, F6-F9). The menu names and commands are
derived from .desktop files. When run, all selected
files are passed to the command. (see NOTES below)
2) An example opener script is included as the default F4
user command, which opens all selected files. (see NOTES below)
3) A "Run Command..." (Ctrl-R) has been added to the Tools and
right-click menus. This allows the user to run an
arbitrary command line, include %U to insert all selected
files into the command, and optionally run the command
in a terminal to see the output.
4) When a single symlink is selected, its target and target's
size are displayed in the status bar
5) A "Paste as Link" command has been added to the edit menu and
Ctrl-Shift-V to paste links to files on the clipboard
6) The default home folder can be set in the main config file
(see NOTES below)
7) "no_execute" can be set in the main config file to prevent
launching of executables (see NOTES below)
8) A different program icon is used when in super user mode
9) The Go|Home key is changed from Alt-Home to Escape
10) The default button on the delete dialog is changed to Yes
11) When enter is pressed in the Rename/Overwrite dialog, rename is
assumed
12) Ctrl-F is assigned to Create New Folder instead of search
(pressing any normal key still initiates a search)
13) The F5 Refresh function has been improved
14) .desktop files display their actual filenames rather than name
15) File list is given focus when a dir is entered or a new tab added
16) Copying and pasting a single folder into its own parent now
asks for a new name rather than attemting to copy the folder into
itself. Pasting a folder into a selected folder no longer works.
17) Bugfix: Right-clicking on a dangling sym-link now displays menu
18) Bugfix: A bug which prevented opening multiple folders on the
pcmanfm command line has been corrected
19) Bugfix: Fixed error message on create new folder cancel
20) Bugfix: Fixed syntax errors in ca.po to prevent make error
There are also two examples on the website that show how to add a right-click command to resize all selected image files to any size you select, and how to create an archive of all selected files. Of course, the main power of this mod is that it allows you to customize the commands.
Feel free to let me know how it works for you.
http://igurublog.wordpress.com/downloads/mod-pcmanfm/
http://aur.archlinux.org/packages.php?ID=34819
http://bbs.archlinux.org/viewtopic.php?id=91426
I've also spoken with PCMan about adding some of these ideas to his new version and he seemed very receptive. So if you like the features in the mod please let him know. I haven't had much success running the git versions of his rewrite yet, which is why I modded the stable 0.5.2, but I'm going to keep an eye on the new version.
You can check out the website for details on the mod and download. It can be installed alongside the normal 0.5.2 version, or if you use Arch you can use the AUR. Others can use the installmod scripts that builds and installs it with one command.
Below are the key features of the mod reprinted.
1) Adds five user-definable commands to the right-click and Tools
menus (and keys F4, F6-F9). The menu names and commands are
derived from .desktop files. When run, all selected
files are passed to the command. (see NOTES below)
2) An example opener script is included as the default F4
user command, which opens all selected files. (see NOTES below)
3) A "Run Command..." (Ctrl-R) has been added to the Tools and
right-click menus. This allows the user to run an
arbitrary command line, include %U to insert all selected
files into the command, and optionally run the command
in a terminal to see the output.
4) When a single symlink is selected, its target and target's
size are displayed in the status bar
5) A "Paste as Link" command has been added to the edit menu and
Ctrl-Shift-V to paste links to files on the clipboard
6) The default home folder can be set in the main config file
(see NOTES below)
7) "no_execute" can be set in the main config file to prevent
launching of executables (see NOTES below)
8) A different program icon is used when in super user mode
9) The Go|Home key is changed from Alt-Home to Escape
10) The default button on the delete dialog is changed to Yes
11) When enter is pressed in the Rename/Overwrite dialog, rename is
assumed
12) Ctrl-F is assigned to Create New Folder instead of search
(pressing any normal key still initiates a search)
13) The F5 Refresh function has been improved
14) .desktop files display their actual filenames rather than name
15) File list is given focus when a dir is entered or a new tab added
16) Copying and pasting a single folder into its own parent now
asks for a new name rather than attemting to copy the folder into
itself. Pasting a folder into a selected folder no longer works.
17) Bugfix: Right-clicking on a dangling sym-link now displays menu
18) Bugfix: A bug which prevented opening multiple folders on the
pcmanfm command line has been corrected
19) Bugfix: Fixed error message on create new folder cancel
20) Bugfix: Fixed syntax errors in ca.po to prevent make error
There are also two examples on the website that show how to add a right-click command to resize all selected image files to any size you select, and how to create an archive of all selected files. Of course, the main power of this mod is that it allows you to customize the commands.
Feel free to let me know how it works for you.
http://igurublog.wordpress.com/downloads/mod-pcmanfm/
http://aur.archlinux.org/packages.php?ID=34819
http://bbs.archlinux.org/viewtopic.php?id=91426