occivink / kakoune-snippets

Snippet support for kakoune
The Unlicense
46 stars 6 forks source link

Plugin should do nothing if Perl not installed #15

Closed andreyorst closed 5 years ago

andreyorst commented 5 years ago

Currently if perl isn't installed, plugin works only in half way: snippet is inserted, but indentation and cursors are not. This may look misguiding for new users, because they may miss that Perl is required. It would be better if plugin tested command -v perl and throwed an error and info message about it's requirements.

occivink commented 5 years ago

I'll do it because it's good practice, but how many systems don't have perl installed one way or another? Considering it's a dependency of git and many other tools. Do you have such a system?

andreyorst commented 5 years ago

my phone did not had it installed in termux.

Edit: Seems apt autoremove uninstalled it for some reason.