motion icon indicating copy to clipboard operation
motion copied to clipboard

Make motion -mode decls -dir ... recursive?

Open rmzg opened this issue 3 years ago • 0 comments

I suppose this is more of an issue for vim-go but my understanding is that it uses motion entirely to implement the :GoDecls and :GoDeclsDir feature so any changes would need to be made here first.

Is it possible/desirable/allowable to make the directory version of -mode decls recursive to all subdirectories? I have a gomod style project that has a number of subdirectories implementing child packages for the main codebase and it would be much more helpful if :GoDeclsDir returned every declaration across my entire codebase instead of just the ones for whatever child directory the current file I'm editing is inside.

Presumably this would be supported by an additional flag/configuration setting so as to not break backwards compatibility, I suggest either just a plain -recursive style flag or allowing the -dir flag to take multiple arguments so you could call it as -dir maindir/* or something similar.

rmzg avatar Mar 08 '21 17:03 rmzg