mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
added note alphabetical sorting to context menu
This commit is contained in:
@@ -769,6 +769,12 @@ const noteTree = (function() {
|
||||
showMessage("Created!");
|
||||
}
|
||||
|
||||
async function sortAlphabetically(noteId) {
|
||||
await server.put('notes/' + noteId + '/sort');
|
||||
|
||||
await reload();
|
||||
}
|
||||
|
||||
$(document).bind('keydown', 'ctrl+o', e => {
|
||||
console.log("pressed O");
|
||||
|
||||
@@ -842,6 +848,7 @@ const noteTree = (function() {
|
||||
getNotePathTitle,
|
||||
removeParentChildRelation,
|
||||
setParentChildRelation,
|
||||
getSelectedNodes
|
||||
getSelectedNodes,
|
||||
sortAlphabetically
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user