inserting and replacing text from sclang in code editor #646

Open
telephon opened this Issue Nov 10, 2012 · 3 comments

Comments

Projects
None yet
4 participants
@telephon
Owner

telephon commented Nov 10, 2012

When an API for communicating between sclang and ide is written, it would be very useful to be able to replace and insert text into any of the open code editor views. For this it may be good to have the syntax colorisation parser information available in sclang.

By consequence, one could even create an equivalent of a "text view" within a document, where values and other runtime information could be displayed, while remaining fully editable.

This issue is related to #644

@miguel-negrao

This comment has been minimized.

Show comment Hide comment
@miguel-negrao

miguel-negrao Mar 4, 2013

Owner

One idea on how to do this:

  • have a dictionary in sc_ide_conf.yaml of strings to functions of type { |string| ...}.
  • Have a submenu of the "language" menu named "macros" which is populated with the keys from the above dictionary.
  • When the user selects an item of from the menu it would run the corresponding sc function on the currently selected string in the current active window.
Owner

miguel-negrao commented Mar 4, 2013

One idea on how to do this:

  • have a dictionary in sc_ide_conf.yaml of strings to functions of type { |string| ...}.
  • Have a submenu of the "language" menu named "macros" which is populated with the keys from the above dictionary.
  • When the user selects an item of from the menu it would run the corresponding sc function on the currently selected string in the current active window.
@jleben

This comment has been minimized.

Show comment Hide comment
@jleben

jleben Mar 5, 2013

Owner

Hmm, miguel, did you perhaps write the previous comment under a wrong issue? Your suggestion sounds more like "custom SC macros", than "controlling IDE text from SC"...

Owner

jleben commented Mar 5, 2013

Hmm, miguel, did you perhaps write the previous comment under a wrong issue? Your suggestion sounds more like "custom SC macros", than "controlling IDE text from SC"...

@miguel-negrao

This comment has been minimized.

Show comment Hide comment
@miguel-negrao

miguel-negrao Mar 5, 2013

Owner

well, a macro system needs to control the IDE from sclang. should I move this to the macro issue ?

Owner

miguel-negrao commented Mar 5, 2013

well, a macro system needs to control the IDE from sclang. should I move this to the macro issue ?

@scztt scztt modified the milestone: future Apr 18, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment