ImaginarySense / Imaginary-Teleprompter

Easy to use, free software, teleprompter app.
http://imaginary.tech/teleprompter
GNU General Public License v3.0
269 stars 54 forks source link

Current script #91

Open videosmith opened 3 years ago

videosmith commented 3 years ago

Is it possible to add the current script's filename to the TopBar of the application?

Cuperino commented 3 years ago

@videosmith It would be, yes.

I believe it would be a matter of creating a function that updates the title property of the web page document and then calling that function whenever files are successfully loaded. Here enter some implementation details with regards to our migration from using localStorage for file management to a more traditional file management approach.

@va2ron1, since you've been the one to work on the new file management features, and most of the next release, really; do you see any inconvenient in changing the document's title after the file gets loaded into the editor? Wouldn't "updating after" add a dependency that would need to be replicated for each third party editor that is used; or could this be done in a more straightforward way that works both for the sidebar and the new file management implementations?

@va2ron1, How would you architect this?

va2ron1 commented 3 years ago

@Cuperino, Changing the title won’t be a problem but when you create a new script or import it in the new file management, it keeps everything under default root folder of the scripts. So, the filename of the script will be the same for any script but I can change the title with the name of the script instead of the filename.

@videosmith The next beta will have a file management system and you can access all scripts, images, styles and configuration files of your prompter.

Cuperino commented 3 years ago

@va2ron1 Using the name of the script for the title could work. But if the script is being imported, then the import should be named like the source file, so that the program can read the name from the imported script and use it for the title...