This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 225907

Summary: Real file should be preselected in file code completion
Product: web Reporter: Petr Jiricka <pjiricka>
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Petr Jiricka 2013-02-08 17:06:37 UTC
When completing an attribute such as href in a HTML document, the code completion offers files and directories inside the project, for example:

../
basecss.css

After pressing Ctrl+Space, ../ is preselected, but this is not often used (especially if the value of the href attribute already contains a partial path). So I think the first real file or directory should be preselected.
Comment 1 Marek Fukala 2013-07-12 13:36:15 UTC
I'm not sure if I can affect the selected item, but what I can do is to put the ../ to the bottom of the list which will make the first real file preselected. OTOH this is in contradiction with the common OS directory listing so not sure it people will like it ;-)
Comment 2 Petr Jiricka 2013-07-16 13:59:15 UTC
Changing to enhancement per agreement with Marek.