vim-gf-user icon indicating copy to clipboard operation
vim-gf-user copied to clipboard

re-define priority to extension execution order:

Open zhaocai opened this issue 11 years ago • 5 comments

[priority < 1000] --> built-in |gf| --> [priority >= 1000]

zhaocai avatar Apr 19 '13 19:04 zhaocai

Would you mind describing why this change is useful?

kana avatar Apr 20 '13 03:04 kana

some ftplugin should be tried before norm! gf https://github.com/zhaocai/vim-gf-python

zhaocai avatar Apr 20 '13 04:04 zhaocai

I couldn't understand your example. It seems to me that there is no reason to change the current order even in your example. What is the problem you encountered with the current order?

kana avatar Apr 20 '13 05:04 kana

support you have

import some_module

and you also have a file named some_module.py .

The current order would try to open some_module.py first.

zhaocai avatar Apr 20 '13 06:04 zhaocai

I still don't agree your opinion:

  • If you are developing some_module, it doesn't matter which method — the built-in gf or your vim-gf-python — is invoked. You'd like to open the some_module.py.
  • If you are not developing some_module, it seems to be a bad habit to name a file which conflicts with an existing module.

kana avatar Apr 20 '13 06:04 kana