Bug 575383

Summary: A mouse action to add a caret into editor
Product: [Eclipse Project] Platform Reporter: Mickael Istria <mistria>
Component: TextAssignee: Mickael Istria <mistria>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sarika.sinha
Version: 4.21Keywords: noteworthy
Target Milestone: 4.22 M1   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/185731
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=5b4b50264e68ba3ac3c0881431bc4175bb93aa12
Whiteboard:
Bug Depends on: 466532    
Bug Blocks:    

Description Mickael Istria CLA 2021-08-12 11:41:09 EDT
When bug 466532 is done, the text viewers/editors should provide a mouse action to add a caret for edition. Something like Alt+Click or Ctrl+Middle button.
Comment 1 Mickael Istria CLA 2021-09-14 09:51:12 EDT
So Alt+Click is the one used by VSCode and seems to be free for TextViewer et al.
Any objection against using that? Should we add it to StyledText (so all StyledText now become capable of multi-carets by user decision), or to TextViewer, or somewhere else?
Comment 2 Sarika Sinha CLA 2021-09-15 03:30:16 EDT
Alt + Click sounds good. As the Multi Caret support exists in StyledText, mouse action can be added to this.
Comment 3 Eclipse Genie CLA 2021-09-23 06:22:54 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/185731
Comment 5 Mickael Istria CLA 2021-09-23 17:28:02 EDT
Done. One can now use Alt+Click on any StyledText to add a caret.
Comment 6 Sarika Sinha CLA 2021-10-01 03:41:14 EDT
Can we highlight the "Select All" button and add the image in N&N ?
It's a cool thing and can get unnoticed without the image.

Is Alt+Click enough or we should mention Option+Click also?