andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
5 stars 2 forks source link

improve connection managment #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Typically, I have many data sources defined, but only one connection
open. Hunting for that open connection after opening a new editor every
time is pretty annoying since there are many sub-menus that need to be
searched.

Ways to improve this could include:

     1. If the foreground editor has a connection or if there is only
        one open connection, reuse that when opening a new editor
     2. Make the clicking on the Connections button on the toolbar reuse
        the last used or only open connection instead of opening the
        Connections window
     3. Change the Connections button pull down menu display a list of
        open connections, with a "New connection" flyout menu at the
        bottom, for example:

  +----+-+
  | -D |V|
  +----+-+--------------------------+
       | My App, Connection 1       |
       | My Other App, Connection 1 |
       +----------------------------+------------------------------+
       | New connection           > | My App (foo@localhost)       |
       | Show connections...        | My Other App (bar@localhost) |
       +----------------------------| App 3 (baz@localhost)        |
                                    | Test App (quux@localhost)    |
                                    +------------------------------+

Any of these things would make connection management easier, I'd prefer
options 1&3 together.

Original issue reported on code.google.com by michael....@gmail.com on 25 Nov 2008 at 12:03

GoogleCodeExporter commented 9 years ago

Original comment by albrecht.andi on 14 Dec 2008 at 5:29

GoogleCodeExporter commented 9 years ago

Original comment by albrecht.andi on 3 Jan 2009 at 7:16

GoogleCodeExporter commented 9 years ago
First part is in trunk (r413, covers 2.).

Original comment by albrecht.andi on 25 Jan 2009 at 10:02

GoogleCodeExporter commented 9 years ago
ups, sorry... The pull down menu is in trunk, of course. So it's 3) and not 2) 
;-)

Original comment by albrecht.andi on 25 Jan 2009 at 10:04

GoogleCodeExporter commented 9 years ago
A slightly modified version of 1) is committed as r543. The connection of the 
current
foreground editor is used when a new editor is created.

This feature is disabled by default and can be enabled in the preferences dialog
("General > New Editors").

I'm closing this issue now, but feel free to file further suggestions regarding 
this
issue either on the issue tracker or on the mailing list.

Big thanks for your ideas!

Original comment by albrecht.andi on 17 Feb 2009 at 7:13