From 8e1b8ab26c3a998f4a94a45ac6489dd017686162 Mon Sep 17 00:00:00 2001
From: zadam
Date: Thu, 15 Apr 2021 21:45:37 +0200
Subject: [PATCH] show not set keyboard shortcuts as "not set", #1851
---
src/public/app/services/keyboard_actions.js | 6 +-
src/scripts/Reddit Importer.tar | Bin 9216 -> 0 bytes
src/views/dialogs/help.ejs | 62 ++++++++++----------
3 files changed, 36 insertions(+), 32 deletions(-)
delete mode 100644 src/scripts/Reddit Importer.tar
diff --git a/src/public/app/services/keyboard_actions.js b/src/public/app/services/keyboard_actions.js
index 53ea4dcaf..0e2a47d3a 100644
--- a/src/public/app/services/keyboard_actions.js
+++ b/src/public/app/services/keyboard_actions.js
@@ -89,7 +89,11 @@ function updateDisplayedShortcuts($container) {
const action = await getAction(actionName, true);
if (action) {
- $(el).text(action.effectiveShortcuts.join(', '));
+ const keyboardActions = action.effectiveShortcuts.join(', ');
+
+ if (keyboardActions || $(el).text() !== "not set") {
+ $(el).text(keyboardActions);
+ }
}
});
diff --git a/src/scripts/Reddit Importer.tar b/src/scripts/Reddit Importer.tar
deleted file mode 100644
index 53de98409bc0f160d8bc1f51d19949f11ada394c..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 9216
zcmeHM>u=jO5Z~AMuece-;(=nF{d3`2^c#)=I{GYr@;G_*v=N@PkCsW?XJ|9!tB
z^-h{BL-zP!0f}Yucu(@~$Mdlag3!=(nZ&7)skf9yeD%oBa5#MZ@+EzRPdx3<;b{13
zOrsYsUXEXlM&sdY8jfCI0q7oCk6YPg+K3dY-8%Vz!M1S^So&X*UUzo7mon91th)O&
z>f@^)#Y*DKTtr&(fQpTr1{mok=ZmYw_@|HANtktc%7i9j+U{|4AKA$ymGkflvnq=s
zOTA7ku^$K0QY^!z9S}(pg}yM*VsI`lh4#}hF$YpzPG-WtkSeg`!k9FiWkzZ+{jIaJ
z1MPR9M9wx6GZ`@<#*}cJ(@f(s-;sbCj3xMSX3}1V
zp3=Km?HZcL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(FL^v$nX(R9m~TT+yI?(gR_)7LaztH0jy3qr3jITIDQPBA
z6IEOmyh10m8I^15Cg>{m^CcQTMnwTvp&5FZYR#HE$)z%oU{^}CN|DfbHQJusR7G+E
z&cLRnI0|H1uHdBKsL2+!aJR8-6dlsAT@!B500Ox)=Vp#>g=shC)tp`PSB?nVLK^7s
z9=uS)3OTYPpar+5+czW*Yg-m$y1NX@70;C}Hd_g%rbQ$8$#t9arVO^ncxwAw-5odH
N?bOx-TMrZ-_!IWt9o_%{
diff --git a/src/views/dialogs/help.ejs b/src/views/dialogs/help.ejs
index 2c28a26d8..7cce6df02 100644
--- a/src/views/dialogs/help.ejs
+++ b/src/views/dialogs/help.ejs
@@ -18,12 +18,12 @@
- UP, DOWN - go up/down in the list of notes
- LEFT, RIGHT - collapse/expand node
- - , - go back / forwards in the history
- - - show "Jump to" dialog
- - - scroll to active note
+ - not set, not set - go back / forwards in the history
+ - not set - show "Jump to" dialog
+ - not set - scroll to active note
- Backspace - jump to parent note
- - - collapse whole note tree
- - - collapse sub-tree
+ - not set - collapse whole note tree
+ - not set - collapse sub-tree
@@ -40,10 +40,10 @@
Only in desktop (electron build):
- - open empty tab
- - close active tab
- - activate next tab
- - activate previous tab
+ - not set open empty tab
+ - not set close active tab
+ - not set activate next tab
+ - not set activate previous tab
@@ -55,9 +55,9 @@
- - - create new note after the active note
- - - create new sub-note into active note
- - - edit prefix of active note clone
+ - not set - create new note after the active note
+ - not set - create new sub-note into active note
+ - not set - edit prefix of active note clone
@@ -69,15 +69,15 @@
- - , - move note up/down in the note list
- - , - move note up in the hierarchy
- - , - multi-select note above/below
- - - select all notes in the current level
+ - not set, not set - move note up/down in the note list
+ - not set, not set - move note up in the hierarchy
+ - not set, not set - multi-select note above/below
+ - not set - select all notes in the current level
- Shift+click - select note
- - - copy active note (or current selection) into clipboard (used for cloning)
- - - cut current (or current selection) note into clipboard (used for moving notes)
- - - paste note(s) as sub-note into active note (which is either move or clone depending on whether it was copied or cut into clipboard)
- - - delete note / sub-tree
+ - not set - copy active note (or current selection) into clipboard (used for cloning)
+ - not set - cut current (or current selection) note into clipboard (used for moving notes)
+ - not set - paste note(s) as sub-note into active note (which is either move or clone depending on whether it was copied or cut into clipboard)
+ - not set - delete note / sub-tree
@@ -89,12 +89,12 @@
- - in tree pane will switch from tree pane into note title. Enter from note title will switch focus to text editor.
- will switch back from editor to tree pane.
+ - not set in tree pane will switch from tree pane into note title. Enter from note title will switch focus to text editor.
+ not set will switch back from editor to tree pane.
- Ctrl+K - create / edit external link
- - - create internal link
- - - insert current date and time at caret position
- - - jump away to the tree pane and scroll to active note
+ - not set - create internal link
+ - not set - insert current date and time at caret position
+ - not set - jump away to the tree pane and scroll to active note
@@ -121,9 +121,9 @@
- - - reload Trilium frontend
- - - show developer tools
- - - show SQL console
+ - not set - reload Trilium frontend
+ - not set - show developer tools
+ - not set - show SQL console
@@ -135,9 +135,9 @@
- - - Zen mode - display only note editor, everything else is hidden
- - - toggle search form in tree pane
- - - in page search
+ - not set - Zen mode - display only note editor, everything else is hidden
+ - not set - focus on quick search input
+ - not set - in page search