Coder Social home page Coder Social logo

reqable / re-editor Goto Github PK

View Code? Open in Web Editor NEW
468.0 468.0 40.0 5.38 MB

Re-Editor is a powerful lightweight text and code editor widget.

Home Page: https://pub.dev/packages/re_editor

License: MIT License

Kotlin 0.02% Dart 93.97% Swift 0.22% Objective-C 0.01% CMake 2.46% C++ 2.92% C 0.18% HTML 0.23%
code-editor flutter syntax-highlighting text-editor

re-editor's People

Contributors

litt1eq avatar megatronking avatar monkeywie avatar pplcode avatar tizianotedeschi avatar xiaohubase avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

re-editor's Issues

Navigation using arrow keys does not permit movement beyond the initially visible option

Hi,

I would like to express my gratitude for the editor; it has been indispensable to me. However, I am encountering a problem with the autocompletion functionality: Currently, when utilizing the arrow keys to navigate through the list of suggested keywords, the functionality does not permit movement beyond the initially visible options. For instance, if five keywords are displayed in the autocomplete dropdown, it is not possible to navigate to the sixth keyword or beyond. I would appreciate any assistance you could provide to resolve this matter.

安卓上全选只能选中一行

Screenrecorder-2024-07-31-08-27-33-711.mp4

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device:

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

[Mobile] Toolbar and Selection Abnormal work

During my use on iOS, I found that both double clicking and long pressing will trigger the toolbar, which makes it impossible to move both cursors to select content.

Simultaneously long press and hold to select a section of text, and you will find that only the last selected short section of text is copied to the clipboard after copying.

支持 移动Y方向的滚动条

我有一个实时读取日志文件的功能,当我读取新增行后,需用通过以下代码,

以保证滚动条Y为最底部
_controller.moveCursorToPageEnd();

但此时,如果文本X方向很长(会显示滚动条),滚动条X会移动到最右边, 对自动读取日志这个功能,会显得很怪异。
_controller.moveCursorToLineStart();

经过先移动到文档末尾,再移动到行首。能满足效果。

但会出现一些小瑕疵,就是滚动条X会在移动到行首时,立即显示出来又马上消失。且这样感觉会绕弯,浪费不必要的计算。

image

HTML support

I need to format HTML. lots of language are supported but not HTML.
Can you please help and support HTML ? it would be so great

findController.nextMatch() works only, if the editor does not have the focus

Describe the bug
findController.nextMatch() works only, if the editor does not have the focus. This makes it impossible to implement the following feature: pressing some kind of shortcut to jump to the next match while editing the text (like Ctrl+K in IntelliJ) won't work.

To Reproduce

  1. Add a shortcut to the editor which is bound to an Intent triggering a findController.nextMatch().
  2. Perform a find operation
  3. Set the focus on the editor and press the named shortcut from 1
  4. Nothing happens

Expected behavior
We should navigate to the next match in that case.

Analysis
The reason nothing works is the following code:

/// File _code_editable.dart
  void _onCodeFindChanged() {
    final CodeFindValue? value = widget.findController.value;
    if (value == null) {
      widget.focusNode.requestFocus();
      return;
    }
/// -> prevents further processing. Why is this check necessary? Is it to avoid unintended onCodeFindChanged actions? Can we
/// avoid those using a different check?
    if (widget.focusNode.hasFocus) {
      return;
    }

Device:

  • OS: Windows Desktop

有点几个问题

安卓平台收起键盘后点击输入框无法重新弹出键盘,还有当点击其他区域失去焦点后点击输入框无法重新获取焦点
ios平台使用原生键盘长按空格无法移动光标,键盘不会跟随夜间模式

怎么自定义自己的快捷键

如何自定义自己的快捷键,例如我是增加快捷键 command + enter。我在codeEditor外层套了一层shortcuts,但是不管用,是不是事件被code editor给拦截了

How to turn off keyword prompt and remove case sensitive in autocomplete?

Hi,
Thanks for this editor. I followed your example code for autocompletion. I want to turn off all auto keywords prompts. I need only "directPrompts" words. It should match with directPrompts whatever I type(Upper or lower case word) How do I achieve this?
Pls help me.

Thanks in advance
Srimathi

Despite selecting a keyword by pressing the Enter key, the autocomplete feature continues to display suggestions similar to the chosen keyword

Thankyou for this editor. However, I am encountering a persistent issue as follows:

Despite selecting a keyword by pressing the Enter key, the autocomplete feature continues to display suggestions similar to the chosen keyword. For instance, consider the keywords “Apple” and “Apples.” When typing “appl,” the autocomplete suggests both options. After selecting “Apple” and pressing Enter, the autocomplete feature persists in showing “Apples” as a suggested keyword.

It would be greatly appreciated if you could provide a solution to this issue.

Thanks in advance

Set cursor focus to end of the line

Hi,
I am using codeLineEditingController.text to set and get the text on the editor. I want to blink the cursor at the end of the line or document. How can I achieve this? I tried the below code while clicking the button. The cursor is not moving to the end. please help me.

setState(() {
codeLineEditingController.text =
formatted text;

codeLineEditingController
.moveCursorToLineEnd();
});

Thanks in advance
Srimathi

slow highlight performance

I am very satisfied with the speed of editing.
But, Highlighting is slow when code is large.
When entering new code after several thousand lines of code, highlighting takes more than a few seconds.
Is there any solution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.