Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Textobj: backwards-seeking textobjects #76

Open
3 tasks done
rish987 opened this issue Feb 19, 2024 · 2 comments
Open
3 tasks done

New Textobj: backwards-seeking textobjects #76

rish987 opened this issue Feb 19, 2024 · 2 comments

Comments

@rish987
Copy link

rish987 commented Feb 19, 2024

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.
Copy link

github-actions bot commented Dec 4, 2024

This issue has been automatically marked as stale.
If this issue is still affecting you, please leave any comment, for example "bump", and it will be kept open.

@github-actions github-actions bot added the Stale label Dec 4, 2024
@tuurep
Copy link

tuurep commented Dec 4, 2024

This bot is really bad

I'm also particularly interested in backwards variation for:

  • restOfIndentation
  • toNextClosingBracket
  • toNextQuotationMark

Though I haven't looked at the code yet. Is this something that would require some big time refactoring?

@github-actions github-actions bot removed the Stale label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants