Intercept Refactor File rename or move

Hi,

I'm working on a VCS adapter and I'd like to be able to intercept the IntelliJ IDEA UI actions of Rename and Move in order to perform the rename/move with custom code.
I have a VcsVFSListener listener implemented with performMoveRename method, but this appears to be happening after the file has actually been renamed/moved?

Is there a way that I can provide the mechanism to to the file rename/move?

Regards, Sean.

1 comment
Comment actions Permalink

(better late than never)
The LocalFileOperationsHandler allows you to perform the entirety of move/rename operations yourself. Implementations of this interface are registered through LocalFileSystem.registerAuxiliaryFileOperationsHandler().

0

Please sign in to leave a comment.