reckel-jm / cantara

Open Source Simple Song Presentation Software
https://www.cantara.app
GNU General Public License v3.0
13 stars 6 forks source link

Saving Preset of Songs #7

Closed fartleako closed 1 year ago

fartleako commented 2 years ago

It would be good if you can save a list of songs beforehand (in a file for example) and just open this file when needed. After this, all songs should be loaded and ready to display.

These files should be created through Cantara itself.

reckel-jm commented 2 years ago

Thanks for bringing up this feature request! A simple solution to export lists of selected songs is already implemented and can be found under Menu File -> Import/Export song list. However, this creates only a text file with the path of the song files, not the content of them. This would be a nice to add feature! Steps which have to be done to implement this would be:

\begincantarasong{Amazing-Grace.song}
% filecontent here
\endcantarasong
\begincantarasong{How great Thou art.song}
% filecontent here
\endcantarasong

XML or JSON would be also possible, but I am afraid that some chars of the content of the song files would be needed to escape or there are other kind of incompatibilities do deal with.

reckel-jm commented 1 year ago

Commit 960d196bde40fe06e0de1e7e36e189f1e7297f82 implements an export function for a newly defined SongTeX-format (in honor of the great Computer Scientist and Musician Donald Knuth).

reckel-jm commented 1 year ago

The latest commits (e.g. db2094767f0cdc34d962f5905ad98d8d52671380) on branch master include a feature to import SongTeX files which consists of the order and the content of the song files. The song files will be added to the repository. If they already exist and aren't equal, they would be added under a different name. Please check and report bugs/etc. if necessary!

reckel-jm commented 1 year ago

Feature is finally implemented in v2.4.0beta (680f78d76539e8023fc697dafd116de0579626c5).