(1) ![shift0](https://cloud.githubusercontent.com/assets/7548378/11172311/271612fe-8bfd-11...) (2) ![shift1](https://cloud.githubusercontent.com/assets/7548378/11172312/2719b92c-8bfd-11...) (3) ![shift2](https://cloud.githubusercontent.com/assets/7548378/11172313/271e159e-8bfd-11...)
I find the shift right feature of <b>Geany</b> very useful. In (1) I selected the two lines of code on lines 2 and 3 and then pressed the <b>tab</b> key to get (2) just as expected. However when I use a rectangular selection as on lines 4 and 5 and then push the <b>tab</b> key to shift the selected text, I get (3) which is very different. Please consider making the rectangular select behave in a way that is similar to the normal selection when shifted by the <b>tab</b> key. Thanks!
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/761
This is working as expected. The tab key is not a "shift right" key, it is an insert. It inserts sufficient whitespace so the first non-whitespace after the selection moves to the next tab stop. Note that this is a normal insert, ie any selection is replaced by the inserted text. This is normal behaviour for any insert, by typing, by paste, by the tab key.
Simply select a vertical line before the text you want to move, ie where you want the insert, don't select the text you want to move or it will be replaced.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/761#issuecomment-156887052
Closed #761.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/761#event-464954662
github-comments@lists.geany.org