vault backup: 2024-08-24 08:23:23
This commit is contained in:
parent
52bbe7c04b
commit
cdb6555e94
26
.obsidian/plugins/home-tab/data.json
vendored
26
.obsidian/plugins/home-tab/data.json
vendored
@ -23,25 +23,17 @@
|
||||
"markdownOnly": false,
|
||||
"unresolvedLinks": false,
|
||||
"recentFilesStore": [
|
||||
{
|
||||
"filepath": "_inbox/Уроки от English Galaxy.md",
|
||||
"timestamp": 1724476751121
|
||||
},
|
||||
{
|
||||
"filepath": "Home.md",
|
||||
"timestamp": 1724476703382
|
||||
},
|
||||
{
|
||||
"filepath": "_inbox/Утилита ngrok.md",
|
||||
"timestamp": 1724433883247
|
||||
},
|
||||
{
|
||||
"filepath": "notes/Эротическая игра в телеграме для пар.md",
|
||||
"timestamp": 1724433739484
|
||||
},
|
||||
{
|
||||
"filepath": "knowledge/health/болезни/Бессонница.md",
|
||||
"timestamp": 1724430483144
|
||||
},
|
||||
{
|
||||
"filepath": "knowledge/health/болезни/Депрессия.md",
|
||||
"timestamp": 1724430479981
|
||||
},
|
||||
{
|
||||
"filepath": "_inbox/Кошмар.md",
|
||||
"timestamp": 1724428176822
|
||||
"timestamp": 1724476702377
|
||||
}
|
||||
],
|
||||
"bookmarkedFileStore": [],
|
||||
|
2
.obsidian/plugins/homepage/main.js
vendored
2
.obsidian/plugins/homepage/main.js
vendored
File diff suppressed because one or more lines are too long
2
.obsidian/plugins/homepage/manifest.json
vendored
2
.obsidian/plugins/homepage/manifest.json
vendored
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "homepage",
|
||||
"name": "Homepage",
|
||||
"version": "4.0.3",
|
||||
"version": "4.0.4",
|
||||
"minAppVersion": "1.4.10",
|
||||
"description": "Open a specified note, canvas, or workspace on startup, or set it for quick access later.",
|
||||
"author": "novov",
|
||||
|
51
.obsidian/plugins/khoj/main.js
vendored
51
.obsidian/plugins/khoj/main.js
vendored
@ -1531,6 +1531,10 @@ var KhojChatView = class extends KhojPaneView {
|
||||
constructor(leaf, setting) {
|
||||
super(leaf, setting);
|
||||
this.keyPressTimeout = null;
|
||||
this.userMessages = [];
|
||||
this.currentMessageIndex = -1;
|
||||
this.currentUserInput = "";
|
||||
this.startingMessage = "Message";
|
||||
this.scope = new import_obsidian5.Scope(this.app.scope);
|
||||
this.scope.register(["Ctrl"], "n", (_) => this.createNewConversation());
|
||||
this.scope.register(["Ctrl"], "o", async (_) => await this.toggleChatSessions());
|
||||
@ -1562,6 +1566,12 @@ var KhojChatView = class extends KhojPaneView {
|
||||
async chat(isVoice = false) {
|
||||
let input_el = this.contentEl.getElementsByClassName("khoj-chat-input")[0];
|
||||
let user_message = input_el.value.trim();
|
||||
if (user_message) {
|
||||
this.userMessages.push(user_message);
|
||||
const modifierKey = import_obsidian5.Platform.isMacOS ? "\u2318" : "^";
|
||||
this.startingMessage = `(${modifierKey}+\u2191/\u2193) for prev messages`;
|
||||
input_el.placeholder = this.startingMessage;
|
||||
}
|
||||
input_el.value = "";
|
||||
this.autoResize();
|
||||
await this.getChatResponse(user_message, isVoice);
|
||||
@ -1604,6 +1614,7 @@ var KhojChatView = class extends KhojPaneView {
|
||||
});
|
||||
chatInput.addEventListener("keydown", (event) => {
|
||||
this.incrementalChat(event);
|
||||
this.handleArrowKeys(event);
|
||||
});
|
||||
this.contentEl.addEventListener("keydown", this.handleKeyDown.bind(this));
|
||||
this.contentEl.addEventListener("keyup", this.handleKeyUp.bind(this));
|
||||
@ -1644,7 +1655,7 @@ var KhojChatView = class extends KhojPaneView {
|
||||
await this.chat();
|
||||
});
|
||||
let getChatHistorySucessfully = await this.getChatHistory(chatBodyEl);
|
||||
let placeholderText = getChatHistorySucessfully ? "Message" : "Configure Khoj to enable chat";
|
||||
let placeholderText = getChatHistorySucessfully ? this.startingMessage : "Configure Khoj to enable chat";
|
||||
chatInput.placeholder = placeholderText;
|
||||
chatInput.disabled = !getChatHistorySucessfully;
|
||||
requestAnimationFrame(() => {
|
||||
@ -1974,10 +1985,17 @@ ${inferredQuery}`;
|
||||
chatBodyEl.innerHTML = "";
|
||||
chatBodyEl.dataset.conversationId = "";
|
||||
chatBodyEl.dataset.conversationTitle = "";
|
||||
this.userMessages = [];
|
||||
this.startingMessage = "Message";
|
||||
const chatInput = this.contentEl.querySelector(".khoj-chat-input");
|
||||
if (chatInput) {
|
||||
chatInput.placeholder = this.startingMessage;
|
||||
}
|
||||
this.renderMessage(chatBodyEl, "Hey \u{1F44B}\u{1F3FE}, what's up?", "khoj");
|
||||
}
|
||||
async toggleChatSessions(forceShow = false) {
|
||||
var _a;
|
||||
this.userMessages = [];
|
||||
let chatBodyEl = this.contentEl.getElementsByClassName("khoj-chat-body")[0];
|
||||
if (!forceShow && ((_a = this.contentEl.getElementsByClassName("side-panel")) == null ? void 0 : _a.length) > 0) {
|
||||
chatBodyEl.innerHTML = "";
|
||||
@ -2144,7 +2162,16 @@ ${inferredQuery}`;
|
||||
chatLogs.forEach((chatLog) => {
|
||||
var _a2, _b2;
|
||||
this.renderMessageWithReferences(chatBodyEl, chatLog.message, chatLog.by, chatLog.context, chatLog.onlineContext, new Date(chatLog.created), (_a2 = chatLog.intent) == null ? void 0 : _a2.type, (_b2 = chatLog.intent) == null ? void 0 : _b2["inferred-queries"]);
|
||||
if (chatLog.by === "you") {
|
||||
this.userMessages.push(chatLog.message);
|
||||
}
|
||||
});
|
||||
const modifierKey = import_obsidian5.Platform.isMacOS ? "\u2318" : "^";
|
||||
this.startingMessage = this.userMessages.length > 0 ? `(${modifierKey}+\u2191/\u2193) for prev messages` : "Message";
|
||||
const chatInput = this.contentEl.querySelector(".khoj-chat-input");
|
||||
if (chatInput) {
|
||||
chatInput.placeholder = this.startingMessage;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
let errorMsg = "Unable to get response from Khoj server \u2764\uFE0F\u200D\u{1FA79}. Ensure server is running or contact developers for help at [team@khoj.dev](mailto:team@khoj.dev) or in [Discord](https://discord.gg/BDgyabRM6e)";
|
||||
@ -2451,6 +2478,8 @@ Content-Type: "application/octet-stream"\r
|
||||
onChatInput() {
|
||||
const chatInput = this.contentEl.getElementsByClassName("khoj-chat-input")[0];
|
||||
chatInput.value = chatInput.value.trimStart();
|
||||
this.currentMessageIndex = -1;
|
||||
this.currentUserInput = chatInput.value;
|
||||
this.autoResize();
|
||||
}
|
||||
autoResize() {
|
||||
@ -2561,6 +2590,26 @@ ${inferredQuery}`;
|
||||
referencesDiv.appendChild(referenceSection);
|
||||
return referencesDiv;
|
||||
}
|
||||
handleArrowKeys(event) {
|
||||
const chatInput = event.target;
|
||||
const isModKey = import_obsidian5.Platform.isMacOS ? event.metaKey : event.ctrlKey;
|
||||
if (isModKey && event.key === "ArrowUp") {
|
||||
event.preventDefault();
|
||||
if (this.currentMessageIndex < this.userMessages.length - 1) {
|
||||
this.currentMessageIndex++;
|
||||
chatInput.value = this.userMessages[this.userMessages.length - 1 - this.currentMessageIndex];
|
||||
}
|
||||
} else if (isModKey && event.key === "ArrowDown") {
|
||||
event.preventDefault();
|
||||
if (this.currentMessageIndex > 0) {
|
||||
this.currentMessageIndex--;
|
||||
chatInput.value = this.userMessages[this.userMessages.length - 1 - this.currentMessageIndex];
|
||||
} else if (this.currentMessageIndex === 0) {
|
||||
this.currentMessageIndex = -1;
|
||||
chatInput.value = this.currentUserInput;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// src/main.ts
|
||||
|
2
.obsidian/plugins/khoj/manifest.json
vendored
2
.obsidian/plugins/khoj/manifest.json
vendored
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "khoj",
|
||||
"name": "Khoj",
|
||||
"version": "1.20.4",
|
||||
"version": "1.21.3",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Your Second Brain",
|
||||
"author": "Khoj Inc.",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-hider",
|
||||
"name": "Hider",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"minAppVersion": "1.6.0",
|
||||
"description": "Hide UI elements such as tooltips, status, titlebar and more",
|
||||
"author": "@kepano",
|
||||
|
60
.obsidian/plugins/obsidian-tasks-plugin/main.js
vendored
60
.obsidian/plugins/obsidian-tasks-plugin/main.js
vendored
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-tasks-plugin",
|
||||
"name": "Tasks",
|
||||
"version": "7.8.0",
|
||||
"version": "7.9.0",
|
||||
"minAppVersion": "1.1.1",
|
||||
"description": "Track tasks across your vault. Supports due dates, recurring tasks, done dates, sub-set of checklist items, and filtering.",
|
||||
"helpUrl": "https://publish.obsidian.md/tasks/",
|
||||
|
@ -1,5 +1,13 @@
|
||||
{
|
||||
"recentFiles": [
|
||||
{
|
||||
"basename": "Уроки от English Galaxy",
|
||||
"path": "_inbox/Уроки от English Galaxy.md"
|
||||
},
|
||||
{
|
||||
"basename": "Home",
|
||||
"path": "Home.md"
|
||||
},
|
||||
{
|
||||
"basename": "Утилита ngrok",
|
||||
"path": "_inbox/Утилита ngrok.md"
|
||||
@ -36,10 +44,6 @@
|
||||
"basename": "Ментальное здоровье",
|
||||
"path": "knowledge/human/Ментальное здоровье.md"
|
||||
},
|
||||
{
|
||||
"basename": "Home",
|
||||
"path": "Home.md"
|
||||
},
|
||||
{
|
||||
"basename": "Без названия 4",
|
||||
"path": "Без названия 4.md"
|
||||
@ -64,10 +68,6 @@
|
||||
"basename": "Диагностика HDD c использованием S.M.A.R.T.",
|
||||
"path": "_inbox/Диагностика HDD c использованием S.M.A.R.T..md"
|
||||
},
|
||||
{
|
||||
"basename": "Уроки от English Galaxy",
|
||||
"path": "_inbox/Уроки от English Galaxy.md"
|
||||
},
|
||||
{
|
||||
"basename": "Полезные фразы",
|
||||
"path": "knowledge/english/Полезные фразы.md"
|
||||
|
2
.obsidian/plugins/templater-obsidian/main.js
vendored
2
.obsidian/plugins/templater-obsidian/main.js
vendored
@ -2607,7 +2607,7 @@ var InternalModuleWeb = class extends InternalModule {
|
||||
generate_random_picture() {
|
||||
return async (size, query, include_size = false) => {
|
||||
try {
|
||||
const response = await this.getRequest(`https://templater-unsplash.fly.dev/${query ? "?q=" + query : ""}`).then((res) => res.json());
|
||||
const response = await this.getRequest(`https://templater-unsplash-2.fly.dev/${query ? "?q=" + query : ""}`).then((res) => res.json());
|
||||
let url = response.full;
|
||||
if (size && !include_size) {
|
||||
if (size.includes("x")) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "templater-obsidian",
|
||||
"name": "Templater",
|
||||
"version": "2.4.1",
|
||||
"version": "2.4.2",
|
||||
"description": "Create and use templates",
|
||||
"minAppVersion": "1.5.0",
|
||||
"author": "SilentVoid",
|
||||
|
Loading…
Reference in New Issue
Block a user