ctrlsf.vim icon indicating copy to clipboard operation
ctrlsf.vim copied to clipboard

Request Change file name if changed in CtrlSF

Open dominikduda opened this issue 7 years ago • 3 comments

Hello

Example usage: I want to rename classMyClass to sth else. I have to rename the class inside every file, but I also have to rename file defining it MyClass and test for it MyClassSpec. Since that's kinda correlated, I think it would fit the plugin nicely.

If I would search for MyClass I could automatically rename file names and usages inline if changes in paths to files in CtrlSF buffer would be interpreted.

dominikduda avatar Sep 19 '18 21:09 dominikduda

Sorry for this late reply. It's not an easy job to recognize filename change, since the lines does not always match (because ctrlsf accepts your deletion of some lines).

dyng avatar Oct 03 '18 03:10 dyng

What file path would be prepended by File 1:, File 2: ? It wouldn't make it less readable but would make files identifiable.

dominikduda avatar Oct 03 '18 08:10 dominikduda

@dominikduda Not such a perfect solution. I'll consider it later, but neither the way, the implementation requires a lot of time. Thanks for your suggestion all the same.

dyng avatar Oct 04 '18 03:10 dyng