From 6a7930a8fc084563d35fad16c1858fbc6a3109c1 Mon Sep 17 00:00:00 2001
From: 0xhenrique
-For now, I'm using JSON to save the bookmarks, but to be honest I don't know if I'll keep this format until the end. +I started using the Rust language, but I realized that I wasn't familiar enough with the language to do this. So I left Rust aside for a while and took advantage of the situation to rewrite Lum using Clojure, since I had been planning to put it into practice for a while. +
+ ++This was my first more "serious" project using Clojure, so a lot of things are out of place, a lot of rough edges, a lot of design mistakes, etc. +For example, I'm using JSON to save the bookmarks, but to be honest I don't know if I'll keep this format until the end. I'm still evaluating whether this would be the most practical and quickest way, considering that I already accumulated more than 12 thousand bookmarks at the height of my NEET time. I don't think parsing 12 thousand objects in JSON is efficient, but it's something I still need to test in practice. +But at least it helped me get better grasp of a Lisp language. I still intend to revisit this project sometime in the future, maybe even restructure it from scratch to fix the mistakes I made. +For now, I don't think it can replace browser bookmarks, but it's something I'll focus on more in my next iteration with Lum.
+Although it is not really necessary to run this program, having fzf and xclip would be great if you want to integrate with other programs. A pretty useful command to fetch your bookmarks would be:
@@ -40,6 +49,29 @@ Although it is not really necessary to run this program, having fzf and xclip wo$ lum -l | fzf | xclip -selection clipboard
+While I'm not deploying binary packages to Lum, I can check my bookmarks through Emacs with a very simple function: +
+(defun pache/my-consult-bookmark () + "Select a bookmark using `completing-read` and copy it to the clipboard." + (interactive) + (let* ((candidates (split-string (shell-command-to-string "java -jar ~/path/to/lum-1.0.0-SNAPSHOT-standalone.jar -l") "\n" t)) + (selection (completing-read "Select bookmark: " candidates))) + (when selection + (kill-new selection) + (message "Copied to clipboard: %s" selection)))) +(global-set-key (kbd "C-c b") 'pache/my-consult-bookmark) ++