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

Reducing the length of the headline #75

Open
Enrico68 opened this issue Jan 31, 2024 · 2 comments
Open

Reducing the length of the headline #75

Enrico68 opened this issue Jan 31, 2024 · 2 comments

Comments

@Enrico68
Copy link

'm currently facing an issue with the highlighting of headlines in my marginalia.org file.

Problem:
When I highlight an entire paragraph, the resulting headline becomes excessively long. I would like to adjust the length of this headline highlighting to make it more manageable.

Question:
Could someone kindly guide me on how to reduce the length of the highlighted headline in the marginalia.org file? I'm looking for a solution to avoid long lines when I highlight paragraphs.

Thank you in advance for your assistance!

@nobiot
Copy link
Owner

nobiot commented Feb 1, 2024

A couple of suggestions for your case.

  1. Try the new feature org-remark-mark-line.
    If you are using the package on GNU-devel ELPA, you might like to try this new feature to highlight the whole line and add a "marker" on the margin. Here is a short write-up on it with some screen images. I haven't done a walk-through video but you can also read about it in the user manual. By default, the headline is trimmed to 40-character long (user option org-remark-line-heading-title-max-length).

  2. Manually change the headline in the way you wish.
    You don't have to keep the headline title as the default. Refer to this part. This was not explicit in the user manual before, but last year I updated it/.

  3. Future consideration. org-remark-line-heading-title-max-length.
    org-remark-mark-line has introduced this user option: org-remark-line-heading-title-max-length. The variable controls the automatic length of the characters for the default headline title. I haven't implemented the same thing for the normal org-remark-mark. Perhaps this might be useful...

For now, please consider option 1 and 2 and see if this resolves your issue.

@Enrico68
Copy link
Author

Enrico68 commented Feb 1, 2024

Good advices! thanks @nobiot

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

No branches or pull requests

2 participants