pcmanfm-qt icon indicating copy to clipboard operation
pcmanfm-qt copied to clipboard

Add plugn support, make it extensible like the gtk+ version.

Open PCMan opened this issue 11 years ago • 10 comments

The gtk+ version of pcmanfm/libfm can be extended in several places by using modules. Try to copy that behaviour to the Qt version.

PCMan avatar Apr 01 '14 04:04 PCMan

While we are on the topic of plugins, my main personal request regarding those is the ability to integrate with custom file backends. For example:

  • Archive support (zip, rar, tar, ...) including custom formats (mpq)
  • Dropbox support
  • Git plugin support (think tortoisegit)
  • Probably implement things such as ftp, sftp as plugins
  • Implementing the trash as a plugin would be a nice proof of concept.

jleclanche avatar Apr 01 '14 04:04 jleclanche

On Tue, Apr 1, 2014 at 12:29 PM, Jerome Leclanche [email protected]:

While we are on the topic of plugins, my main personal request regarding those is the ability to integrate with custom file backends. For example:

  • Archive support (zip, rar, tar, ...) including custom formats (mpq)

Actually, this can be done without plugins. (Use DES-EMA support)

  • Dropbox support
  • Git plugin support (think tortoisegit)
  • Probably implement things such as ftp, sftp as plugins

This is not needed. Currently sftp and ftp are provided by gvfs and can work out of the box.

  • Implementing the trash as a plugin would be a nice proof of concept.

This is provided by gvfs already. For an environment without gvfs, a simple non-GUI gio plugin can do this. The file manager is the wrong place to put this.

Reply to this email directly or view it on GitHubhttps://github.com/lxde/pcmanfm-qt/issues/40#issuecomment-39169908 .

PCMan avatar Apr 01 '14 04:04 PCMan

Hi, plugin system to pass copy/move file/folders to external program will be greate for me.

alphaonex86 avatar Dec 19 '19 14:12 alphaonex86

@alphaonex86 pcmanfm-qt has a detailed custom actions support. If the external program in question has command-line options, you could create custom actions for sending file operations to it.

@jleclanche Most probably, the same is true for Dropbox and git jobs. Other features mentioned in this old report are already covered (as PCMan explained).

Custom actions are the least known -- but very flexible -- feature of pcmanfm-qt. If something is needed, I think, it's a good help doc (see https://github.com/lxqt/pcmanfm-qt/issues/550).

tsujan avatar Dec 19 '19 14:12 tsujan

Ultracopier support CLI, but I'm totally lost about what I need to do.

EDIT: ultracopier cp sources/ destinations/ ultracopier mv sources/ destinations/

alphaonex86 avatar Dec 19 '19 14:12 alphaonex86

Ultracopier support CLI

That means your problem is solved :)

I'm totally lost about what I need to do.

You just need to create "custom actions" (for yourself and/or your users). The good news is that your custom actions will work with any file manager that supports them. I think Nemo and Thunar do; Nautilus did before -- I don't know about its current state.

The custom actions documentation is attached to this comment: https://github.com/lxqt/pcmanfm-qt/issues/550#issuecomment-500636799

tsujan avatar Dec 19 '19 15:12 tsujan

I have see it, but all my try to redact a working .desktop or maybe enable it failed. Can you write a simple example? And simple how to integrate?

alphaonex86 avatar Dec 19 '19 15:12 alphaonex86

Can you write a simple example? And simple how to integrate?

You could download the attachment and read the file Explanation for an example: these custom actions add emblems to files/folders. Making actions for copy/paste/delete with your app should be even easier.

emblems.zip

EDIT: Added more explanation

tsujan avatar Dec 19 '19 16:12 tsujan

Well after lot of try, the example not work. No new menu entry anywhere. I don't see for now how making actions for copy/paste/delete with my app.

alphaonex86 avatar Dec 19 '19 17:12 alphaonex86

That was the most practical help I could offer -- and it works.

You could find many explanations on the Internet by searching "custom file manager actions".

tsujan avatar Dec 19 '19 17:12 tsujan