global menu improvements

This commit is contained in:
zadam 2022-12-14 10:29:14 +01:00
parent 75639c53f0
commit 1b6d0c9bbc
4 changed files with 5 additions and 12 deletions

View File

@ -86,11 +86,7 @@ export default class Entrypoints extends Component {
if (win.isFullScreenable()) { if (win.isFullScreenable()) {
win.setFullScreen(!win.isFullScreen()); win.setFullScreen(!win.isFullScreen());
} }
} } // outside of electron this is handled by the browser
else {
// outside of electron this is handled by the browser
this.$widget.find(".toggle-fullscreen-button").hide();
}
} }
reloadFrontendAppCommand() { reloadFrontendAppCommand() {

View File

@ -238,7 +238,8 @@ const ATTR_HELP = {
"template": "This note will appear in the selection of available template when creating new note", "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", "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", "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": { "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.", "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.",

View File

@ -135,12 +135,6 @@ const TPL = `
</div> </div>
</span> </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"> <li class="dropdown-item" data-trigger-command="showLaunchBarSubtree">
<span class="bx bx-sidebar"></span> <span class="bx bx-sidebar"></span>
Configure launchbar Configure launchbar

View File

@ -42,6 +42,7 @@ function createSqlConsole() {
note.setLabel("sqlConsole", dateUtils.localNowDate()); note.setLabel("sqlConsole", dateUtils.localNowDate());
note.setLabel('iconClass', 'bx bx-data'); note.setLabel('iconClass', 'bx bx-data');
note.setLabel('keepCurrentHoisting');
return note; return note;
} }
@ -75,6 +76,7 @@ function createSearchNote(searchString, ancestorNoteId) {
}); });
note.setLabel('searchString', searchString); note.setLabel('searchString', searchString);
note.setLabel('keepCurrentHoisting');
if (ancestorNoteId) { if (ancestorNoteId) {
note.setRelation('ancestor', ancestorNoteId); note.setRelation('ancestor', ancestorNoteId);