Bug 288430

Summary: [block selection] Shift Left/Right with Block Selection
Product: [Eclipse Project] Platform Reporter: Brock Janiczak <brockj>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: christian.georgi, daniel_megert, eclipse, st.mailinglists
Version: 3.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Brock Janiczak CLA 2009-09-03 01:46:02 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Build Identifier: I20090430-2300

Tab and shift tab when multiple lines are block selected shifts the entire  lines left or right (which matches the regular selection mode).

It would be nice if the left hand side of the block selection could be used as the starting point for the shift operation.  This could be useful for quickly re-indenting code where a column based format is used

It is possible to do something similar by block selecting the lines and indenting with spaces, but some people prefer tabs over spaces.

Reproducible: Always
Comment 1 Tom Hofmann CLA 2009-09-03 03:43:07 EDT
I understand the request, but don't think it would be a good idea to remove the well-known Shift Left/Right functionality bound to Tab / Shift+Tab. If anything, the requested functionality would be a new command, IMO. 

Not sure how to proceed - Dani, your opinion?
Comment 2 Dani Megert CLA 2009-09-03 03:53:24 EDT
>If anything, the requested functionality would be a new command, IMO. 
Right.
Comment 3 Brock Janiczak CLA 2009-09-03 04:20:01 EDT
What i really want is for tab to act like tab when in block selection mode.  If you add a check in TextViewer@canDoOperation to return false if the style text is in block selection mode, everything works correctly.  You can use tab to indent and backspace to unindent.
Comment 4 Tom Hofmann CLA 2010-07-08 11:41:28 EDT
*** Bug 319280 has been marked as a duplicate of this bug. ***
Comment 5 Eclipse Webmaster CLA 2019-09-06 15:36:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.