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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little Windows CRLF problem #584

Open
RaidOpe opened this issue May 11, 2024 · 0 comments
Open

A little Windows CRLF problem #584

RaidOpe opened this issue May 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RaidOpe
Copy link

RaidOpe commented May 11, 2024

馃悰 Describe the bug

I think I find the key of warning commanding git add . by GIt Bash where less person build that work flow

fatal: CRLF would be replaced by LF in 100-ComputerKnowledge/Python/python_funcCode.md

Use cat -e <filename>

---^M$
id: test^M$
aliases: []^M$
tags: []^M$
---^M$
^M$
^M$

It comes from note.lua

 table.concat(note:frontmatter_lines(), "\n"),
      table.concat({
        "---",
        "id: note_with_additional_metadata",
        "aliases: []",
        "tags: []",
        "foo: bar",
        "---",
      }, "\n")
    )

Nvim in Windows using $ when editing, This may not be a bug, but Windows is using CRLF, and I have to create a new file in dos2unix every time. I know I can turn off the autocrlf to use .gitattributes to tell Git what to do . but still, it may be personal.

Config

None

Environment

None

@RaidOpe RaidOpe added the bug Something isn't working label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant