Skip to content

feat(indent)!: Add Org indent_mode command in favor of toggling vim.b.org_indent_mode #932

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

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

kristijanhusak
Copy link
Member

Summary

Previously, toggling virtual indentation on the buffer was done by manually changing value of the buffer variable vim.b.org_indent_mode to true or false respectively.
This PR introduces an subcommand indent_mode to the global Org command which will toggle the virtual indentation on/off. This allows us to simplify and remove some of the code that might become deprecated in the future.

Changes

  • Add Org indent_mode global command
  • Remove dict watcher on vim.b.org_indent_mode variable
  • Remove some old deprecation messages
  • Remove plugin/org.vim file since it's no longer needed

Checklist

I confirm that I have:

  • Followed the
    Conventional Commits
    specification
    (e.g., feat: add new feature, fix: correct bug,
    docs: update documentation).
  • My PR title also follows the conventional commits specification.
  • Updated relevant documentation, if necessary.
  • Thoroughly tested my changes.
  • Added tests (if applicable) and verified existing tests pass with
    make test.
  • Checked for breaking changes and documented them, if any.

…m.b.org_indent_mode`

Previously, toggling virtual indentation on the buffer was done by
manually changing value of the buffer variable `vim.b.org_indent_mode`
to true or false respectively.
This PR introduces an subcommand `indent_mode` to the global `Org`
command which will toggle the virtual indentation on/off.
This allows us to simplify and remove some of the code that might become
deprecated in the future.
@kristijanhusak kristijanhusak merged commit 5368c0b into master Mar 14, 2025
17 checks passed
@kristijanhusak kristijanhusak deleted the feat/org-indent-mode branch March 14, 2025 10:31
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.

1 participant