tonyaldon / org-bars

org-bars-mode is a minor mode for org-mode. It adds bars to the virtual indentation provided by the built-in package org-indent.
117 stars 5 forks source link

Alternative to Removing Ellipsis #5

Open jonathanmfung opened 3 years ago

jonathanmfung commented 3 years ago

Thanks for the package, I like the functionality and aesthetics it brings.

Concerning the Remove ellipsis section in the README, I tried using the defined org-no-ellipsis-in-headlines, and got the ellipsis to successfully disappear. However, I was having issues with org-cycle, specifically on lists. I was able to collapse lists, but not able to get them to appear again, unless I were to toggle the whole headline. I also experienced this in emacs -q.

I played around with org-ellipsis and found out that it works with some Unicode whitespace characters. Adding (setq org-ellipsis "") where there is a U+FEFF ZERO WIDTH NO-BREAK SPACE inside the string does a good enough job for me. This page also has more options to try out.

Here is a screenshot of using that no-break space character. As you can see, there is extra room at the end of the line, highlighted by hl-line-mode (or any :background). With my font (Iosevka SS14) I haven't noticed any issues, though with emacs -q, which uses DejaVu Sans Mono, this character appears as an thin underline.

image

tonyaldon commented 3 years ago

Thank you @jonathanmfung for reporting this issue.

I would never have seen it as I don't collapse lists.

I mention your workaround in the README.

I found a fix to this "problem" that I've just proposed to the emacs-orgmode mailing list (emacs-orgmode/2021-11/msg00226.html).

Have a nice day.