[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [StrongED] Block indent behaviour

In message <ee28a88d53.fjgraute@xxxxxxxxx>
  Fred Graute <fjgraute@xxxxxxxxx> wrote:

> Hi All,

> Currently I'm busy rewriting the inner workings of block edit to make it
> faster when the selected block is large.

> Whilst doing this I also looked at the other code that uses block edit
> such as Menu -> Block -> Process -> Indent. It's behaviour is not what I
> was expecting.

> What do you expect will happen just by looking at that option, ie
> without trying it? Should the position of the caret have an impact on
> the result?

> If you could have a look at the option and let me know what you'd expect
> then I'll know if it's just me having the wrong expectation or whether
> the option needs changing (either the wording or its behaviour).

I would have expected 'Indent' to move the whole block to the right by 
the specified amount, that is add leading spaces. However the Function 
Reference describes what actually happens which might also be useful.

The name 'Indent' does imply a certain behaviour but the function is 
more versatile.

In the interests of not making a decision I might suggest two 
functions, an 'Indent' that does what we think indent means inserting 
spaces at the start of the lines and an 'Insert Spaces' inserting at 
the caret.

It's all good, it's just a naming thing.
David Pitt
Raspberry Pi RISC OS 5.21

To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx