The Zeroth

Abhishek Patil's Blog…

KDE: Kate add a file by right-click in Filesystem Browser

with 3 comments

One more Kate wish completed by me :) .  Bug no. 93230 and this will also be in KDE 4.5 :) .

Problem/Wish: There is no way to add a file by rightclicking to a folder in Filesystem Broswer(filebrowser plugin).

Solution: Updated the KDirOperator with KNewFileMenu wrapper “setNewFileMenuSupportedMimeTypes” which will Only show the files in a given set of mimetypes it Internally uses  KNewFileMenu::setSupportedMimeTypes. In general now we can restrict options to be shown in Create New, this is useful in specialized applications like kate etc.  while file managers, on  the other hand, want to show all mimetypes.  (thanks to David Faure for moving KNewMenu to kdelibs as KNewFileMenu).

* for more details  here is the bug description.

This is how the new context menu of kate Filesystem Browser will look:

To download patch click here.


Advertisement

Written by Abhishek Patil

January 28, 2010 at 12:15 AM

Posted in bug fix, kate, kde, Tech

Tagged with , , , ,

3 Responses

Subscribe to comments with RSS.

  1. Very nice, thanks Abhishek! I am sure it is possible to add more text templates, for example “Create New > C++ Header”, which starts with the license headers and empty class definition.

    Christoph

    January 28, 2010 at 1:47 AM

    • Hi Christoph,
      Thanks Comments :) .
      Well I am not sure about that, what I know is, the templates are taken from /usr/share/templates/ so if we can add the C++ Header template there, we can have that in Create New :) ..

      Abhishek Patil

      January 28, 2010 at 8:28 AM

  2. Get syndicated on planetkde, please :)

    anon

    January 28, 2010 at 9:37 PM


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.