emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ELPA] package proposal: fannypack.el


From: Theodor Thornhill
Subject: Re: [ELPA] package proposal: fannypack.el
Date: Thu, 24 Feb 2022 07:14:32 +0100

Hi, Richard!

> I am good at naming.  How about describing what this package does?
> (Don't assume I know anything about it.)  I may get an idea.
>

I'll try!

When working on some feature, there are usually only a handful of
important files. By important I mean a file that you'll visit more often
than others.  However, sometimes the bufferlist can get huge, so you'll
need to manually trim it, or start looking through it to find the
relevant file. This quickly gets tedious, at least for a long living
emacs session.  This utility will simplify this a little, and exposes a
set of functions to manually handle such a small set of files, without
disrupting the rest of the buffer system in emacs.

So, what it does is to store the files you mark manually as important in
a Lisp list, then persist it to disk.  This file is named as the project
path, and also adds in the Git branch, to make sure that even a single
project can have many sets of files, each one relevant to the ongoing
work.  An example name of such a file can be
"~---home---theo---src---project-name---#master".  This file just stores
data like so:


```elisp
;; satchel is named '~---theo---src---satchel---#master'
(("/home/theo/src/satchel/satchel.el")
 ("/home/theo/src/satchel/README.md"))
```

Satchel, as the name is currently, will automatically pick the correct
file to use, so that the management of these files gets really easy and
quick.  For the deeper exploratory work, go-to-definition, bufferlist,
find-file etc remains the same.  It can be seen as a more advanced
'find-alternate-file' (which I've never really understood how works,
though), I think.

In the future I am considering other metadata to persist as well, such
as the point when the file is marked.

Was this a little clearer?

All the best,
Theodor Thornhill



reply via email to

[Prev in Thread] Current Thread [Next in Thread]