mirror of
https://github.com/zadam/trilium.git
synced 2026-02-23 06:04:25 +01:00
always show Note paths in Status Bar
useful for a opened from search tree (no other way to find out a note path)
This commit is contained in:
parent
3c3e73edae
commit
b33fe2ca3a
@ -414,7 +414,7 @@ function NotePaths({ note, hoistedNoteId, notePath }: StatusBarContext) {
|
|||||||
const dropdownRef = useRef<BootstrapDropdown>(null);
|
const dropdownRef = useRef<BootstrapDropdown>(null);
|
||||||
const sortedNotePaths = useSortedNotePaths(note, hoistedNoteId);
|
const sortedNotePaths = useSortedNotePaths(note, hoistedNoteId);
|
||||||
const count = sortedNotePaths?.length ?? 0;
|
const count = sortedNotePaths?.length ?? 0;
|
||||||
const enabled = count > 1;
|
const enabled = true;
|
||||||
|
|
||||||
// Keyboard shortcut.
|
// Keyboard shortcut.
|
||||||
useTriliumEvent("toggleRibbonTabNotePaths", () => enabled && dropdownRef.current?.show());
|
useTriliumEvent("toggleRibbonTabNotePaths", () => enabled && dropdownRef.current?.show());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user