mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
shortcuts improvements
This commit is contained in:
@@ -53,6 +53,16 @@ function getHiddenRoot() {
|
||||
hidden.addLabel("docName", "hidden");
|
||||
}
|
||||
|
||||
const MAX_POS = 999_999_999;
|
||||
|
||||
const branch = hidden.getBranches()[0];
|
||||
if (branch.notePosition !== MAX_POS) {
|
||||
// we want to keep the hidden subtree always last, otherwise there will be problems with e.g. keyboard navigation
|
||||
// over tree when it's in the middle
|
||||
branch.notePosition = MAX_POS;
|
||||
branch.save();
|
||||
}
|
||||
|
||||
return hidden;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user