mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
note can be activated through 'keyboardShortcut' label
This commit is contained in:
@@ -1,11 +1,22 @@
|
||||
"use strict";
|
||||
|
||||
const keyboardActions = require('../../services/keyboard_actions');
|
||||
const sql = require('../../services/sql');
|
||||
|
||||
async function getKeyboardActions() {
|
||||
return await keyboardActions.getKeyboardActions();
|
||||
}
|
||||
|
||||
async function getShortcutsForNotes() {
|
||||
return await sql.getMap(`
|
||||
SELECT value, noteId
|
||||
FROM attributes
|
||||
WHERE isDeleted = 0
|
||||
AND type = 'label'
|
||||
AND name = 'keyboardShortcut'`);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getKeyboardActions
|
||||
getKeyboardActions,
|
||||
getShortcutsForNotes
|
||||
};
|
||||
Reference in New Issue
Block a user