mirror of
https://github.com/zadam/trilium.git
synced 2025-01-31 03:19:11 +08:00
global menu improvements
This commit is contained in:
parent
75639c53f0
commit
1b6d0c9bbc
4 changed files with 5 additions and 12 deletions
|
@ -86,11 +86,7 @@ export default class Entrypoints extends Component {
|
|||
if (win.isFullScreenable()) {
|
||||
win.setFullScreen(!win.isFullScreen());
|
||||
}
|
||||
}
|
||||
else {
|
||||
// outside of electron this is handled by the browser
|
||||
this.$widget.find(".toggle-fullscreen-button").hide();
|
||||
}
|
||||
} // outside of electron this is handled by the browser
|
||||
}
|
||||
|
||||
reloadFrontendAppCommand() {
|
||||
|
|
|
@ -238,7 +238,8 @@ const ATTR_HELP = {
|
|||
"template": "This note will appear in the selection of available template when creating new note",
|
||||
"toc": "<code>#toc</code> or <code>#toc=show</code> will force the Table of Contents to be shown, <code>#toc=hide</code> will force hiding it. If the label doesn't exist, the global setting is observed",
|
||||
"color": "defines color of the note in note tree, links etc. Use any valid CSS color value like 'red' or #a13d5f",
|
||||
"keyboardShortcut": "Defines a keyboard shortcut which will immediately jump to this note. Example: 'ctrl+alt+e'. Requires frontend reload for the change to take effect."
|
||||
"keyboardShortcut": "Defines a keyboard shortcut which will immediately jump to this note. Example: 'ctrl+alt+e'. Requires frontend reload for the change to take effect.",
|
||||
"keepCurrentHoisting": "Opening this link won't change hoisting even if the note is not displayable in the current hoisted subtree."
|
||||
},
|
||||
"relation": {
|
||||
"runOnNoteCreation": "executes when note is created on backend. Use this relation if you want to run the script for all notes created under a specific subtree. In that case, create it on the subtree root note and make it inheritable. A new note created within the subtree (any depth) will trigger the script.",
|
||||
|
|
|
@ -135,12 +135,6 @@ const TPL = `
|
|||
</div>
|
||||
</span>
|
||||
|
||||
<li class="dropdown-item" data-trigger-command="toggleFullscreen">
|
||||
<span class="bx bx-empty"></span>
|
||||
Toggle fullscreen
|
||||
<kbd ></kbd>
|
||||
</li>
|
||||
|
||||
<li class="dropdown-item" data-trigger-command="showLaunchBarSubtree">
|
||||
<span class="bx bx-sidebar"></span>
|
||||
Configure launchbar
|
||||
|
|
|
@ -42,6 +42,7 @@ function createSqlConsole() {
|
|||
|
||||
note.setLabel("sqlConsole", dateUtils.localNowDate());
|
||||
note.setLabel('iconClass', 'bx bx-data');
|
||||
note.setLabel('keepCurrentHoisting');
|
||||
|
||||
return note;
|
||||
}
|
||||
|
@ -75,6 +76,7 @@ function createSearchNote(searchString, ancestorNoteId) {
|
|||
});
|
||||
|
||||
note.setLabel('searchString', searchString);
|
||||
note.setLabel('keepCurrentHoisting');
|
||||
|
||||
if (ancestorNoteId) {
|
||||
note.setRelation('ancestor', ancestorNoteId);
|
||||
|
|
Loading…
Reference in a new issue