#57 File browser in sidebar

closed
None
5
2007-10-22
2007-03-16
Nathan Reed
No

To be honest, I am surprised Geany does not have this feature already, and that no one else has requested it. I would really like to see a sidebar file browser that displays files and folders in a tree-view and lets me open files by double-clicking, like practically every IDE has.

The file browser should have an option letting me set the root folder of the browser, so that I can see only the directories I'm interested in. A feature letting me select "favorite" root folders from a drop-down list at the top of the sidebar would also be handy (like in Macromedia Dreamweaver).

Currently I'm using Anjuta for Linux development, but it's quite unstable and crashes all the time. I would like to switch to Geany but I really need a file browser to do so!

Discussion

  • Logged In: YES
    user_id=1719087
    Originator: NO

    And please make sure that we can disable that at compile time, because I hate that kind of bloat-up features.

     
  • Nick Treleaven
    Nick Treleaven
    2007-03-20

    Logged In: YES
    user_id=1268692
    Originator: NO

    We may add something like this that integrates with project management. If it is significant we may add a compile time option for this, but it may be possible to reuse code from the standard GtkFileChooser, hence adding little bloat. Alternatively it could be made a plugin.

     
  • Logged In: NO

    Yes!
    Would be really nice feature to have.

    Waiting for this!

     
  • Logged In: NO

    I'm also waiting for this function! Would save a lot of time, and mouse movement.

     
  • Logged In: NO

    This isn't funny :| 5 months already and still no sidebar, that's basic functionality!

     
  • Nick Treleaven
    Nick Treleaven
    2007-08-20

    Logged In: YES
    user_id=1268692
    Originator: NO

    > This isn't funny :| 5 months already and still no sidebar, that's
    > basic functionality!

    Well, we're busy working on other things. Recently we added a basic plugin system, so things like a file browser sidebar can be written as a plugin - not everyone wants this in the core.

    If anyone wants to start working on this, feel free - see the HACKING file in SVN.

    N.B. 5 months isn't long considering we're working for free.

     
  • Logged In: NO

    This is not a bloat-up feature. If you have a project management, it's just logic (and ergonomic) you can browse the project directory. Geany is a text editor with basic feature of an IDE... but this is a very basic feature... no?

    I thinks, he would be also very nice if you can open file in the "File browser in sidebar" with the default system programme (with a right click).

     
  • Enrico Tröger
    Enrico Tröger
    2007-08-24

    Logged In: YES
    user_id=1117045
    Originator: NO

    "I thinks, he would be also very nice if you can open file in the "File
    browser in sidebar" with the default system programme (with a right click)." -> this is the job of a file manager not of a text editor.

     
  • Logged In: NO

    "this is the job of a file manager not of a text editor." -> Yeah, ok but "why not?". If you implement a file browser it becomes a "little" file manager anyway. So why not make it better in the first place?

     
  • Logged In: NO

    I would also like to vote for this feature. It's the main feature I'm missing from gaeny (using bluefish some of the time now). The bluefish file browser also limits the listed files to the ones I'm interested in (filter out object files) which gives a much nicer overview than a file manager.

    Sadly, I don't have time at the moment to implement this myself. Thanks for the nice editor.

     
  • Nick Treleaven
    Nick Treleaven
    2007-09-07

    Logged In: YES
    user_id=1268692
    Originator: NO

    I think we will implement this fairly soon. (The reason we haven't so far is mainly that the GtkFileChooserWidget doesn't support a vertical pane display, or even just showing the file list without a horizontal pane like the open file chooser).

    The comment about Geany not being a file manager was related to being able to open files from the file browser with the relevant application.

     
  • Nick Treleaven
    Nick Treleaven
    2007-10-11

    Logged In: YES
    user_id=1268692
    Originator: NO

    I've started working on implementing this as a plugin. It doesn't seem to be possible to reuse both safely and neatly any of the GtkFileChooserWidget across different versions of GTK, so it will be a fairly simple implementation at first.

     
  • Nick Treleaven
    Nick Treleaven
    2007-10-11

    • assigned_to: nobody --> ntrel
     
  • Logged In: NO

    Bluefish has quite good file browsing sidebar [with very useful option "set this directory as root", or something like that, I have translated version]. You can check how they wrote it :)

     
  • Nick Treleaven
    Nick Treleaven
    2007-10-22

    • status: open --> closed
     
  • Nick Treleaven
    Nick Treleaven
    2007-10-22

    Logged In: YES
    user_id=1268692
    Originator: NO

    Geany SVN now has a (fairly basic) file browser sidebar plugin :)

    @nobody: I added a 'Set path from document' button. I think using another application's file browser wouldn't be all that easy without bringing in a chunk of code from that app. This way the plugin is quite lightweight, relying on some functions already in Geany.

     
  • Logged In: NO

    Works great, many thanks :) Now I can switch from Bluefish also with bigger projects. For next version imho you should consider tree view, not just a list. I know from own experience that GtkTree can be sometime pain in the ***, but switching back and forward between folders [in one project] isn't very comfy.