Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't use transformers for file or folder names because of the '|' character #17

Open
nirjan-dev opened this issue Sep 18, 2020 · 7 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@nirjan-dev
Copy link

Hi, I can't use the transformers because windows won't let me use the '|' character in file/folder names, not sure if it's a windows only issue or it affects other Operating systems also but do you know if there's any way to use transformers without the '|' character? I want to do this
{{tagName | capitalize}}

Thanks, for creating this awesome tool.

@nirjan-dev nirjan-dev changed the title can't use transformers for file or folder names can't use transformers for file or folder names because of the '|' character Sep 18, 2020
@galElmalah galElmalah added the bug Something isn't working label Sep 18, 2020
@galElmalah galElmalah self-assigned this Sep 18, 2020
@galElmalah
Copy link
Owner

Hey, Thanks for the feedback!! :)
Seems like '|' is indeed a forbidden char in windows.
Here is a list of forbidden windows chars (windows sucks lol)

    < (less than)
        > (greater than)
        : (colon)
        " (double quote)
        / (forward slash)
        \ (backslash)
        | (vertical bar or pipe)
        ? (question mark)
        * (asterisk)

I guess the only solution is to support another char for transformers, maybe $ or #, what do you think @NK-WebDev ?

@nirjan-dev
Copy link
Author

@galElmalah I think using another character would work, it's a shame because the '|' character is easy to reason that it's for transforming something but with other characters like $ or # we don't get that association. I guess using either $ or # will work unless it's not allowed in another operating system. It should also be a character that is unlikely to be part of the actual file/folder name. It would be great to use something like => (which also doesn't work in windows) that people can just look at and figure out what's happening.

@galElmalah
Copy link
Owner

Sorry for the slow response I’m currently out due to COVID 😖
I’ll get on top of this as soon as I’ll feel a bit better

@nirjan-dev
Copy link
Author

I'm sorry to hear that, get well soon and stay safe.

@galElmalah
Copy link
Owner

this will be fixed this weekend

@galElmalah
Copy link
Owner

Havent got to it yet but you can use functions as a workaround for now

@nirjan-dev
Copy link
Author

cool, I'll try it using functions, thanks @galElmalah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants