Sublime Forum

Dynamic Scope Selection

#1

Link to uecho
Triple click selects scope, Quadruple click select next higher scope, Pentuple selects next higher scope, Etc… ntuple selects full document.
Example:

$Z = "Z";
class A {
	function B() {
		if (C) {
			return 'D';
		}
	}
}

3 clicks on “return ‘D’;” selects the current scope (it already does):

			return 'D';

4 clicks on “return ‘D’;” selects the next higher scope:

if (C) { return 'D'; }

5 clicks on “return ‘D’;” selects the next higher scope:

function B() { if (C) { return 'D'; } }

6 clicks on “return ‘D’;” selects the next higher scope:

class A { function B() { if (C) { return 'D'; } } }

7 clicks on “return ‘D’;” selects the whole document scope:

$Z = "Z"; class A { function B() { if (C) { return 'D'; } } }

0 Likes

#2

bump

0 Likes