Bug 410189

Summary: Dialog to enter new scratch file name should not propose already existing filename
Product: [Applications] kdevelop Reporter: Friedrich W. H. Kossebau <kossebau>
Component: Plugin: ScratchpadAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 5.3.80   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Friedrich W. H. Kossebau 2019-07-25 10:17:23 UTC
For convenience it is nice to have a filename proposed from the start, so one can just quickly confirm without having to think and then go testing what one was to test.

The convenience though runs into disappointment when the proposed filename will not be accepted on "Ok", due to conflicts. As can happen if one 2x is fine with the "example.cpp" file name proposed.

Ideally the dialog would be so smart to propose a name which is not already taken, e.g. by adding some number postfix (iterating from first none, then 1 until a non-clashing variant is found). Or have some other source of unique & practically endless naming patterns.