-
Notifications
You must be signed in to change notification settings - Fork 0
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
Get Position Of Curser - Reverse Of Going To A Position #2
Comments
Just making sure we are thinking about the same thing: vscode does provide the position of a cursor at the bottom of the status bar where it says something like Ln 58, Col 31: Col 31 would be the column of the cursor. Are you talking about that or do you want the 'absolute index'? Like the 0 or 1 based character index in the text body? |
Great. Thanks for walkthrough and snapshots! Much appreciated. I think we are on the same page! Getting a characters position is not a terribly complex task to do at all, however, if we are to take user experience into account, there's really only 2 ways I can think of that vscode api natively supports.
Both these options, at a high level, could potentially negatively impact editor performance and I would like to avoid that, if possible. Not to say that it will, just saying I don't know off the top of my head. Worst case scenario, I can just add a command pallete command that the user will have to explicitly invoke, something along the lines of what you mentioned with a dialog box. All this to say, it's doable, and I find value in adding it, I just want to make sure it's done in a way that doesn't have a negative experience as a byproduct so it won't be as fast as a turn-around as you would like I image. But let me explore those first 2 options and see how they impact typing performance, if at all, and go from there! |
A feature request:
Going to character position is awesome, but it'd be nice to get the current position of cursor.
The text was updated successfully, but these errors were encountered: