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

More ToC QoL features/fixes #1478

Merged
merged 10 commits into from
Jun 25, 2024
Merged

Conversation

benlubas
Copy link
Contributor

@benlubas benlubas commented Jun 24, 2024

closes #1475

features:

  • configurable max width
  • automatically open/enter ToC on neorg buf enter
  • close ToC when norg buffer is closed
  • exit nvim when ToC is the last window (similar to how help windows function)
  • set winfixbuf on the ToC window

These are all configurable behaviors.

fixes:

  • when a ToC is open and it's norg buffer has been removed, it will no longer throw an error when you try to jump to a heading, instead it opens a new buffer, re-sets the ToC width, and placed your cursor in the right spot.
  • opening a ToC from within a ToC window will no longer break the window

There's also a random completion documentation fix in here b/c I'm lazy and don't want to open a separate PR.

@benlubas benlubas marked this pull request as draft June 24, 2024 03:11
@benlubas
Copy link
Contributor Author

Found a bug relating to closing/opening windows 'at the same time' I'll take a look tomorrow

@benlubas benlubas marked this pull request as ready for review June 24, 2024 13:47
@vhyrro vhyrro merged commit 369ed28 into nvim-neorg:main Jun 25, 2024
5 of 6 checks passed
@benlubas benlubas deleted the push-zulnsmvnkrvv branch June 25, 2024 19:04
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.

Table of Content QOL options
2 participants