Skip to content

Instantly share code, notes, and snippets.

View akashpal-21's full-sized avatar

Akash akashpal-21

View GitHub Profile
@akashpal-21
akashpal-21 / org-traverse.el
Last active April 13, 2024 02:11
org-traverse.el
;; org-traverse - set of hacks to enable linking between headlines using org links -
;; Variable list
;;; org-traverse-hashtable : the hashtable in memory that stores information about headlines and their position
;;; org-traverse-cache-directory : the directory in the filesystem to cache
;;; org-traverse-cache-directory-exclude : directory names within the cache-dir to exclude
;; Functions
;; Intended for user
;;; org-traverse-goto : navigate to a headline within the cache
@akashpal-21
akashpal-21 / org-roam-node-cache.el
Last active May 21, 2024 12:32
org-roam-node-cache.el
;; org-roam-node-cache.el
;; When `org-roam-node-read' is called --
;; `org-roam-node-read--completions' is initiated which fetches the list of struct nodes, applies FILTER-FN if any,
;; then formats them as specified by `org-roam-node-display-template' and finally
;; after sorting according to `org-roam-node-default-sort' or user SORT-FN
;; passes this final list further down.
;; `org-roam-node-read--completions' makes two subcalls -
;; A. To `org-roam-node-list' which queries the db and generates a nodes struct for each node.
@akashpal-21
akashpal-21 / .dir-locals.el
Last active May 21, 2024 19:57
Org roam test suite
((nil . ((org-roam-directory . "/home/user/Desktop/test/")
(org-roam-db-location . "/home/user/Desktop/test/org-roam.db"))))