Hi all,
I'm a refugee from the Nedit text editor and have now moved to Geany after a very brief fling with Gedit.
I'm on Linux and have 8 virtual desktops and I often work on different projects on different desktops. If I run gedit from the command line gedit will start a new instance if there isn't already a running instance on the current virtual desktop.
I know I can do 'geany -i <file>' to open a new instance, but I was wondering if the behaviour of Gedit could be matched with Geany.
Erik
On 30 July 2010 21:01, Erik de Castro Lopo mle+tools@mega-nerd.com wrote:
Hi all,
I'm a refugee from the Nedit text editor and have now moved to Geany after a very brief fling with Gedit.
I'm on Linux and have 8 virtual desktops and I often work on different projects on different desktops. If I run gedit from the command line gedit will start a new instance if there isn't already a running instance on the current virtual desktop.
I know I can do 'geany -i <file>' to open a new instance, but I was wondering if the behaviour of Gedit could be matched with Geany.
Hi Eric,
Geany does not know about virtual desktops. These are accessed with Gnome specific libraries and would increase the dependencies of Geany and would make it more complex to keep portable to all desktops and to Windows.
Cheers Lex
Erik
Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
drop gnome and use s/th like the awesome window manager, with which you might lua-script your way through to the desired behavior:
but this would, i think, still leave the question of how to tell geany in which instance a new file is to be opened. for me, it always opens in the instance first created. so maybe this assignment question is a viable one for the devs, or is there an existing solution already?
best, paul
On 07/30/2010 01:52 PM, Lex Trotman wrote:
On 30 July 2010 21:01, Erik de Castro Lopomle+tools@mega-nerd.com wrote:
Hi all,
I'm a refugee from the Nedit text editor and have now moved to Geany after a very brief fling with Gedit.
I'm on Linux and have 8 virtual desktops and I often work on different projects on different desktops. If I run gedit from the command line gedit will start a new instance if there isn't already a running instance on the current virtual desktop.
I know I can do 'geany -i<file>' to open a new instance, but I was wondering if the behaviour of Gedit could be matched with Geany.
Hi Eric,
Geany does not know about virtual desktops. These are accessed with Gnome specific libraries and would increase the dependencies of Geany and would make it more complex to keep portable to all desktops and to Windows.
Cheers Lex
Erik
Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
daspostloch wrote:
drop gnome and use s/th like the awesome window manager
Errr sorry, no, I've tried tiling window managers and I don't like them.
Erik
Errr sorry, no, I've tried tiling window managers and I don't like them.
since awesome 3.4, floating layout is default. it also consciously doesnt call itself a tiling, but a highly configurable wm.
Errr sorry, no, I've tried tiling window managers and I don't like them.
alternatively for gnome, you could maybe do some heavily messy stuff based on devilspie [1]. but I doubt that one can find a trick which avoids altering its source code.
[1] http://burtonini.com/blog/computers/devilspie/
On Fri, 30 Jul 2010 21:52:05 +1000 Lex Trotman elextr@gmail.com wrote:
I'm on Linux and have 8 virtual desktops and I often work on different projects on different desktops. If I run gedit from the command line gedit will start a new instance if there isn't already a running instance on the current virtual desktop.
I know I can do 'geany -i <file>' to open a new instance, but I was wondering if the behaviour of Gedit could be matched with Geany.
I'd also like this behaviour - I added a TODO item a while ago: o (per-workspace instances with socket support?)
I don't know whether this is doable for Geany, more research needed.
Geany does not know about virtual desktops. These are accessed with Gnome specific libraries and would increase the dependencies of Geany and would make it more complex to keep portable to all desktops and to Windows.
Maybe, but we're hopefully going to add some kind of X session support, so not sure this argument holds.
Regards, Nick
On 31 July 2010 00:56, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Fri, 30 Jul 2010 21:52:05 +1000 Lex Trotman elextr@gmail.com wrote:
I'm on Linux and have 8 virtual desktops and I often work on different projects on different desktops. If I run gedit from the command line gedit will start a new instance if there isn't already a running instance on the current virtual desktop.
I know I can do 'geany -i <file>' to open a new instance, but I was wondering if the behaviour of Gedit could be matched with Geany.
I'd also like this behaviour - I added a TODO item a while ago: o (per-workspace instances with socket support?)
I don't know whether this is doable for Geany, more research needed.
Geany does not know about virtual desktops. These are accessed with Gnome specific libraries and would increase the dependencies of Geany and would make it more complex to keep portable to all desktops and to Windows.
Maybe, but we're hopefully going to add some kind of X session support, so not sure this argument holds.
Welcome back Nick, good point, in that case I believe the functionality is in libwnck
Cheers Lex
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Lex Trotman wrote:
Geany does not know about virtual desktops. These are accessed with Gnome specific libraries and would increase the dependencies of Geany and would make it more complex to keep portable to all desktops and to Windows.
Lex Trotman wrote:
Welcome back Nick, good point, in that case I believe the functionality is in libwnck
I've actually research this a little further. Yes, libwnck is designed to help wit things like this, but the libwnck API hasn't stabilized yet and I wouldn't encourage its usage until it has.
However, I have been able to write a small command like program (research only, code ripped from Gedit) that can detect the current workspace under both GNOME and KDE using nothing more than GTK/GDK and X11 calls. I haven't tried other desktop/window managers but I suspect it would also work there.
If we then made the workspace name part of the geany socket name, it would be trivial to search for a geany socket on the right workspace and connect to that if present or to start a new instance if its not.
Anyone see any problems with this? If not, I'll move this to the devel list and see if we can get this added.
Cheers, Erik