alphapapa / burly.el

Save and restore frames and windows with their buffers in Emacs
GNU General Public License v3.0
301 stars 14 forks source link

Feature idea: capture deserialized definitions of Burly bookmark URL's #32

Open dcunited001 opened 3 years ago

dcunited001 commented 3 years ago

This should help immensely for me. There are times when i want to edit a Burly bookmark definition and store it, but I am not familiar enough with how Org serializes the objects for its bookmarks. I have looked through the Burly code, so maybe i will figure it out.

i've also downloaded the source for a bunch of these various window/frame management tools. I've used emacs variously since ~2012ish (with some huge gaps) so i've had my eye on this "desktop.el vs X workspaces" problem for a long time. I've started to use emacs again and, now that I have more experience, i'm having many more epiphanies about how this works in emacs, how various packages address it, how desktop.el works, etc.

The combination of Burly & Bufler address this problem very well, I think, especially in how they are modular. What i would like to see is some way of generating elisp functions/macros based on unserialized Burly bookmarks, which I could then load via my ~/.emacs,d or preferably via some project's root .dir.locals.el file. Then, whether it's for a general workspace or for a specific project's workspace is up to me. Any processes that I would need to load into some Burly "λ-bookmark" defun definition could be scripted in to load almost like a macro.

I could, for example, script it to start a fresh set of shadow-cljs and/or cider and/or lsp-clojure processes, even loading these buffers into specific frames, so that I have a consistently arranged workspace Feng Shui at my disposal whenever I start emacs to work on a project. Iterating through this is like yak-shaving and bad Feng Shui: thinking about how to execute this sequence of keystrokes breaks my focus and on some projects is more of a hassel than others. e.g. i'm planning on working on a set of Archlinux nvidia install packages.

alphapapa commented 3 years ago

I don't understand what you're asking for. Emacs bookmarks are simply alists; you can look at bookmark-alist to see them and do whatever you want with the values. You can also call Burly functions directly; see the source code.