Closed ghost closed 7 years ago
PS: I like the new name. Simple. Straight forward.
Make it possible to have the evaluation process in two steps:
- Select and identify the code to run.
- Execute the code.
I have no idea what you mean by that? You can already select the portion you wish to evaluate. As of v0.8.0
this even works with multiple selections, so you can skip code between selections.
Hello. You have been quite busy ..nice!
Let us say we have two panes open. On the left is a text file. On the right is some code with:
_editor = atom.workspace.getActiveTextEditor()
_editor.setText("Hello world")
evaluate:run-code
What will the code do? Where will the message appear? - left (text) or right (code) What do I do to have the code write in the text pane?
What will the code do? Will it capture the active editor on the right or the text on the left?
Why don't you simply try it out yourself?
What do I do to have atom.workspace.getActiveTextEditor() point to the left pane?
This question is unrelated to this package
[sad] I know what it will do. Sorry to have wasted your time. Bye.
This package can easily be classified as an essential tool for developing packages for Atom. Evaluating Coffeescript code while developing a package was pain up to now. Thank you Sir for renewing this effort!
Please allow me a feature request - Make it possible to have the evaluation process in two steps:
These could be for example be exposed to the user as
evaluate:hold
andevaluate:release
. It would be helpful to be able to repeatrelease
several times.Motivation with the following example: I am developing some Package that modifies text within an active editor. Evaluating the code in the current way, would execute the task to the code being developed.
A two step evaluation process makes it possible to..
A future phase (not asked now) that I can see -
hold
) a button to a selected code.release
action of thehold
linked to it.This future phase can be (maybe) made possible using the
evaluate
package as a dependency for a new package.Regards. - Dan Padric