Version: unspecified (using KDE 4.5.4) OS: Linux When creating a new file within kate per right click in the directory tree view, it is NOT created in the correct folder. Reproducible: Always Steps to Reproduce: - Open kate, show the filesystembrowser on the left side, open a directory with a substructure. - Right-click on any directory in the mid of the tree, "Create new" -> "Text file..." - Give it a name and press Enter Actual Results: the file is created in the root dir of the view Expected Results: the file should be created IN the selected folder where the right-click occurs. OS: Linux (x86_64) release 2.6.35-23-generic Compiler: cc
Additional hint: when the file is created, per default it should be opened in the editor. I don't want to create an empty file WITHIN kate and NOT edit it. IMO should be easy to fix
Bug reproduced in KDE 4.6.0
still in 4.6.4
If you haven't saved it yet, the filename the tree gets is "Untitled" and it has no path. AFAIK it isn't a filetree bug.
This is not true. Please do exact what I described above: open a tree like: temp temp2 Now right-click on "temp2" and create a file or a dir there. it always is created in the "root" directory of the view, in this case as sibling of "temp". This has nothing to do with havin a file not saved. It IS saved immideately, but in the wrong dir. A better approach, yes, would be, after havin it created in the right dir, to open it in the editor as well, as this is the most wanted thing I do when I create a file in the tree WITHIN the editor, otherwise I could create it in Dolphin...
If the fs browser isn't opening the file, then I'm surprised its showing up in the filetree at all. I suppose I can try taking a look at it, I still doubt its a filetree bug.
Did you test it?
(In reply to comment #7) > Did you test it? Just now. The filebrowser isn't actually causing kate to open the file. So the filetree doesn't know about it. Also I tried right clicking on a folder and going "create new" but it created the file in the current dir, not the one right clicked.. Thinking about it, thats probably what you meant? You want the file to appear inside the dir you right click on? If so, I was confused and thought you meant the filetree (the main document view) was what was showing a problem, and not the filebrowser plugin. Who ever is in charge of the filebrowser plugin might want to take a look at this.
Exactly. I meant the file browser plugin, not the document tree. This is an importand plugin (Textmate/OSX or Gedit/GNOME does it right)
I just saw that KDevelop (which has a similar plugin) creates the files/dirs in the right place - maybe you could save some time and share code with KDevelop? This bug is nasty. Can I help (as unexperienced programmer/experienced user) with this to help you fix it?
KDevelops "Filesystem" also creates files in the "root" folder the dir operator is currently showing. This is not a Kate or KDevelop issue. If you want the context menu to create new folders/files in the folder of the context menu, it needs to be fixed in kdelibs, hence, reassign.
any hints - how can I (as unexperienced programmer, but heavy user) help?
Again: can I help to get rid of this bug as user? I don't know anything of the C++ kate internals... But If I can help in a way...?
Reproducible in 15.12. Also I note that (related) files can't be moved using the tree view as one would expect.
I've just tested this and it seems to have been fixed. Feel free to reopen if you still see this issue with a recent KF version.