https://bugs.kde.org/show_bug.cgi?id=297003
Mario Aichinger <aichi...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aichi...@gmail.com --- Comment #13 from Mario Aichinger <aichi...@gmail.com> --- Oh I see, my quirky brain always assumed "Text File" in this context meant something like "Generic File". Turns out I'm just using it wrong :'D So to sum up: Suffix '.txt' + content ' \n' is a text file Suffix '.txt' + content 'Some Content' is a text file Suffix '.txt' + content '' is a text file Suffix '' + content ' \n' is a text file Suffix '' + content 'Some Content' is a text file Suffix '' + content '' is NOT a text file Suffix '.py' + content ' \n' is a python script Suffix '.py' + content 'Some Content' is a python script Suffix '.py' + content '' is a python script The only combination between suffix and content which falls out of line seams to be the empty-empty one. I think there are a few options to improve the situation: - Turn the existing "Text file" option in to something more generic which only copies the template if file name does not contain a '.' (probably not a good idea since it would require a lot of changes in KNewFileMenu) - Ignore the special case since the UI already proposes a '.txt' suffix in the dialog (if someone removes the suffix they might know what they are doing) - Add a "File" .desktop file and template to KIO which creates always an empty file regardless of the suffix. - Make the mime hint more visible to reduce the feeling that the user is experiencing a bug (e.g. "Text File Content"). This might also educate the user that this is really a feature to create "text files" and not generic files (the opposite of directories). -- You are receiving this mail because: You are watching all bug changes.