Skip to content

Text object follow-ups: count, visual-mode escape, empty pairs #70

Description

@oribarilan

Known limitations left over from the text-object work (#68, #69). Three small, independent items, tracked together.

  • Count on objects. d2iw acts as diw because the count is ignored on text objects. Apply it in the textobject dispatch in src/vim/normal.ts.
  • vi<Esc> stays in visual. With a pending text object, Esc cancels the object but stays in visual mode, so leaving takes a second Esc. The dispatch in src/vim/visual.ts runs before the escape handler, so a fall-through fix also has to clear the pending state, or it leaks into normal mode.
  • Empty-pair inner no-ops. di" on "" and ci( on () do nothing. Supporting ci( on an empty pair needs a zero-width-insert convention that the deleteRange action model can't express yet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions