question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue: Uppercase/lowercase of content filenames.

See original GitHub issue

Describe the bug (Part 1)

Maybe more a feature request than a bug?

  • Open dashboard.
  • Create new content file via button Create content.
  • Enter a title FormControlGroup.
  • The created file is: formcontrolgroup.md (lowercase).
  • Because we use camel-case naming in some HUGO projects for delibarate reasons (before-rendering processing):
    • Close editing view of file formcontrolgroup.md.
    • Close dashboard. (Because I couldn’t find a refresh button or so and thought it could be the trick).
    • Rename file in VSCode explorer to formControlGroup.md (camel-case).
  • Open FM dashboard and click entry with title FormControlGroup for editing.
  • Save file.
  • The file is opened and saved as formcontrolgroup.md (lowercase).

Expected behavior (Part 1) The file is opened and saved as formControlGroup.md (camel-case).

Describe the bug (Part 2) I don’t know if it’s related.

  • Close all FM views. Open VSCode explorer.
  • Open the file formControlGroup.md (camel-case) by double-click.
  • Click FM-Button in left sidebar.
  • See the three loading dots for several minutes. Even after 1/2h nothing has happened.
  • (Addendum: Opening the FM dashboard in parallel seems to speed up the process.)

Expected behavior (Part 2)

  • FM edit panel opens for the opened file formControlGroup.md (camel-case).

Desktop (please complete the following information):

  • OS: Win10
  • Current VScode version.
  • Because we thought the reason for endless waiting could be “Git talks by VSCode” we’ve disabled it but no change.

Additional context We have to close and reopen VSCode before FM accepts the camel-case file, but then we have to wait before FM has scanned all files in dashboard which goes really slow for just 15 files in just one configured frontMatter.content.pageFolders. Just for the record: It’s not only FM that is annoying slow immediately after VSCode initialisation.

Maybe a refresh button or something like that in dashboard would be nice.

Or highest happiness: Possibility to save or rename files camel-cased so that FM is aware of it without the need to rescan everything.

Thank you!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ReLatercommented, Feb 28, 2022

But then scanning is extremly slow in our environment. But it’s no problem for me to use smaller VSCode-workspaces in the future to speed the thing up.

1reaction
estruyfcommented, Feb 24, 2022

A new setting frontMatter.file.preserveCasing is available to do exactly what it says. It preserves the casing on file creation based on the title you enter during the creation process.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upper- and lower case filenames - Apple Community
The problem is when it craps out in the middle of a Move (or a Copy). Ignoring the dupe file names with caps...
Read more >
Solved: Upper case/lower case problem when exporting files
Upper case/lower case problem when exporting files ... It works seamlessly but the output csv file names come out all uppercase.
Read more >
Separate folders and files with Upper case & Lower case ...
I have folders of files with uppercase and lowercase filenames in Windows system. For filenames starting with "a" or "A" are stored in ......
Read more >
Uppercase/lowercase characters in file names - FileZilla Forums
Hi all, Using Windows, it doesn't matter whether one uses upper or lowercase characters in file names, while Unix servers can't handle file...
Read more >
LPT: Check your uppercase/lowercase file names : r/git - Reddit
Running git add . and git commit did not work, as everything was up-to-date according to git. When I finally tried looking at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found