Skip to content

Add ordinal scope types #13

Open
@pokey

Description

@pokey

So could say "take next dollar fine" to select the first $ after the given token. Could also say "<ordinal> <symbol>", eg "second dollar".

In addition, could support "next line fine", "third line fine", etc, as well as "next funk fine", etc

For convenience, potentially "down <number>" could be alias for "<ordinal> line".

Would need to support other direction as well, eg "take last dollar fine", or "take second to last dollar fine", tho the latter is a bit verbose

Use "prior" for opposite of "next"

We should also figure out compact grammar for the following:

  • Support simple relative and absolute ordinal scope modifiers #982
  • Scope and next scope
  • Scope and next two scopes
  • Every scope from scope through end of iteration scope
  • Every scope from scope through start of iteration scope
  • Scope and previous scope
  • Scope and previous two scopes
  • Target past next scope
  • This past next scope
  • Target past previous scope
  • This past previous scope
  • Target past next two scopes (might not need to be compact)
  • How to make these work with "next <symbol>" eg "next comma"
  • How to make these work with "next instance <target>" for selecting next occurrence of a target
    • Does this work for any target or just mark?
    • Where does it start searching? At <target> or cursor or able to search from a different target?

"next <mark>"

It should always be next instance of given mark's text relative to input. So eg if there is a token "hello" with a hat over the h, then "next harp" will select the next instance of hello after the cursor

Should support "every", "first", etc for these as well

Note that for things like :, ,, ), etc, we don't really care about the token that has the hat because it will always just be the one character, so it will behave like we want anyway. For failure modes of this assumption (eg < and <=), we can add something like glyph modifier or something in the future if that becomes a problem

Plurals

Where plurals make sense (eg "three funks"), vendor in the following sections of inflection:

And have csv overrides code generate a list called foo_plural if you pass in a flag asking for plurals

Some proposed spoken forms:

IMG_0044

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions