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

Feature request: "CamelHumps Mode" in addition to "Word Mode" #216

Closed
clojj opened this issue Mar 10, 2018 · 5 comments
Closed

Feature request: "CamelHumps Mode" in addition to "Word Mode" #216

clojj opened this issue Mar 10, 2018 · 5 comments
Labels

Comments

@clojj
Copy link
Contributor

clojj commented Mar 10, 2018

it would be great to also have a camel-humps mode, i.e. jumping to a camel-hump directly
this depicts word-mode, but I often want to jump to a camel-hump for renaming purposes
ace-camel-humps

@breandan
Copy link
Collaborator

Great suggestion! This is something I have been considering for a while, an approximate or fuzzy search feature. Once we get a handle on the outstanding bugs, it would be a nice feature to tackle. Since we consider non-contiguous letters in words for tagging, it might conflict with the existing full-text search. We might need to introduce a new mode unless we can figure out how to assign tags to sites while allowing for collision-free expansion of non-adjacent but sequential search characters. It might be possible, but would probably reduce the number of available two-character tags.

@clojj
Copy link
Contributor Author

clojj commented Mar 11, 2018

Doesn't it just mean searching for upper/lowercase (or vice versa) 2-character sequences ?

@breandan
Copy link
Collaborator

breandan commented Oct 8, 2018

If all you want is the ability to search for lower and upper case letters, then it currently supported in AceJump 3.5.1. If you want to search for hump characters (camelCaseSearch -> ccs) a la IntelliJ IDEA's camel case completion, then this is not yet supported.

@clojj
Copy link
Contributor Author

clojj commented Nov 18, 2019

Actually, I'd like to see this plugin know my Editor (General-)Setting "CamelHumps" and only select the camelHump substring when in Target Mode (the mode in which a word is selected after the jump)... if "CamelHumps" is checked in my settings

Basically setting 1st parameter in call to addWordSelection to true

clojj added a commit to clojj/AceJump that referenced this issue Nov 18, 2019
honor "CamelHumps" setting for Target Mode (with selection)
breandan added a commit that referenced this issue Nov 19, 2019
@breandan
Copy link
Collaborator

I was expecting the PR to be longer, but it's just as long as it needs to be! I wasn't aware of this CamelHumps setting, thanks for spotting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants