Page 1 of 1

Virtual filesystem - intercepting Edit

Posted: Wed 27 Aug, 2014 15:57
by pepak
Hi!

I wrote a plugin which implements a virtual filesystem and I would like to intercept the Edit function to edit items in a user-friendly dialog (much like Session Manager in NetBox). Which functions should I implement and export? I don't see any obvious candidate in the Panels API, except for ProcessPanelInputW, but that one would take a lot of resources and probably still fail in case the user selected Edit from menu. Which function am I overlooking? Thanks.

Re: Virtual filesystem - intercepting Edit

Posted: Wed 27 Aug, 2014 16:01
by DrKnS
GetFilesW + OPM_EDIT

Re: Virtual filesystem - intercepting Edit

Posted: Wed 27 Aug, 2014 16:10
by pepak
Ah. It seems that this way I could implement a special handler for OPM_EDIT, but generate regular temp files for other operating modes?

Which operating modes are used for creation of new files (SHIFT+F4) and for running a file (ENTER)?

Thanks.

Re: Virtual filesystem - intercepting Edit

Posted: Wed 27 Aug, 2014 18:20
by DrKnS
i suggest you to take a look at the source code of existing filesystem plugins like FTP or NetBox, and the source code of Far itself.

Re: Virtual filesystem - intercepting Edit

Posted: Wed 27 Aug, 2014 18:45
by pepak
I did. But it's rather difficult to separate the one function required for this task from all the rest. Once I know where to look, it's easy enough to discover what I need, but knowing where to look is the problem.

Re: Virtual filesystem - intercepting Edit

Posted: Thu 28 Aug, 2014 17:19
by pepak
Never mind, implemented it using ProcessPanelInputW and it seems to work OK.