issues
search
cursorless-dev
/
cursorless
Don't let the cursor slow you down
https://www.cursorless.org/
MIT License
1.09k
stars
77
forks
source link
keyboard: support ordinal modifiers
#2414
Open
pokey
opened
2 weeks ago
pokey
commented
2 weeks ago
Some links:
Search the code base for
nextPrev
. You'll need to make a new type of token called
ordinal
that functions identically to
nextPrev
, but creates an
ordinalScope
modifier instead of the
relativeScope
created by
nextPrev
Here is the shape of the ordinal modifier you'll end up creating from our keyboard grammar:
https://github.com/cursorless-dev/cursorless/blob/5f94e084af3f67e07a6d6f68e478365e7a691d31/packages/common/src/types/command/PartialTargetDescriptor.types.ts#L263-L280
Some links:
nextPrev
. You'll need to make a new type of token calledordinal
that functions identically tonextPrev
, but creates anordinalScope
modifier instead of therelativeScope
created bynextPrev