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

feat: text-objects and working swap #1421

Merged
merged 7 commits into from
May 17, 2024
Merged

Conversation

benlubas
Copy link
Contributor

@benlubas benlubas commented May 14, 2024

The rebirth of the manoeuvre module, and the death of that awful (to spell) name.

  • Rips the swap_node function from nivm-treesitter/nvim-treesitter's ts_utils and fixes the way it handles trailing blank lines
  • Changed text object names to be more normal (ie. around-heading -> heading.outer)
  • update the roadmap to reflect that this work is done

Text object ranges are kinda bad right now. They select onto the line of the next heading.. probably just an off by one, I'll correct that.

This might be fine the way it is. it's just including the last newline in the selection, I think that it looks weird, but it's not he end of the world. Would want to see your thoughts.

@vhyrro
Copy link
Member

vhyrro commented May 17, 2024

Works well for me, thank you!

@vhyrro vhyrro merged commit 49a3c64 into nvim-neorg:main May 17, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants