Click on referenced notes by Khoj chat to open it in Obsidian vault

Allow opening Khoj chat references in Obsidian vault if the reference
is a heading or file in the current Obsidian vault
This commit is contained in:
Debanjum Singh Solanky
2024-05-26 18:04:20 +05:30
parent 0f796a79ec
commit e86899eec4
2 changed files with 37 additions and 8 deletions

View File

@@ -181,6 +181,13 @@ button.reference-button.expanded {
max-height: none;
white-space: pre-wrap;
}
button.reference-button.expanded > :nth-child(2) {
display: block;
}
button.reference-button.collapsed > :nth-child(2) {
display: none;
}
button.reference-button::before {
content: "▶";
margin-right: 5px;
@@ -214,7 +221,7 @@ a.inline-chat-link {
text-decoration: none;
border-bottom: 1px dotted #475569;
}
a.reference-link {
.reference-link {
color: var(--khoj-storm-grey);
border-bottom: 1px dotted var(--khoj-storm-grey);
}