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

Selection by parentheses #10

Open
vanderaalle opened this issue Jul 21, 2014 · 7 comments
Open

Selection by parentheses #10

vanderaalle opened this issue Jul 21, 2014 · 7 comments

Comments

@vanderaalle
Copy link

(sorry, maybe it's me).
One of the traditional SC feature is that you can select blocks of code surrounded by parentheses. Is this possible? I haven't been able to do it

@crucialfelix
Copy link
Owner

ctrl-cmd M
https://github.com/atom/bracket-matcher

but its not ideal yet. it only selects the next level up.

I am looking for some package that can find the largest () scope

possibly there is a way to call the functions in bracket-matcher and step upwards till its the top level.

maybe: https://atom.io/packages/paredit

which is amazing on emacs, but is still incomplete here.

@vanderaalle
Copy link
Author

thanks a lot, I inspected keymap file but wasn't able to find it. I'm also not able to clean post window (sorry if these are dumb questions, you can take me as the 0-level user... :) )

@crucialfelix
Copy link
Owner

dumb questions are the best ones. those are the ones the developer thinks he is too smart to ask. but he's wrong.

I didn't assign a key command to post window yet.

cmd-shift-C is most likely but it conflicts with Color Picker, but now I'm thinking that doesn't matter so much.

Atom needs key commands limited by scope. They will add this soon.

@ssfrr
Copy link
Contributor

ssfrr commented Apr 23, 2016

According to the docs regions are defined by an open and close parenthesis, each on its own line. Maybe you could just do a linear search up and down from the evaluation line looking for a line that's only a single open or close parenthesis? Unless the file is huge (probably not very likely for a SC file) I imagine it would be fast enough.

@crucialfelix
Copy link
Owner

crucialfelix commented Apr 23, 2016

I was hoping for some atom library that provides that functionality. I
would rather concentrate on supercollider only features.

Even if I can find something to copy and paste or some npm library that
does it, that would help.

Maybe its not so hard to do. I'm still waiting for a good Par Edit for Atom

https://www.emacswiki.org/emacs/ParEdit

@crucialfelix
Copy link
Owner

@diegovdc
Copy link
Contributor

diegovdc commented Jan 29, 2019

Any hope on getting this feature? Would be awesome

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

4 participants