You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following three defaults don't match, making the OOTB experience worse for the potential user:
deft-extensions is set to default to the txt file format.
deft-org-mode-title-prefix is set to t, so that all new org-mode files created by deft have the #+TITLE: prefix on their title line.
deft-parse-summary contains a check for whether deft-org-mode-title-prefix evals to true, and if it does only strips a title line starting with #+TITLE:. If it evals to false, it strips the title as generated by deft-parse-title.
∴ If a user follows the default, the titles are all repeated twice in the deft-browser window: Once for the actual title of the note, and once at the beginning of the summary.
Workaround
I have worked around this by setting deft-org-mode-title-prefix to nil.
Proposed Solution
Rewrite the logic of deft-parse-summary to check (car deft-extensions) in addition to deft-org-mode-title-prefix. Strip #+TITLE: titles if (and (string= (car deft-extensions) "org") deft-org-mode-title-prefix), otherwise default to simply stripping the parsed title.
I can provide more information if required. Just let me know!
The text was updated successfully, but these errors were encountered:
Summary of Issue
The following three defaults don't match, making the OOTB experience worse for the potential user:
deft-extensions
is set to default to thetxt
file format.deft-org-mode-title-prefix
is set tot
, so that all new org-mode files created by deft have the#+TITLE:
prefix on their title line.deft-parse-summary
contains a check for whetherdeft-org-mode-title-prefix
evals to true, and if it does only strips a title line starting with#+TITLE:
. If it evals to false, it strips the title as generated bydeft-parse-title
.∴ If a user follows the default, the titles are all repeated twice in the deft-browser window: Once for the actual title of the note, and once at the beginning of the summary.
Workaround
I have worked around this by setting
deft-org-mode-title-prefix
tonil
.Proposed Solution
Rewrite the logic of
deft-parse-summary
to check(car deft-extensions)
in addition todeft-org-mode-title-prefix
. Strip#+TITLE:
titles if(and (string= (car deft-extensions) "org") deft-org-mode-title-prefix)
, otherwise default to simply stripping the parsed title.I can provide more information if required. Just let me know!
The text was updated successfully, but these errors were encountered: