Skip to content

gptel-transient: Use proper ellipsis for consistent UI #640

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

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gptel-transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ This is used only for setting this variable via `gptel-menu'.")
"Transient options for overlays displayed in the working buffer.")

(cl-defmethod transient-format-value ((obj gptel-option-overlaid))
"set up the in-buffer overlay for additional directive, a string.
"Set up the in-buffer overlay for additional directive, a string.

Also format its value in the Transient menu."
(let ((value (oref obj value))
Expand All @@ -532,7 +532,7 @@ Also format its value in the Transient menu."
(add-hook 'transient-exit-hook ov-clear-hook)))
;; Updating transient menu display
(if value
(propertize (concat argument (truncate-string-to-width value 25 nil nil "..."))
(propertize (concat argument (truncate-string-to-width value 35 nil nil t))
'face 'transient-value)
(propertize
(concat "(" (symbol-name (oref obj display-nil)) ")")
Expand Down