nobiot / org-remark

Highlight & annotate text, EWW, Info, and EPUB
https://nobiot.github.io/org-remark/
GNU General Public License v3.0
436 stars 22 forks source link

Reducing the length of the headline #75

Open Enrico68 opened 10 months ago

Enrico68 commented 10 months ago

'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 commented 9 months ago

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 commented 9 months ago

Good advices! thanks @nobiot