smjonas / snippet-converter.nvim

Bundle snippets from multiple sources and convert them to your format of choice.
Mozilla Public License 2.0
174 stars 4 forks source link

Inconsistency for shell mode #14

Open OmarAshkar opened 1 year ago

OmarAshkar commented 1 year ago

This plugin is awesome, but I want to write my snips in nvim, and convert to vscode and emacs. There is some descipancy that would need to change directory or file name. vscode: shellscript UltiSnips: sh emacs: shell-script-mode, sh-script-mode, sh-mode, shell-mode

I think I need a workaround. Any help is appreciated!

smjonas commented 1 year ago

Hey thanks for creating this issue, I've actually been waiting for someone to run into this ;) I've created a PR and would appreciate if you could try it out.

For the YASnippet snippets, the plugin should now create a .yasnippet-parents file which includes all the other modes.

Of course, feel free to add more mappings (in the VSCode and yasnippet converter modules) if you have any!

OmarAshkar commented 1 year ago

Your work is great. I am very new to lua, so I will take some time to look at it.

Thank you!

smjonas commented 1 year ago

Hey @OmarAshkar, just wanted to ask if you already had some time to look at this :) Btw I need to fix the tests in the PR first but otherwise I can just merge this as it is and improve it later (or when someone comes across it).

OmarAshkar commented 1 year ago

Hi @smjonas. No unfortunately not yet :( . for now I keep the conversion as little as possible, then manually modify the location. I probably not have time till the end of this month .