Flexible Evaluate Selection
Author: Joon Ro
Description: This script adds several convenient commands related to evaluation.
The following commands provide flexible evaluate-selection. They use "evaluate-sel-in-shell/-in-debug-probe(whole_lines = True)" if nothing is selected or more than one lines are selected, but they use "evaluate-sel-in-shell/-in-debug-probe(whole_lines = False)" when only part of a line is selected. I found this convenient since frequently I want to evaluate only a part of a line but still I want to be able to evaluate the whole line without any selection.
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
