Listener for files be edited before sync/replacement
Hey,
First, thanks for the awesome plugin!
**Feature Request:** Do you think it would be possible to have some sort of listener/callback for the files that are going to be modified when triggering replacement/sync?
**Use Case:** We use Perforce as our SCM and it requires that files you are going to edit to first be "opened for edit" using `p4 edit`. Files are read only by default and `p4 edit` makes them writable. So, I'd like to register a listener that opens all the files to be modified for edit in Perforce.
My current workaround is to use `,q` to send the files to my quick fix list and then I have another keybind which does the `p4 edit` on the files in my quickfix list. However, I often forget to do that which can be costly because the search/replace can take a long time on our codebase (it's huge). It would be awesome if I could make that work automatically.
No worries if you don't want to support this as I know my use case is not common.
Thanks!
5 条评论