Skip to content
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: jump cursor to anchor line #173

Closed
akharrou opened this issue Dec 4, 2022 · 1 comment
Closed

Feature request: jump cursor to anchor line #173

akharrou opened this issue Dec 4, 2022 · 1 comment
Labels
Enhancement New feature or request

Comments

@akharrou
Copy link

akharrou commented Dec 4, 2022

hello, thanks for the great extension.

i find myself often wanting to go to a todo set as an anchor, only using the keyboard. the problem is, as i navigate to the extensions view, and press enter, or right arrow on one of the anchors, it moves the editor screen to the line, but not the cursor.

would it be possible to add a feature that when you press enter or press right arrow, or some arbitrary keybinding, that it takes the cursor directly to the line where the anchor resides ? so that you can directly start editing ?

thank you.

@JordanDi123 JordanDi123 added the Enhancement New feature or request label Jan 2, 2023
@JordanDi123
Copy link
Member

Hello,

I have changed it so that when you select an anchor, it will now also move your cursor to that position (instead of only just moving the editor screen to that line). You can then use the View: Focus First Editor Group command (keybinding ctrl+1 by default) to focus the editor and directly start editing.

Feel free to clone the repo and build the extension for yourself. :)

Thanks for the kind words! Enjoy using Comment Anchors!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants