mirror of
https://github.com/org-roam/org-roam
synced 2025-09-28 16:50:58 -05:00
(fix)completions: use full string (#1754)
When strings in org-roam-node-display-template are truncated, they are no longer searchable using completions, resulting in suprising behaviour. This change allows truncated strings to still be searched according to their original value. Closes #1728.
This commit is contained in:
@@ -481,12 +481,13 @@ Uses `org-roam-node-display-template' to format the entry."
|
||||
(if (not field-width)
|
||||
field-value
|
||||
(setq field-width (string-to-number field-width))
|
||||
(truncate-string-to-width
|
||||
(propertize field-value
|
||||
'display (truncate-string-to-width
|
||||
field-value
|
||||
(if (> field-width 0)
|
||||
field-width
|
||||
(- width (cdr fmt)))
|
||||
0 ?\s)))))))
|
||||
0 ?\s))))))))
|
||||
|
||||
(defun org-roam-node-read--process-display-format (format)
|
||||
"Pre-calculate minimal widths needed by the FORMAT string."
|
||||
|
Reference in New Issue
Block a user