pearofducks / ansible-vim

A vim plugin for syntax highlighting Ansible's common filetypes
MIT License
800 stars 98 forks source link

Ability to goto role file #101

Closed mtyurt closed 4 years ago

mtyurt commented 4 years ago

I've implemented a custom mapping that behaves like gf but goes to the role under cursor's tasks/main.yml file. I'm not sure if it's beneficial for general use, but I can open a PR about it with following functionalities:

pearofducks commented 4 years ago

That's great! Thanks for reaching out to add it so other's can benefit.

Do you think it'd work to have these mappings linked to from the README? Either a gist or repo you can put up. Alternatively we could put them directly in the README, but I don't know that that's any more helpful.

I'd like to get these available for others to use, but not increase the maintenance surface of this plugin anymore - as I'm the only maintainer and have other projects as well.

mtyurt commented 4 years ago

Sure, that's understandable. Here is the permalink to the script. This is my first official custom function implementation, so there might be issues :)

The alternatives are:

WDYT?

pearofducks commented 4 years ago

I think a Gist makes sense, you'd have to explicitly take action on the Gist in order for it to go away.