[Geany] "New file" in file browser plugin menu

Enrico Tröger enrico.troeger at xxxxx
Wed Feb 4 19:37:33 UTC 2009


On Mon, 02 Feb 2009 14:15:45 +0100, Harold Aling <geany at sait.nl> wrote:

>On Thu, 29 Jan 2009 17:39:50 +0100, Enrico Tröger
><enrico.troeger at uvena.de>
>wrote:
>> On Wed, 28 Jan 2009 23:57:47 +0100, Harold Aling <geany at sait.nl>
>> wrote:
>> 
>>>On Wed, 28 Jan 2009 18:48:03 +0100, Enrico Tröger
>>><enrico.troeger at uvena.de>
>>>wrote:
>>>> On Wed, 28 Jan 2009 11:21:26 +0100, Harold Aling <geany at sait.nl>
>>>> wrote:
>>>>>On Mon, 26 Jan 2009 16:03:00 +0100, Harold Aling <geany at sait.nl>
>>>>>wrote:
>>>>>> Dear Geany devs,
>>>>>> 
>>>>>> It would be really nice if the 'New' and 'New from template'
>>>>>> options were available in the right-click menu of the file
>>>>>> browser sidebar.
>>>> 
>>>> Why?
>>>
>>>Let's say I'm working in /var/www/d6/sites/all/modules/my_module and
>>>I need a new, empty file there: 'my_module.inc'
>>>
>>>Geany's default dir is set to '/var/www'.
>>>
>>>To create a new file in the 'my_module' dir you now have to:
>>>1) Create a new file (ctrl-n)
>>>2) Save the new file (ctrl-s)
>>>3) Open 'd6'
>>>4) Open 'sites'
>>>5) Open 'all'
>>>6) Open 'modules'
>>>7) Open 'my_module'
>>>8) Give the new file a name
>>>9) Save the file
>>>
>>>If the file browser would support creating new files:
>>>
>>>1) Right click in the filebrowser
>>>2) Select 'new file' (or maybe even 'new folder'?)
>>>3) Give the new file a name
>>>4) Done
>>>
>>>It just seems logical to be able to do it in the file browser, but
>>>maybe I'm alone in that...
>> 
>> You know you can create bookmarks in the GTK filechooser? This won't
>> solve your request directly, but may help to reach common locations
>> in your filesystem faster.
>
>True, but I work on 20-30 projects simultaneously, so that will be a
>lot of bookmarks ;)
>
>
>>>> The toolbar buttons are not that far away and adding them to the
>>>> filebrowser plugin would cause that we expose this all to the
>>>> plugin API. Of course, you don't care about the technical changes
>>>> (I wouldn't do so as well in your position :D) but it's just rather
>>>> much efforts for a little benefit, IMO.
>>>
>>>I just thought it would be handy. I don't think about technical
>>>changes, since I don't know any C. I'm just a simple php script
>>>guy...
>> 
>> I know and that's ok. I just wanted to mention that it is not as
>> trivial as it may sound because the filebrowser is a plugin.
>> I think I won't work on this, at least not before the next release.
>> Sorry.
>
>Don't you apologize to me! ;) I'm the one requesting silly things...
>
>
>Speaking of silly things: Is there maybe an other dev on this list
>able to implement a simple 'new file', 'new folder' and rename
>functionality in the file browser plugin? If so, I'm willing to donate
>$25 to your personal beer fund!* ;)

Haha :).
Didn't you offer an update for the Dutch translation some time ago? We
are currently in string freeze...:).

j/k


But btw, I recently added some new features to the filebrowser plugin
which were also requested by you long time ago, IIRC.

- files and directories now have a tooltip showing the full path
- entering paths prefix with a tilde in the path entry works now, e.g.
~/projects/
- new option to set the path in the filebrowser to the path of the
current file, the path changes when files are switched
- new option to set the path in the filebrowser to the base directory
of projects when a project is opened


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20090204/8a51cf0e/attachment.pgp>


More information about the Users mailing list