I am trying to learn remix-run
full stack framework and their dynamic route files begin with $
.
This is not working for me with neovim.
- file
\$testId.tsx
, on save is renamed to
-
$testId.tsx
, and this on save is renamed to
.tsx
Is there a way to get around this somehow?
You could try with '$tesId.tsx'
that should work.
Hmm yeah I guess that works since the filename is “working” but it does not work in practice since remix expects routes to be names $myId.tsx
. Would it be possible to create some kind of autocmd that wraps the filename in ''
before opening you think? Does this make sense?
My idea would be to replace $
with dynamic-
when opening the file and then revert it on save or something.
I understand what you mean. And of course the “$” character is allowed in a POSIX filesystem. But I have problems trying to use it. Both in the terminal and in the file manager it does not work as expected. Maybe you should ask remix-run how they do it. They must have a solution for this. Then you could think about a macro etc. to automate that.
Thanks for replying again man!
Yes I have posted both on their discord and on github discussion. Still waiting for replies. It is a bit frustrating since this is such a major part of their system…
Anyways, I’ll try to report back if I get some good response. Otherwise I’ll just have to schedule some time to really read through their docs and try to understand how their routes can be made programmatically, which would be a bummer since I wanted to just follow along with their tutorials.
Yeah, i have problems both with vim and ranger file browser.
btw, when I see your profile pic I am imagining you being ripped AF like a body builder.