Skip to content

Conversation

joaomsa
Copy link
Contributor

@joaomsa joaomsa commented May 5, 2022

Configuration setting mimics the emacs behavior, which allows aligning tags starting at a specific column or flush to a specific column.

The current default was 80 columns while the emacs default is -77 (for being nearly flush within 80 characters while still having extra room for the folded ...).

org-mode/org.el at main · bzg/org-mode

I didn't want to break anybodies workflow but personally set it to -77. What do you think the default should be?

@kristijanhusak
Copy link
Member

I wasn't aware of this option. Do you know if it only applies to the org file itself or also for the agenda view?

@joaomsa
Copy link
Contributor Author

joaomsa commented May 8, 2022

Slightly reworked it to use the helpers added in #272, so tag manipulation works in non-agenda files too

Grepping my way throughout the org-mode codebase I haven't found any use besides aligning tags on the actual orgfile
In emacs agenda view, tags are right-aligned with the right border of the buffer ignoring this setting.

@joaomsa
Copy link
Contributor Author

joaomsa commented May 10, 2022

@kristijanhusak do you think the config should also apply to agenda or have it match the default emacs org-mode behavior?

Copy link
Member

@kristijanhusak kristijanhusak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great, thanks!

@kristijanhusak
Copy link
Member

@kristijanhusak do you think the config should also apply to agenda or have it match the default emacs org-mode behavior?

Lets leave it as it is for now.

In emacs agenda view, tags are right-aligned with the right border of the buffer ignoring this setting.

Oh, you're right. I didn't notice it because for me it always opens as a vertical split and I thought it has some specific width. Do you think doing the same thing would make sense here?

@kristijanhusak kristijanhusak merged commit 65c7190 into nvim-orgmode:master May 11, 2022
@kristijanhusak
Copy link
Member

I actually updated the agenda view to align tags to the right like emacs ormgode does. 2a5bdc7, and also an option to provide custom window command to have an option to open agenda in vertical split, or basically anything.

Thanks for letting me know about this.

gzagatti pushed a commit to gzagatti/orgmode that referenced this pull request Oct 19, 2022
SlayerOfTheBad pushed a commit to SlayerOfTheBad/orgmode that referenced this pull request Aug 16, 2024
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.

2 participants