cursorless
cursorless copied to clipboard
Split surrounding scopes into smaller identifiers
eg
- in python both lists and sets or grouped under
list - in general functions and lambdas are grouped under
function - formal and actual arguments are group together under
arg
I'm not suggesting that we change the current default behavior but that we add multiple sub identifiers and then the more general identifier is just a union of the ones below.
list => collectionList or collectionSet
function => functionNamed or functionLambda
The upside with these changes are twofold
- The language definitions become smaller and more specific. This is easier implementation vice
- We can allow the user in their csv files to customize this more specifically
collection, collectionList | collectionSet | collectionMap
@sterlind this direction might be of interest re your fine-grained scope contexts
Just an update to say that the easiest way to approach this is to just turn our scope facets into scopes