-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Hide multiple lines #684
Comments
@LeleDallas I have an extension for changing line numbers; you can modify it to display the line numbers you want. Example: https://uiwjs.github.io/react-codemirror/#/extensions/line-numbers-relative react-codemirror/extensions/line-numbers-relative/src/index.ts Lines 4 to 20 in e79b1f3
|
Cool thanks! But how can I remove those empty lines? |
@LeleDallas Can these be handled when passing in the text? |
No, because it will destroy the original line logic |
@LeleDallas I think you can look into the implementation of merge -> https://uiwjs.github.io/react-codemirror/#/merge/document |
I don't understand the connection... What is the connection? |
@LeleDallas It isn't. Are there any hidden rows? |
Oh you mean that! Yeah that will be cool! But how can I fold plaintext based on my previous code? |
@jaywcjlove any suggestions? |
Hi 👋
I'm trying to build something like the GitHub code search
Example
For now I'm able to highlight words based on start and end index:
Code
How can I just show only the match result without all other lines and how can I keep the only the original line number?
The text was updated successfully, but these errors were encountered: