This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Updated version | |
// v5 | |
// Monday, 15. May 2023 16:27 | |
// Open modal for searching folder names, and then revealing a folder in file explorer once return is hit. | |
import { Plugin, TFolder, Notice, FuzzySuggestModal, App, FileSystemAdapter } from 'obsidian'; | |
class FolderSuggestModal extends FuzzySuggestModal<string> { | |
folderPaths: string[]; | |
constructor(app: App, folderPaths: string[]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Capture into Obsidian journal files | |
;; author: u/pragmat1c1 | |
;; Friday, 29. March 2024 22:59 | |
(defvar obsidian-journal-dir "/Users/pragmat1c1/Documents/Obsidian_vaults/Journal" | |
"Directory where journal files are stored.") | |
(defun ugt-journal-get-journal-file-today () | |
"Return filename for today's journal entry and open the file at the last line." | |
(let* ((date (format-time-string "%Y-%m-%d")) | |
(file-name (expand-file-name (format "%s.md" date) obsidian-journal-dir))) |