vim-hdevtools icon indicating copy to clipboard operation
vim-hdevtools copied to clipboard

Add bindings for the command 'findsymbol'

Open dan-t opened this issue 11 years ago • 6 comments

Hi Bit,

the hsimport command and the Vim plugin vim-hsimport are now using the 'findsymbol' command.

https://github.com/dan-t/hsimport https://github.com/dan-t/vim-hsimport

Is there any chance to get my additions of hdevtools and vim-hdevtools merged?

Greetings, Daniel

dan-t avatar Dec 26 '13 16:12 dan-t

I'll look over this hopefully soon when I get some time.

bitc avatar Dec 27 '13 09:12 bitc

Hi Bit,

the additional changes here are to call the 'findsymbol' command with source files that might contain the desired symbol, to be able to extend the import list by modules of the current project.

Currently there's a quite simple heuristic to find the potenial source files by just grepping through the export list of the module.

So there's certainly room for improvement, but the worst thing that might happen is, that you just can't select some modules of your current project for the import.

Greetings, Daniel

dan-t avatar Jan 04 '14 14:01 dan-t

Perhaps it makes more sense to remove the "grepping" code from vim-hdevtools and let the caller of 'findsymbol' determine the source files.

So that 'findsymbol' would look like:

function! hdevtools#findsymbol(identifier, srcFiles)
   ...

Greetings, Daniel

dan-t avatar Jan 04 '14 17:01 dan-t

I've now changed 'hdevtools#findsymbol' to:

function! hdevtools#findsymbol(identifier, srcFiles)
...

The mostly application specific part of retrieving of the source files is now removed.

Greetings, Daniel

dan-t avatar Jan 05 '14 14:01 dan-t

Is there still interesting in this pull request?

bitc avatar Nov 17 '18 16:11 bitc

Personally I do not need it anymore. ˋvim-hsimportˋ contains pretty much the code of this pull request.

dan-t avatar Nov 17 '18 18:11 dan-t