Bug 575383 - A mouse action to add a caret into editor
Summary: A mouse action to add a caret into editor
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.21   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.22 M1   Edit
Assignee: Mickael Istria CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on: 466532
Blocks:
  Show dependency tree
 
Reported: 2021-08-12 11:41 EDT by Mickael Istria CLA
Modified: 2021-10-01 03:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?