anilgulecha/trelby — comment on commit 7962d134309bac991497e292f558b5e260063af2
File: src/screenplay.py line 2626
By anilgulecha:

Usually selection implies the user wants things to be done to the entire selected blob. Like selecting and typing on notepad would replace the blob with the typed/pasted text. In word, selected text and applying bold/etc applies to the whole text. In code editors.. you select and indent everything.

I agree that pressing TAB will only cycle through the path that the current element (the one under cursor.. usually the last element selected).. but this behavior is still better than just changing the style of the current element.. since the user specifically selected multiple elements.

The most common usecase I see to changing types in multiple lines is :
* select text + keyboard shortcut (alt+a, etc)
* select text + rightclick> select type

The uncommon usecase is:
* select text + tab/enter .. which may not always lead to what the writer wants.. in this case she quickly realises this method is inefficient.

All in all I don't see a better behavior for select multiple lines + tab/enter.. so we should stick with this.

Of course, when no text is selected, we retain the current functionality.