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

The cursorWordPart* commands are limited to editor text, unlike the other cursorWord* commands #76762

Open
travisclagrone opened this issue Jul 6, 2019 · 6 comments
Assignees
Labels
editor-find Editor find operations feature-request Request for new features or functionality
Milestone

Comments

@travisclagrone
Copy link

  • VSCode Version: 1.36.0 (system setup)
  • OS Version: Windows_NT x64 10.0.18362

Steps to Reproduce:

  1. Focus on a non-editor input text field (e.g. execute the command workbench.action.quickOpen or actions.find, inter alia)
  2. Insert the text of the multi-part word "fooBar".
  3. Move the cursor to the end of the multi-part word text.
  4. Enter your keybinding for the command cursorWordPartLeft.

Expected behavior:

  • Cursor moves to between "foo" and "Bar", i.e. foo|Bar.

Actual behavior:

  • No effect.

Notes:

  • This limitation appears in all inputText contexts other than the editorText context.
  • This limitation affects all the cursorWordPart* commands:
    • cursorWordPartLeft
    • cursorWordPartLeftSelect
    • cursorWordPartRight
    • cursorWordPartRightSelect
    • cursorWordPartStartLeft
    • cursorWordPartStartLeftSelect
  • The corresponding whole-word commands (those without the "Part" infix) are not limited, i.e. they function in inputText contexts other than the editorText context.

Does this issue occur when all extensions are disabled?: Yes

@vscodebot vscodebot bot added the new release label Jul 6, 2019
@vscodebot vscodebot bot removed the new release label Jul 8, 2019
@rebornix rebornix added the editor-find Editor find operations label Aug 2, 2019
@rebornix rebornix assigned rebornix and unassigned alexdima Aug 2, 2019
@rebornix rebornix added the feature-request Request for new features or functionality label Aug 2, 2019
@mattkrick
Copy link

worth noting this isn't just an issue with find. would love to see this in the F2 to rename input!

@gsmetal
Copy link

gsmetal commented Jul 13, 2020

Please, this is one of the most hurting moment when switching from Atom 🙏

@JWess
Copy link

JWess commented Jan 18, 2023

I encounter this many times per day when trying to use F2 to rename a variable. It's unfortunate that it's been dormant in the backlog since 2020 (when it did receive enough community upvotes to be moved to the backlog).

Here is what happens if I hit F2 to rename a function's parameter and then activate the deleteWordPartLeft command:
Code_lxSo0U9BSS

@JWess
Copy link

JWess commented Jan 18, 2023

Related to #53666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-find Editor find operations feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

7 participants
@gsmetal @rebornix @alexdima @mattkrick @JWess @travisclagrone and others