Skip to content

New Textobj: backwards-seeking textobjects #76

@rish987

Description

@rish987

Textobj requested

I often find that the text object I want is located behind, rather than in front of, the current cursor position. I was wondering if it would be possible to enhance all of the textobjects that currently have forwards-seeking behavior to also have a backwards-seeking variant. We could perhaps reserve a special character such that, if it preceeds the mapping for any text object, instructs it to seek backwards rather than forwards (or perhaps capitalize one of the letters).

Sample Text

N/A

Inner/Outer Difference

No response

Vimscript plugin already implementing the textobj

No response

Filetypes

all

Checklist

  • The textobj would be useful to more users than just me. (You can use the API to create custom textobj.)
  • There is no lua plugin already implementing the textobj in an adequate manner.
  • I read the docs and checked that there is no such textobj already.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions