I try to change this (VSCode RELATIVE_FILEPATH
variable):
app/service/namespace/important_thing/my_class.rb
into this:
Namespace::ImportantThing::MyClass
What I got so far:
RELATIVE_FILEPATH/(?:\\/?app\\/\\w+)?(\\/|_)(.(?!\\w+?\\.rb))/::${2:/upcase}/g}:
but the result is not great
::Namespace::Importand::Thing/my_class.rb
I'm doing this to create myself a snippet but this regex is a little bit to much for me.
I've used something similar in Sublime but there it was done with some code in python so can't be referenced from there.