[Geany-Devel] GEANY - New behaviour of "close" document action to close only tabs

vadim kochan vadim4j at gmail.com
Mon Jan 21 22:08:45 UTC 2013

Hi all,
May be someone will be interested in this.

I find useless that file is removed from session when I close it from tab,
and decided to make
changes for this.Not sure if the changes are good, this is first working

I think that tabs can be more usefull when allows switching only between
documents but not between all.

Here are the changes
https://github.com/vkochan/geany/commits/close_tab_not_file .
Will be glade to have any response.

Here are some notes:

1) All "close" actions anywhere in IDE now means to close document tab page.

2) Opened tabs are saved into session file for future restoring them after
opening the project.

3) To remove document from project it is possible only by using "Remove"
item on sidebar panel.

4) Plugins should receive "document-close" event in case when document
from project.Not sure if its correct. With these changes should be 2
different events: document-close
& document-remove.

The feature can be turned on only after defining a macro in cflags before
the build:

I tested it only a little bit, not all cases, so there can be some
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20130122/093bec38/attachment.html>

More information about the Devel mailing list