| Summary: | KDirOperator creates new files and folders (via context menu item) in the current directory, not the directory that's right-clicked on | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Christian González <christian.gonzalez> |
| Component: | general | Assignee: | David Faure <faure> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | a.samirh78, finex, kde, kdelibs-bugs-null, nate, thomas |
| Priority: | NOR | Keywords: | usability |
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Christian González
2010-12-04 12:09:08 UTC
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. |