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

SPEC: add some thoughts about a config file and sensible (?) defaults #6

Merged
merged 4 commits into from
Mar 25, 2023

Conversation

amtoine
Copy link
Member

@amtoine amtoine commented Mar 23, 2023

i simply add to the specification what i was talking about the in #nufmt thread in the discord server 👍

please tell me if there's anything that could be corrected or improved 😌


- :seven: remove trailing whitespaces

- :eight: single quotes for single characters and double quotes for strings => that behaviour might change with string interpolation and paths.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you're on windows we cannot use double quotes generally for all strings. it will fail on double quoted paths because nushell sees them as escapes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so double quotes except for paths?
i'm really not familiar with these windows details about string 😋

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could have some warning section around this that warns the users not to use double quotes with windows paths. They should use single quotes or backtick quotes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can add that for sure 👌

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've added it in b3c19ab 👍

@fdncred
Copy link
Collaborator

fdncred commented Mar 25, 2023

Good enough for now

@fdncred fdncred merged commit a57d9d7 into nushell:main Mar 25, 2023
@amtoine amtoine deleted the spec/config-file-and-some-defaults branch March 25, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants