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 alt-I command to split (select inside object) #138

Open
alexherbo2 opened this issue May 22, 2014 · 3 comments
Open

Add alt-I command to split (select inside object) #138

alexherbo2 opened this issue May 22, 2014 · 3 comments

Comments

@alexherbo2
Copy link
Contributor

No description provided.

@lenormf
Copy link
Contributor

lenormf commented Apr 14, 2017

Is there a use case for this, if only to understand what the title means?

@mawww
Copy link
Owner

mawww commented Jan 18, 2018

I think what @alexherbo2 meant here is to add an object selection command that selects every object of that type contained inside the selection:

<a-I>u would for example select every arguments in the current selection, <a-I>w would select every word...

I think there are legitimate use cases for that, however I am afraid by the amount of code we need to write for those, as splitting on every word in the selection is a very different thing from finding current word end/begin.

@eraserhd
Copy link
Contributor

This is actually a pretty powerful use case, especially now that I've got an almost complete plugin that has Clojure "form", "top-level form", and "element" objects. (It'll have a "comment" object sometime.).

I could replace all apostrophes inside strings, for example, with %<a-I>e<a-k>"<ret>s'<ret>r?.

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

No branches or pull requests

4 participants