mirror of
https://github.com/zadam/trilium.git
synced 2026-01-04 05:34:30 +01:00
feat(export/share): prefer #shareAlias
This commit is contained in:
parent
54200fa0cb
commit
be98a27439
@ -117,6 +117,9 @@ async function exportToZip(taskContext: TaskContext<"export">, branch: BBranch,
|
||||
const title = note.getTitleOrProtected();
|
||||
const completeTitle = branch.prefix ? `${branch.prefix} - ${title}` : title;
|
||||
let baseFileName = sanitize(completeTitle);
|
||||
if (format === "share") {
|
||||
baseFileName = sanitize(note.getOwnedLabelValue("shareAlias") || baseFileName);
|
||||
}
|
||||
|
||||
if (baseFileName.length > 200) {
|
||||
// the actual limit is 256 bytes(!) but let's be conservative
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user