I'm trying to add a simple command to search of rails partials files inside my rails app.
I know I can get the filename without the extension with
expand("%:r:r") but in my case because it's haml I always have double extensions like
:echo expand("%:t:r") give me
_home.html and would like
split(expand('%:t'), '\.') is good but now I need to remove the first char.
Do I need to add regex to remove
After I would like to do something like
:Ag! expand("%:t:r") app/views/ but how to use expand result? For the moment I get
No matches for "expand("_home.html") app/views/", expand result is properly "echoed".
Thanks in advance.