Things I have tried
Hello everybody!
Fairly new to Obsidian and I just started to learn python. Have searched for something similar to this topic but cant seem to find anything so I have to post my question:
Are there any plugins allowing for the possibility of using Gpt-3 to automatically (via a key shortcut) add # that describe the context of the note in question? Currently I use the text generator plugin with the shortcut command+j but it would be nice to make a custom shortcut that already has the prompt generating the hashtags embedded into it, aswell as allowing for doing this retroactively on all the notes I already have, and giving it a special hashtag which allows for the filtering of these notes in graphview.
I asked Gpt 3 to do this for me in electron (which I know nothing of) and got the following result:
Write me code in electron that adds the following operation to the notes in all subfolders: “Add 5 appropriate # describing the context of the above text”// Main js file
const {app, BrowserWindow, ipcMain} = require(‘electron’)
const fs = require(‘fs’);
//Create a browser window instance
let win
function createWindow () {
win = new BrowserWindow({width: 800,height: 600})
win.loadFile('index.html')
//For debugging purposes only
win.webContents.openDevTools();
win.on('closed', () => {win=null; });
}
app.on(‘ready’, createWindow)
app.on(‘window-all-closed’, () =>{ app.quit() })
// Listen for the request to update notes in all the subfolders
ipcMain.on(“updateNotes”, (e) =>{ updateNotesInSubfolders(e); });
// Update the note by adding “Add 5 appropriate # describing the context of the above text” in all the sub folders recursively
function updateNotesInSubfolders(path){
//Return if path does not exist or is not a directory
if (!fs.existsSync(path) || !fs.lstatSync(path).isDirectory()) return;
//Read directory contents recursively
const subs = fs.readdirSync(
No idea how useful this is but might be a start (?).
Thankful for any suggestions on how to make this if it doesn’t already exist. Thanks!