-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Feature Request] search&replace in documents #85
Comments
Hi there 👋🏻 Thanks a lot for filing this! Will ping this thread once I have more info! Best, |
Thank you! |
Could you give a status update regarding this issue? |
Hi there! We had to make some major adjustments and changes to documents' structures to bring paper-mode to life, which is what delayed this feature. TLDR; Long version : – i.e. in continuous mode, all text is technically on the same page. However, while using paper-mode, there is a critical scenario : – search needs to find text in multiple separate containers (one for each page) let's say you're searching for : Let's say there's 4 occurrences of "link" in the document. Once you replace "link" on Page 1, it will shift all the text after itself by 59 characters, and some text may/will overflow from Page 1 to Page 2, and consequently Page 2's text will overflow to Page 3 etc etc. It's surprisingly difficult to calculate these changes efficiently, since each keystroke shifts the entire document, so the entire document's contents after your cursor needs to get updated. (i.e. if you've got a 100 page long document, and making edits on Page 1 all the remaining 99 pages also need to get computed with each and every one of your keystrokes.) We're using some smart tricks to reduce shifting / re-calculation but it's still surprisingly very difficult to achieve on the web. Hoping this makes sense! Best, |
thank you for the detailed explanation! |
Is your feature request related to a problem? Please describe.
At the moment there is no search & replace solution in Cryptee Docs. I can use the internal search function of the browser, but the complete document may be copied into an external editor to achieve search & replace functionality.
Describe the solution you'd like
Internal search & replace solution, including "replace all" function.
Maybe "Match whole word only" and "Match case" options would be helpful also.
Additional context
n/a
The text was updated successfully, but these errors were encountered: