thinca / vim-ref

Integrated reference viewer.
204 stars 39 forks source link

change the kind name of each ref plugin, such as "ref/{plugin-name}" #50

Closed Jagua closed 9 years ago

Jagua commented 9 years ago

Proposal

Each ref plugin has the unite kind name such as "ref/{ref-source-name}". And each "ref/{ref-source-name}" kind has "ref" kind as its parent.

thinca commented 9 years ago

What is your purpose?

Jagua commented 9 years ago

ok. if i make an {action-for-A} by unite#custom#action for {ref-source-A}, {action-for-A} is showing all other ref sources now.

but, even if each ref plugin has their own kind (="ref/{ref-source-name}"), {action-for-A} is only showing {ref-source-A}.

i think {ref-source-B} will be better NOT to show {action-for-A}.

and in the case of making some actions by {ref-source-B or/and C or/and ...}, my PR prevents conflicting on popular kind names such as "preview".

thinca commented 9 years ago

You can define a custom action for a source. See :help unite-implicit-kind-for-a-source

Jagua commented 9 years ago

Oh...i made a mistake in "source/{name}/{kind}" at the help.

i successed call unite#custom#action('source/ref/{ref-source-name}/ref', 'preview', myaction).

thank you for your help.