geddski / geddski/macros

Type text where vscode has focus not just in the editor window

Open
#14 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
177
Forks
36
PR merge metrics
No merged PRs in 30d

Description

I am trying to create a macro that will execute a find and replace.

I can use editor.action.startFindReplaceAction but that just opens the input. I tried putting a command text after that to input the text I wanted to find but that typed the text in the main editor and not in the find dialog box. Is there anyway to pass arguments to find and replace or to have the type command add text to the input box instead of the editor?

Contributor guide

No contributing guide indexed for this repository

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 tracing how the macro invokes editor.action.startFindReplaceAction and how the type command chooses its target. Check whether the VS Code command interface supports passing find/replace arguments or typing into the focused input. Done means a macro can open find and replace and enter its text there rather than in the main editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.