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

Add support for camel humps #300

Closed
a-stewart opened this issue Jul 13, 2023 · 4 comments
Closed

Add support for camel humps #300

a-stewart opened this issue Jul 13, 2023 · 4 comments
Assignees
Milestone

Comments

@a-stewart
Copy link
Contributor

In IntelliJ, you can enable "CamelHumps" mode making it so various text editing operations have units by CamelHumps.

image

For example, pressing "CTRL+DEL" when your cursor is at the end of "ActionResourcePath" would change it into "ActionResource" and if you did it again then "Action".

For example, pressing "CTRL+Arrow key" when your cursor is at the end of "ActionResourcePath" would put your cursor between "Resource" and "Path"


VS Code added support for subword navigation in 1.25:
https://code.visualstudio.com/updates/v1_25#_subword-support

I wonder if we could create a setting for the IntelliJ keybindings extension and when use the when clause in keybindings to perform different commands based on that?

@kasecato
Copy link
Owner

I released it on v1.5.10 now. Please check it

@mammuth
Copy link

mammuth commented Jan 15, 2024

I just used the plugin (v1.5.12) and for me, the camel hump settings seem to get imported incorrectly.

It generated:

    {
        "command": "cursorWordRight",
        "key": "alt+[ArrowRight]",
        "when": "textInputFocus"
    },
    {
        "command": "cursorWordRightSelect",
        "key": "shift+alt+[ArrowRight]",
        "when": "textInputFocus"
    },

etc.

However, the command in vscode v1.85.1 seems to be cursorWord**Part**Right etc. After adding the Part to the commands, camel hump navigation works fine for me 😊

(Honoring camel humps when selecting via double-click is also not working, not sure how to fix it though)

Thanks for maintaining this extension!

@kasecato kasecato modified the milestones: v1.5.10, v1.6.1 Mar 20, 2024
@kasecato kasecato added bug and removed bug labels Mar 20, 2024
@kasecato
Copy link
Owner

I'll update a README.md. We can't support the double-click option for now

kasecato added a commit that referenced this issue Mar 20, 2024
Update #300 that add a sample of setting options
@kasecato
Copy link
Owner

kasecato commented Apr 1, 2024

Released v1.6.1

@kasecato kasecato closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants