-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
positionToIndex, indexToPosition methods #1162
Comments
Out of interest, what are you doing this for? (I had to do a similar thing in ACEView). On the subject of including such functionality, I suppose they'll suggest you make an extension, as a way to ensure one only includes code used in the given situation. Sorry but I have no idea where to start with that. |
I'm working on intregration emmet into ace. It requres interface without row/column position. I think textarea-like ranges could be useful in some cases. |
I have started work on emmet some time ago but didn't finish. Here's a cleaned up version e6703dc (works except for proper tabable snippets) We didn't want to add these functions since they can't be fast on big documents #378 and there are optimizations depending on exact usecase, but they seem to be fast enough and since they are needed frequently, its' better to add them, than have everyone to do the same work |
👍 I would love this to be added. |
#1162 positionToIndex, indexToPosition methods
@nightwing thanks for the advice, I will keep the Objective C implementations. |
I'm looking for the way to convert given indexes (number) to positions ({row:x,column:y} object). It's like selectionStart, selectionEnd of a textarea.
This is my horrible attempt to implement it (outside the ace):
Is there a better way to do this? What about the inclusion of these methods into the ACE ?
The text was updated successfully, but these errors were encountered: