Skip to content

Input is not focused when invoking command for Focus on Structural Search View - search.input.focus #559

@ackvf

Description

@ackvf

Moved from there.


Hey guys! Just found this extension and I am completely blown away, questioning myself and the fact that the vscode extension has only been installed just 10k!!?? How could I even live without it? Oh man, facepalm.

Anyway, here's my suggestion:

When I invoke the command ast-grep: Focus on Structural Search View from command palette or via keybinding, the view gets visible, but there is no focus in the input, making it impossible to start writing a search query.

What I am trying to do is to mimic the behavior of ctrl+shft+f search and just start using ast-grep instead

This is what I came up with for the time being
image

/edit: Interestingly, there is also view: Show ast-grep: workbench.view.extension.ast-grep-sidebar-view that seems to do the same thing as ast-grep: Focus on Structural Search View: ast-grep.search.input.focus and I have just realized that the command reads search.input.focus, so what my suggestion reports is something that is in fact implied by the command already, but it's not working, so I guess it's a bug?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions