mirror of
https://github.com/zadam/trilium.git
synced 2026-01-06 14:44:25 +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 title = note.getTitleOrProtected();
|
||||||
const completeTitle = branch.prefix ? `${branch.prefix} - ${title}` : title;
|
const completeTitle = branch.prefix ? `${branch.prefix} - ${title}` : title;
|
||||||
let baseFileName = sanitize(completeTitle);
|
let baseFileName = sanitize(completeTitle);
|
||||||
|
if (format === "share") {
|
||||||
|
baseFileName = sanitize(note.getOwnedLabelValue("shareAlias") || baseFileName);
|
||||||
|
}
|
||||||
|
|
||||||
if (baseFileName.length > 200) {
|
if (baseFileName.length > 200) {
|
||||||
// the actual limit is 256 bytes(!) but let's be conservative
|
// the actual limit is 256 bytes(!) but let's be conservative
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user