Re: [Lazarus] Tab/Shift tab and block indentation

2020-04-19 Thread Martin Frb via lazarus

On 19/04/2020 23:22, Florian Klämpfl via lazarus wrote:
When completing code, lazarus takes the Block indent value from the 
editor options for indentions, so for proper indention one sets this 
value to two spaces normally. However, this has the effect that 
tab/shift+tab also un/indents by two spaces. This is often not useful 
when reorganizing code. Is there any way to decouple these two 
behaviors: so that code completion idents by 2, tab/shift+tab by 1? Or 
do I need to adapt lazarus sources?

I don't think there is a 2nd setting for codetools.

But instead of using tab to (un-)indent selected lines, you can use the 
multi-caret feature.
Go to the left most column, on the first line. Then shift-alt-down until 
you have a caret in front of each line you wish to change. Now either 
delete spaces, or insert spaces.


Of course for un-indent that does not work, if there is a line with no 
spaces at the front. You can over-unindent it (block + shift tab), then 
shift-ctrl left click at the end of a line in the selection, to convert 
the selection into multi carets, hit home-key to get the carets to the 
front of lines, and insert a space.


The un-indent will work with empty lines in the range. "del" on 
multicaret will not remove line-ends. (backspace will remove line ends).

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Tab/Shift tab and block indentation

2020-04-19 Thread Florian Klämpfl via lazarus
When completing code, lazarus takes the Block indent value from the 
editor options for indentions, so for proper indention one sets this 
value to two spaces normally. However, this has the effect that 
tab/shift+tab also un/indents by two spaces. This is often not useful 
when reorganizing code. Is there any way to decouple these two 
behaviors: so that code completion idents by 2, tab/shift+tab by 1? Or 
do I need to adapt lazarus sources?

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Add your own fpmake packages to the fppkg-repository

2020-04-19 Thread Werner Pamler via lazarus

Am 17.04.2020 um 13:43 schrieb Joost van der Sluis via lazarus:
Everyone can log-in with a bug-tracker of forum account. Note that 
every fpc-version has it's own repository. And that there are two 
flavours: testing and production. Everyone can add packages to 
testing. For now adding to production is only possible for 
administrators.


Does this mean that every forum user can post fpc packages? Will there 
be a review? I guess we will drown in garbage. Forum users, don't 
misunderstand me, I am not saying that you are posting poor software in 
general, but we've had some evil-minded guys out there in the forum. 
Sorry I am thinking of the worst: will there be access rights so that a 
poster can only modify his own packages? (CCR for example does not have 
them - we're lucky that nobody has abused it so far, but here not every 
forum user has access).


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-19 Thread Graeme Geldenhuys via lazarus
On 13/04/2020 10:11 pm, Michael Van Canneyt via lazarus wrote:
> I have not used the OPM extensively, but I think that once a package has
> been registered/accepted, I think the original author must be able to upload 
> his
> own changes.

Just curious - does the OPM support multiple versions of a package? eg:
If the package includes code breaking changes in a newer version,
developers could still choose to use a older version that doesn't break
there code.  Think Maven packages where any release version can be
chosen by developers using that package.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus