Re: [Geany-devel] Usability fix - saving tab state

2012-07-11 Thread Dimitar Zhekov
On Tue, 10 Jul 2012 23:09:42 +0300
Axel apeka1...@gmail.com wrote:

 You can have any number of primary and secondary Geany instances open.
 With simply calling configuration save, on restart you'll get *some*
 file list...
 
 Wait, wait. That's a *competely* different problem. You *can't* allow users
 to have multiple instances of application which all write to one config
 file.

We had several long discussions on this problem, with no conclusion
reached. Try multiply instances in the mailing list archives.

 If that list is from a secondary (-i) instance, it'll
 likely only contain a file or two, and you would be better with the
 list from the last normal Quit
 Well, it's a flaw - in the end, it's not much better or worse. How you
 can call Geany an IDE if it looses all the open files in all instances but
 the last closed one? Either it's a more like a code editor (i.e. Notepad++
 - limited to one instance) or it's like a serious IDE (i.e. VS or Eclipse),
 which, AFAIK store the separate file list for each project.

Geany stores separate file list for each project if you quit it
normally, or even for each running instance with session management.

A list autosave on open/close should check if a project is open and
save accordingly, which the patch does not do. It also seems to save
the list even if the open dialog is canceled.

-- 
E-gards: Jimmy
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Usability fix - saving tab state

2012-07-10 Thread Axel
You can have any number of primary and secondary Geany instances open.
With simply calling configuration save, on restart you'll get *some*
file list...

Wait, wait. That's a *competely* different problem. You *can't* allow users
to have multiple instances of application which all write to one config
file.

If that list is from a secondary (-i) instance, it'll
likely only contain a file or two, and you would be better with the
list from the last normal Quit
Well, it's a flaw - in the end, it's not much better or worse. How you
can call Geany an IDE if it looses all the open files in all instances but
the last closed one? Either it's a more like a code editor (i.e. Notepad++
- limited to one instance) or it's like a serious IDE (i.e. VS or Eclipse),
which, AFAIK store the separate file list for each project.

Anyway, I don't understand how anything can be a stopper to fixing an *
obvious* usability flaw. If it worsens usability for some rare users, it
would make sense to implement an option to turn it off. But I see no
reasons, why majority should suffer.
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Usability fix - saving tab state

2012-07-10 Thread Matthew Brush

On 12-07-10 11:20 AM, Dimitar Zhekov wrote:

On Tue, 10 Jul 2012 01:41:46 +0300
Axel apeka1...@gmail.com wrote:


I believe there is a usability flaw in Geany - opened documents' list is
saved only if you exit the editor in 'traditional' way (by clicking exit
button or so). It's completely lost, if the process's killed. This was
irritating for me, as I tend not to close every program when shutting down,
but rather push the 'shutdown' button and get them all killed - and get the
list of opened documents lost.


There is a X11 session management patch on Geany sourceforge patch
tracker. Applies against 1.22, but not the newest svn. Not guaranteed
to work under GNOME, they always have problems with session support.
Won't ask you to save any modified files under Xfce, xfsm is buggy too.



So it only works in KDE and Unity? (and maybe TWM :)

Shouldn't bugs be filed against these projects (if not done yet) if they 
don't support the standard X/Linux session management? AFAIK they all 
claim to try and support the various standards floating around out 
there. I have no clue about SM, but it seems crazy that it cannot be 
done. There must be apps out there that work properly cross-desktop, 
maybe we can copy them?


P.S. When logging out/shutting down, what order does it handle Geany 
instances in? Does it always make sure the first opened instance is the 
last to get handled so that you don't clobber the open files list for it 
and stuff?


Cheers,
Matthew Brush
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Usability fix - saving tab state

2012-07-10 Thread Matthew Brush

On 12-07-10 11:20 AM, Dimitar Zhekov wrote:

On Tue, 10 Jul 2012 01:41:46 +0300
Axel apeka1...@gmail.com wrote:


I believe there is a usability flaw in Geany - opened documents' list is
saved only if you exit the editor in 'traditional' way (by clicking exit
button or so). It's completely lost, if the process's killed. This was
irritating for me, as I tend not to close every program when shutting down,
but rather push the 'shutdown' button and get them all killed - and get the
list of opened documents lost.


There is a X11 session management patch on Geany sourceforge patch
tracker. Applies against 1.22, but not the newest svn. Not guaranteed
to work under GNOME, they always have problems with session support.
Won't ask you to save any modified files under Xfce, xfsm is buggy too.



I pushed it to a sm branch[1] on the git repo just now. I haven't 
really tested it much but it builds and runs fine after a very trivial 
fix of the Makefile (and wscript) files.


It might get more usage/testing/experimenting in a branch on the main 
repository compared to the sf.net tracker.


Cheers,
Matthew Brush

[1] https://github.com/geany/geany/tree/sm
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel