AndInTheClouds / chordreader2

Search for, display, transpose and save chords on your phone, that you get from the interwebs. :notes:
GNU General Public License v3.0
31 stars 8 forks source link

Spaces in file names are not supported #6

Closed dynobo closed 1 year ago

dynobo commented 1 year ago

First: Thanks for reviving this app, good chord readers are in short supply within the FOSS ecosystem. :nerd_face: :guitar:

Now to the issue:

I synced the contents of the /chord reader 2/ folder with my personal, already existing chords/lyrics folder (through nextcloud). ChordReader2 shows my own files correctly in the Songs-overview, but won't open them: Clicking on a file just does nothing (no error, doesn't open).

I tried a bit around and noticed that when saving a chord from the internet within ChordReader2, it replaces space (`) in the filename with underscores (). I tried doing the same manually for some of my already existing chord files (e.g.greenday - longview.txt->greenday-_longview.txt`), é voilà: They now open correctly.

So, it seems to me like ChordReader2 has an issue with spaces in file names. While replacing them manually seems to be a valid workaround, I still would prefer if ChordReader2 could handle them.

What do you think? Would that be a lot of effort?

AndInTheClouds commented 1 year ago

I fixed that. Whitespaces in filenames are supported now. ;)