Hi all,<div>May be someone will be interested in this.</div><div><br><div>I find useless that file is removed from session when I close it from tab, and decided to make </div><div>changes for this.Not sure if the changes are good, this is first working version.</div>
<div><br></div><div>I think that tabs can be more usefull when allows switching only between selected</div><div>documents but not between all.</div><div><br></div><div>Here are the changes <a href="https://github.com/vkochan/geany/commits/close_tab_not_file">https://github.com/vkochan/geany/commits/close_tab_not_file</a> .</div>
<div>Will be glade to have any response.</div><div><br></div><div>Here are some notes:</div><div><br></div><div><div>1) All "close" actions anywhere in IDE now means to close document tab page.</div><div><br></div>
<div>2) Opened tabs are saved into session file for future restoring them after opening the project.</div><div><br></div><div>3) To remove document from project it is possible only by using "Remove" menu</div><div>
item on sidebar panel.</div><div><br></div><div>4) Plugins should receive "document-close" event in case when document removed</div><div>from project.Not sure if its correct. With these changes should be 2 different events: document-close </div>
</div><div>& document-remove.</div><div><br></div><div>The feature can be turned on only after defining a macro in cflags before the build:</div><div><b>-D</b><i>GEANY_CLOSE_TAB_NOT_FILE</i></div><div><br></div><div><br>
</div><div>I tested it only a little bit, not all cases, so there can be some surprises.</div><div><br></div>
</div>