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

[SC-IDE] Document implementation #333

Closed
miguel-negrao opened this issue May 18, 2012 · 7 comments
Closed

[SC-IDE] Document implementation #333

miguel-negrao opened this issue May 18, 2012 · 7 comments
Assignees
Milestone

Comments

@miguel-negrao
Copy link
Member

I know this is a bit particular, but at least it's a use case to think about in terms of how to allow some degree of scripting of the editor.

For instance I would like to run a function on the result value of anything that I evaluate, with a special keyboard shortcut. I think I could have done this in the old Document class, right ?

@jleben
Copy link
Member

jleben commented May 18, 2012

Document will be implemented for the new IDE. But probably not before end of june or july.

@lisongx
Copy link
Contributor

lisongx commented May 29, 2013

@jleben
is this method going to implemented?

@jleben
Copy link
Member

jleben commented May 30, 2013

@seansay, I don't see time for this in my schedule at least until late summer.

@lisongx
Copy link
Contributor

lisongx commented May 30, 2013

@jleben
sorrry that I'm new to the the codebase here, could you point me to the source related to the issue? I'm really hope trying to contribute to the codebase

@jleben
Copy link
Member

jleben commented May 30, 2013

On the master branch, there is already the beginning of ScIDEDocument implementation at:
https://github.com/supercollider/supercollider/blob/master/SCClassLibrary/scide_scqt/ScIDE.sc

You'd need to implement various methods in ScIDEDocument, to use the method ScIDE:*prSend in order to send commands to the IDE.

Then you'd need to implement functionality in the C++ code of the IDE to handle those commands, e.g. for modifying the text in the current document, etc.... See for example HelpBrowser::onScResponse method here:
https://github.com/supercollider/supercollider/blob/master/editors/sc-ide/widgets/help_browser.cpp

I'd need to know what functionality precisely you'd want to implement in order to give you more detailed advice.

@scztt
Copy link
Contributor

scztt commented Apr 19, 2015

@miguel-negrao You okay closing this, since the Document class was revived? Is there still missing functionality?

@telephon
Copy link
Member

For 3.7 it is fine. We'll need a more particular issue for individual features.

@elgiano elgiano mentioned this issue May 19, 2024
6 tasks
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

5 participants