[Geany-Devel] Focus lost when last document closed
elextr at xxxxx
Mon May 27 23:01:13 UTC 2013
On 28 May 2013 07:51, Pallai Roland <pallair at magex.hu> wrote:
> A very simple implementation based on your comments:
> I will patch geany-plugins too (treebrowser/projects) if you like it.
That means adding the new function to the plugin API, documenting it as
such and bumping the API version, making the plugin no longer able to run
with a Geany earlier than this new version.
Plugins are controlled by their maintainers, not the Geany project, you
will have to communicate patches to them if they want to accept the patch,
after the Geany changes of course.
> 2013/5/27 Pallai Roland <pallair at magex.hu>:
> > 2013/5/27 Dimitar Zhekov <dimitar.zhekov at gmail.com>:
> >> On Mon, 27 May 2013 13:22:02 +0200
> >> Pallai Roland <pallair at magex.hu> wrote:
> >>> Do you agree that the problem exists and should be solved?
> >> No. If Geany supported several main activities, such as browsing
> >> interface objects and clicking on their event handlers to edit the
> >> code behind, or browsing a database and clicking an object to edit
> >> it's definition as SQL text, it would have made sense, because the
> >> editor windows would have been specialized.
> >>> Maybe I was very abstract here: I just want consistent widget focus
> >>> when I close the very last document.
> >> But not any other document... Attempting to marry activities with
> >> Geany's general purpose text editors can't produce consistent results.
> > Please forget word "activities", it has taken us too far from the point
> >> Aside from a plugin being unavailable, the widget from which a file was
> >> open may be in an unsuitable state: for example a set of Messages,
> >> which are not result of "Find in Files", or Scope Threads/Stack, after
> >> the program was terminated.
> > In worst case we give focus to the wrong widget. Not worse than lost
> > focus, isn't it? If the implementation is simple and stable, why
> > not..?
> >>> How should I fix it?
> >> For Messages, including "Find in Files" matches, you can assign
> >> shortcuts for the "Next message" and "Previous message". Strangely
> >> enough, the keys do not work if the last file is closed, although the
> >> menu items work just file. Bug?..
> > It opens every file as I walk through results, definitely not what I
> > want. Furthermore the shortcut really does not work if the last file
> > is closed. :)
> Devel mailing list
> Devel at lists.geany.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel