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

Introduce new variable org-gtd-agenda-truncate-ellipsis #200

Open
Sabicool opened this issue Jan 27, 2024 · 0 comments
Open

Introduce new variable org-gtd-agenda-truncate-ellipsis #200

Sabicool opened this issue Jan 27, 2024 · 0 comments

Comments

@Sabicool
Copy link

Issue

I use Iosevka as my font and so an ellipsis does not take 1 character width. This results in headings not being in line:
image

I keep the following code in my config

(defun org-gtd--truncate-project-to-width (st)
  "Truncates the string to the width indicated by org-gtd-engage-prefix-width."
  (truncate-string-to-width
   (string-trim st)
   org-gtd-engage-prefix-width nil ?\s  "⣀"))

Which changes it to this:
image

Proprosed solution

To change the appearance of the agenda so they are in line. Would be preferable for this to be a customizable variable e.g:

(defcustom org-gtd-agenda-truncate-ellipsis "..."
  "Ellipsis to be shown for categories and contexts that are truncated"
  :group 'org-gtd-engage
  :package-version '(org-gtd . "3.1")
  :type 'string)

(defun org-gtd--truncate-project-to-width (st)
  "Truncates the string to the width indicated by org-gtd-engage-prefix-width."
  (truncate-string-to-width
   (string-trim st)
   org-gtd-engage-prefix-width nil ?\s  org-gtd-agenda-truncate-ellipsis))

Alternatively it could be made to inherit the value of org-ellipsis but this may not be ideal since some people like to use down arrows and other symbols for it since it goes in folded headers. This does not match the context in which the proposed org-gtd-agenda-truncate-ellipsis is to be used

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

1 participant