Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent shift right on tab #761

Closed
philiprbrenan opened this issue Nov 16, 2015 · 1 comment
Closed

Inconsistent shift right on tab #761

philiprbrenan opened this issue Nov 16, 2015 · 1 comment
Labels

Comments

@philiprbrenan
Copy link

(1)
shift0
(2)
shift1
(3)
shift2

I find the shift right feature of Geany very useful. In (1) I selected the two lines of code on lines 2 and 3 and then pressed the tab key to get (2) just as expected. However when I use a rectangular selection as on lines 4 and 5 and then push the tab 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 tab key. Thanks!

@elextr
Copy link
Member

elextr commented Nov 16, 2015

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.

@elextr elextr closed this as completed Nov 16, 2015
@elextr elextr added the invalid label Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants