Bug 539772 - [SourceEditor, R-Editor, Templates] Add support for keyboard bindings for editor templates
Summary: [SourceEditor, R-Editor, Templates] Add support for keyboard bindings for edi...
Status: CLOSED FIXED
Alias: None
Product: Statet
Classification: Science
Component: R IDE (show other bugs)
Version: 4.0.0-dev   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.0.0   Edit
Assignee: Stephan Wahlbrink CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2018-10-03 15:59 EDT by Stephan Wahlbrink CLA
Modified: 2019-07-20 04:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Wahlbrink CLA 2018-10-03 15:59:17 EDT
Add support for keyboard bindings for editor templates.
This will allow the user to create keyboard shortcuts for any desired text snippets to insert.

A shortcut for the magrittr pipe operator was requested more than one time. StatET should provide an R editor template with binding for that operator.
Comment 1 Stephan Wahlbrink CLA 2018-10-03 16:11:41 EDT
While the feature was initially requested for the R code, it will be also available for LaTeX.
Comment 2 Eclipse Genie CLA 2018-10-05 05:54:11 EDT
New Gerrit change created: https://git.eclipse.org/r/130452
Comment 3 Eclipse Genie CLA 2018-10-05 05:54:13 EDT
New Gerrit change created: https://git.eclipse.org/r/130453
Comment 4 Eclipse Genie CLA 2018-10-05 06:11:51 EDT
New Gerrit change created: https://git.eclipse.org/r/130455
Comment 5 Eclipse Genie CLA 2018-10-05 06:18:16 EDT
New Gerrit change created: https://git.eclipse.org/r/130456
Comment 6 Eclipse Genie CLA 2018-10-05 06:44:58 EDT
New Gerrit change created: https://git.eclipse.org/r/130459
Comment 7 Stephan Wahlbrink CLA 2018-10-05 16:01:32 EDT
The R code style settings got additional options for whitespace before/after other operator.

The insert template action take into account the code style settings and thus works similar to the insert assignment action.
Comment 8 Stephan Wahlbrink CLA 2018-10-05 16:01:39 EDT
The default shortcut for magrittr pipe operator is Ctrl+5.
Comment 11 Stephan Wahlbrink CLA 2018-10-10 07:43:11 EDT
Additional adaptations in EnhTemplateStore were required for Eclipse 2018-09.
Comment 15 Stephan Wahlbrink CLA 2019-07-20 04:14:41 EDT
4.0.0 released.