Flexible Evaluation
Author: Joon Ro
Description: This script adds several convenient commands related to evaluation.
The following commands provide flexible evaluate-selection. They are flexible in a sense that one still has convenience of evaluating a whole active line without making any selection (just like Evaluate Only Whole Lines option on), but at the same time, if a part of the line is selected, only that selection is evaluated.
- evaluate_selection_or_line_in_shell: Same as built-in "Evaluate Selection in Python Shell," with whole_lines option on, expect when only a part of a line is selected, that particular line is evaluated
- evaluate_selection_or_line_in_debug_probe: Same as above, except evaluation is done in the debug probe
The following command provides Python shell counterpart of the "Debug to Cursor".
- evaluate_to_cursor: Evaluate the code in the current source text window from the top to the selected line in Python shell
URL: https://github.com/joonpy/Wing-IDE-Scripts/blob/master/evaluation.py
