Re: [Lazarus] Renaming unit
On Tue, 10 Apr 2012 11:00:36 +0100 Richard Mace richard.m...@gmail.com wrote: Hi, When I create a new unit and then save it, I save it in all lower case. I then, edit the actual unit, and rename it to the case that I would like, such as renaming from mainunit to MainUnit. Hint: You can save it as 'MainUnit.pas'. The IDE then asks to save it lowercase. The file name will then be 'mainunit.pas' and the source name 'MainUnit'. You can disable the question here: Options / Naming / Save As - auto rename pascal files lower case All is OK when I do this, but the tab doesn't update to the correct case until Lazarus is restarted. Could it not be updated when the actual unit is renamed? Only a minor thing, but I remember Delphi doing this so thought I'd mention it :) You don't need to restart. The tabs are updated on many events. For example when you do a find declaration or jump to a method body. They are not updated on every key press in the source editor. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Renaming unit
Richard Mace richard.m...@gmail.com wrote: Hi, When I create a new unit and then save it, I save it in all lower case. I then, edit the actual unit, and rename it to the case that I would like, such as renaming from mainunit to MainUnit. Hint: You can save it as 'MainUnit.pas'. The IDE then asks to save it lowercase. The file name will then be 'mainunit.pas' and the source name 'MainUnit'. You can disable the question here: Options / Naming / Save As - auto rename pascal files lower case Thanks Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Renaming unit
Am 10.04.2012 12:23, schrieb Mattias Gaertner: All is OK when I do this, but the tab doesn't update to the correct case until Lazarus is restarted. Could it not be updated when the actual unit is renamed? Only a minor thing, but I remember Delphi doing this so thought I'd mention it :) You don't need to restart. The tabs are updated on many events. For example when you do a find declaration or jump to a method body. They are not updated on every key press in the source editor. But one could update them when saving the unit ;) Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Renaming unit
On 10 April 2012 13:10, Sven Barth pascaldra...@googlemail.com wrote: Am 10.04.2012 12:23, schrieb Mattias Gaertner: All is OK when I do this, but the tab doesn't update to the correct case until Lazarus is restarted. Could it not be updated when the actual unit is renamed? Only a minor thing, but I remember Delphi doing this so thought I'd mention it :) You don't need to restart. The tabs are updated on many events. For example when you do a find declaration or jump to a method body. They are not updated on every key press in the source editor. But one could update them when saving the unit ;) Regards, Sven Yes, that was my hopeful thinking Sven :) Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus