VSCodeVim / VSCodeVim/Vim

Macros can't jump between files

Open
#5,123 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
If you start recording a macro and jump to a file as part of that macro the macro recording stops.
Also when you are on a different file you can not repeat the last macro, at least not the same that you ran on the previous file you were.

To Reproduce
Steps to reproduce the behavior:

  1. Start recording a macro
  2. Jum to a file using gd or gf
  3. See how the macro record has stopped

Expected behavior
In normal vim macros can jump between files and go back and forth

Environment (please complete the following information):

Extension version: 1.16.0
VS Code version: Code 1.47.3 (91899dcef7b8110878ea59626991a18c8a6a1b3e, 2020-07-23T13:08:29.692Z)
OS version: Darwin x64 19.5.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2900)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 32.00GB (0.16GB free)
Process Argv -psn_0_73746
Screen Reader no
VM 0%

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

No source file or test is named. Start by tracing macro recording and repeat behavior around the gd and gf commands, then reproduce the transition between files in VS Code. Done means recording continues across the jump and the last macro can be repeated from the other file, with regression coverage for both behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.