Skip to content

Conversation

@cloverhearts
Copy link
Member

What is this PR for?

zeppelin custom key binding event optimization for Ace Code editor

What type of PR is it?

Improvement

Todos

  • optimization for key binding and check logic

How should this be tested?

For many in the code editor and typing quickly.
The effect is greater when there are many Paragraph.

Questions:

  • Does the licenses files need update? no
  • Is there breaking changes for older versions? no
  • Does this needs documentation? no

$scope.editor.commands.bindKey('ctrl-.', 'startAutocomplete');
$scope.editor.commands.bindKey('ctrl-space', null);

$scope.keyBindingEditorFocusAction = function(moveTarget, scrollValue) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be var, not $scope

@cloverhearts
Copy link
Member Author

cloverhearts commented Aug 5, 2016

Sorry, i found a bug.

@cloverhearts
Copy link
Member Author

Bug fixes completed.
I will wait for the reviews.

@cloverhearts cloverhearts reopened this Aug 5, 2016
@Leemoonsoo
Copy link
Member

Thanks for the patch.

Could you create two paragraphs and write multiple lines of text (more than 3 lines) in the code editor and try move focus by up/down key?

Cursor skips top/bottom line of text in the code editor.

@cloverhearts
Copy link
Member Author

@Leemoonsoo
Thank you for your opinion.
I'll check

@cloverhearts
Copy link
Member Author

@Leemoonsoo
testrow
This modification has been completed.
If you have any other opinion or find a bug. , please post a comment.
Thank you, have a nice day.

@Leemoonsoo
Copy link
Member

Tested and LGTM.
Merge to maste and branch-0.6 if there're no more discussions

@asfgit asfgit closed this in ea76ca9 Aug 6, 2016
asfgit pushed a commit that referenced this pull request Aug 6, 2016
zeppelin custom key binding event optimization for Ace Code editor

Improvement

- [x] optimization for key binding and check logic

For many in the code editor and typing quickly.
The effect is greater when there are many Paragraph.

* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: CloverHearts <cloverheartsdev@gmail.com>

Closes #1287 from cloverhearts/dev/codeditorKeyBindOptimization and squashes the following commits:

76cd284 [CloverHearts] paragraph move jum bug fixed.
27f7146 [CloverHearts] Modify the style syntax for code editor
e4c37b1 [CloverHearts] move to original key bind function for codeeditor optimiza
6a9edbe [CloverHearts] change access type $scope access member to local variable and add last row check logic
8cc63b7 [CloverHearts] fixed syntax error for editor key binding optimization.
b37788d [CloverHearts] Code editor key binding event optimization.

(cherry picked from commit ea76ca9)
Signed-off-by: Lee moon soo <moon@apache.org>
PhilippGrulich pushed a commit to SWC-SENSE/zeppelin that referenced this pull request Aug 8, 2016
### What is this PR for?
zeppelin custom key binding event optimization for Ace Code editor

### What type of PR is it?
Improvement

### Todos
- [x] optimization for key binding and check logic

### How should this be tested?
For many in the code editor and typing quickly.
The effect is greater when there are many Paragraph.

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: CloverHearts <cloverheartsdev@gmail.com>

Closes apache#1287 from cloverhearts/dev/codeditorKeyBindOptimization and squashes the following commits:

76cd284 [CloverHearts] paragraph move jum bug fixed.
27f7146 [CloverHearts] Modify the style syntax for code editor
e4c37b1 [CloverHearts] move to original key bind function for codeeditor optimiza
6a9edbe [CloverHearts] change access type $scope access member to local variable and add last row check logic
8cc63b7 [CloverHearts] fixed syntax error for editor key binding optimization.
b37788d [CloverHearts] Code editor key binding event optimization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants