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

[[ and ]] go to beginning and end of file, not by "section" #9397

Open
jmagaram opened this issue Dec 15, 2024 · 0 comments
Open

[[ and ]] go to beginning and end of file, not by "section" #9397

jmagaram opened this issue Dec 15, 2024 · 0 comments

Comments

@jmagaram
Copy link

Describe the bug
I'm trying to navigating within a typescript file using the [[ and ]] commands, that are supposed to move by "section". I'm not clear exactly what a section is but in Zed it moves by a chunk of code, like one function to another. According to Neovim docs a section has some kind of relation to { symbols. But in VS Code, [[ and ]] move to the beginning and end of the TypeScript file, and the number I put at the beginning seems to have no effect.

To Reproduce
Open up any large typescript file. Put the cursor in the middle of a chunk of code. Press [[ or ]].

Expected behavior
Moves by some reasonable chunk of code, like function to function or statement to statement. I'm not familiar enough with VIM and Neovim to know exactly what it should do.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.29.0
  • VSCode version: 1.96.0
  • OS: MacOS

Additional context
None

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

No branches or pull requests

1 participant