Bug 93230

Summary: no way to add a file by rightclicking to a folder.
Product: [Applications] kate Reporter: Mathieu Jobin <opensource>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: abhishekworld, contact, egxoun8uya67izy, evandromyller, kde-2011.08, qwertymaniac
Priority: NOR    
Version: 2.3.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mathieu Jobin 2004-11-13 23:05:23 UTC
Version:           2.3.1 (using KDE 3.3.1, Gentoo)
Compiler:          gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.9

I'd like to be able to simply right click on a folder in the file tree view, and says "Add new file" which would be added to this specific location. 
 
 then, filename would be asked and file created. 

I already sent this request to Quanta, but this is also highly needed for kate, I've been asking around and I've been suggested to create a separate bug for each project, instead of linking them.

for more info

see bug #93189
Comment 1 Thomas Friedrichsmeier 2007-12-13 00:55:12 UTC
*** Bug 136750 has been marked as a duplicate of this bug. ***
Comment 2 Jean-Philippe Fleury 2008-10-31 04:10:22 UTC
I support this request.
Comment 3 Dominik Haumann 2009-07-13 12:00:40 UTC
*** Bug 199998 has been marked as a duplicate of this bug. ***
Comment 4 Dominik Haumann 2009-07-13 12:14:48 UTC
Creating a new folder exists in the context menu. I think this should be fixed in the dir operator itself.
Comment 5 Dotan Cohen 2009-07-13 12:31:01 UTC
*** Bug 199998 has been marked as a duplicate of this bug. ***
Comment 6 Evandro Myller 2010-01-07 03:20:56 UTC
Any news about this wish?
Comment 7 Abhishek Patil 2010-01-07 07:16:55 UTC
I will look in to this today night :)
Comment 8 Abhishek Patil 2010-01-09 15:02:11 UTC
Review request http://reviewboard.kde.org/r/2535/
Comment 9 David Faure 2010-01-22 12:11:41 UTC
SVN commit 1078555 by dfaure:

Move KNewMenu from libkonq to kdelibs, and call it KNewFileMenu there.
http://reviewboard.kde.org/r/2629
The purpose is so that "RMB / New File" can be added in kdiroperator, which
benefits KFileDialog and other users of kdiroperator.
The good thing is that this gets rid of some code duplication for creating
directories: the libkonq code moving to libkfile means that KDirOperator::mkdir
can now use it, rather than its own fork of it.

CCBUG: 93230


 M  +4 -0      CMakeLists.txt  
 M  +21 -41    kdiroperator.cpp  
 M  +1 -0      kdiroperator.h  
 A             knameandurlinputdialog.cpp   trunk/KDE/kdebase/apps/lib/konq/konq_nameandurlinputdialog.cpp#1071369 [License: LGPL (v2/3+eV)]
 A             knameandurlinputdialog.h   trunk/KDE/kdebase/apps/lib/konq/konq_nameandurlinputdialog.h#1071369 [License: LGPL (v2/3+eV)]
 A             knewfilemenu.cpp   trunk/KDE/kdebase/apps/lib/konq/knewmenu.cpp#1075252 [License: LGPL (v2/3)]
 A             knewfilemenu.h   trunk/KDE/kdebase/apps/lib/konq/knewmenu.h#1075252 [License: LGPL (v2/3)]


WebSVN link: http://websvn.kde.org/?view=rev&revision=1078555
Comment 10 Abhishek Patil 2010-01-26 08:29:47 UTC
http://reviewboard.kde.org/r/2535/


(Updated 2010-01-26 06:44:32.753850)


Review request for Kate and kdelibs.


Changes
-------

Now David Faure have added KNewFileMenu in kdelibs and which is also being used in KDirOperator. So I have added new method called setNewMenuSupportedMimeTypes in KDirOperator which internally calls KNewFileMenu::setSupportedMimeTypes and have used this method in kate filebrowser plugin  :) .


Summary
-------

Right click in filesystem browser you will find new option called "New File..." which will create a new Empty file at given location.


This addresses bug 93230.
    https://bugs.kde.org/show_bug.cgi?id=93230


Diffs (updated)
-----

  /trunk/KDE/kdelibs/kfile/kdiroperator.h 1080317 
  /trunk/KDE/kdelibs/kfile/kdiroperator.cpp 1080317 
  /trunk/KDE/kdesdk/kate/plugins/filebrowser/katefilebrowser.cpp 1080317 

Diff: http://reviewboard.kde.org/r/2535/diff
Comment 11 Abhishek Patil 2010-01-27 18:52:39 UTC
fixed in r1081080 by abhishekpatil :) http://websvn.kde.org/?view=revision&revision=1081080