VSCodeVim / VSCodeVim/Vim

Previous/next method start/end (`[m`, `]m`, `[M`, `]M`) don't work

Open
#3,485 2 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
Bindings for jumping to method start/end don't work.

[m Previous method start
[M Previous method end
]m Next method start
]M Next method end

To Reproduce
Steps to reproduce the behavior:

  1. Go to top of file with methods in it
  2. Type ]
  3. Type m
  4. Nothing happens

Expected behavior
Should jump to start of first method.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.0.8
  • VSCode version: 1.31.0
  • OS: macOS 10.14.3

Additional context
Not sure if this is something being broken or something being missing. Would be willing to work on a PR if someone could point me at a good example for adding this type of behavior.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the keybinding handling for [m, ]m, [M, and ]M in the VSCodeVim TypeScript extension, then compare it with a working motion. Reproduce the issue with a file containing methods and verify that each binding moves to the expected method start or end.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.