Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance #6

Closed
junichi11 opened this issue May 27, 2019 · 1 comment
Closed

Improve performance #6

junichi11 opened this issue May 27, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@junichi11
Copy link
Owner

Is your feature request related to a problem? Please describe.

If a file has many lines, scrolling will be slow.
The cause is the start position for searching braces. Currently, this plugin searches them from the top of the file (i.g. offset is 0) because need the correct pair of braces position. Otherwise, colors of braces are changed when we scroll the editor.

Describe the solution you'd like

  • If the caret position is near the bottom, search braces from the end of the file.
  • Search braces only around the caret position.

Describe alternatives you've considered

@junichi11 junichi11 added the enhancement New feature or request label May 27, 2019
@junichi11 junichi11 self-assigned this May 27, 2019
junichi11 added a commit that referenced this issue May 29, 2019
- Add HighlightsSequenceBackward
@junichi11 junichi11 added this to the 1.2.1 milestone May 29, 2019
@junichi11
Copy link
Owner Author

If the caret position is near the bottom, search braces from the end of the file.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant