all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Theodor Thornhill <theo@thornhill.no>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Philip Kaludercic <philipk@posteo.net>, emacs-devel@gnu.org
Subject: Re: [ELPA] package proposal: fannypack.el
Date: Tue, 22 Feb 2022 23:24:26 +0100	[thread overview]
Message-ID: <87a6ei1qw5.fsf@thornhill.no> (raw)
In-Reply-To: <jwvtucqege8.fsf-monnier+emacs@gnu.org>

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Thanks, pushed `satchel` to elpa.git.  See patch below (the first hunk
> of which is necessary before the tarball can be built).

Thanks!

>
> BTW, this makes me wonder if we couldn't make something slightly more
> automatic/transparent.
>
> E.g. keep track of all the times you select a file/buffer and the branch
> that was current for that file/buffer at that time, and then use that
> history to sort past files/buffers by frequency of use in the current
> context (directory&branch)?
>

This makes sense!  I'll see if I can figure out some good metadata to
use for something like this.  I've been thinking about both using more
advanced git trickery, such as the git worktree workflow etc, but then
I'd need to think a little harder on the design.  For a future version :)

>
>         Stefan
>
>
> PS: Personally, the branch info would be of virtually no use to me since
>     I rarely if ever `checkout` and use `git worktree`s instead.
>
>

Thanks for the input - I'll apply the patch shortly.

Theo


>
> diff --git a/satchel.el b/satchel.el
> index 1d736f03e5..cef792af15 100644
> --- a/satchel.el
> +++ b/satchel.el
> @@ -1,6 +1,6 @@
>  ;;; satchel.el --- A bag for your files, separated by git branches -*- lexical-binding: t; -*-
>  
> -;; Copyright (C) 2022 Theodor Thornhill
> +;; Copyright (C) 2022  Free Software Foundation, Inc.
>  
>  ;; Author: Theodor Thornhill <theo@thornhill.no>
>  ;; Keywords: tools languages
> @@ -48,6 +48,7 @@
>    :group 'tools)
>  
>  (defcustom satchel-directory
> +  ;; FIXME: Use `locate-user-emacs-file'?
>    (concat user-emacs-directory ".local/satchel/")
>    "Where the satchels will be saved."
>    :type 'string)
> @@ -77,7 +78,7 @@
>  This is a file named after the path of the directory it refers
>  to.  There can be several of those files, appended with the
>  current branch name.  If the file can be found, we read that file
> -into lisp data."
> +into Lisp data."
>    (let ((filename (satchel--name)))
>      (when (file-exists-p filename)
>        (with-temp-buffer



  reply	other threads:[~2022-02-22 22:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-22 13:24 [ELPA] package proposal: fannypack.el Theodor Thornhill
2022-02-22 19:11 ` Philip Kaludercic
2022-02-22 19:40   ` Theodor Thornhill
2022-02-22 20:02     ` Philip Kaludercic
2022-02-22 21:11       ` Theodor Thornhill
2022-02-22 21:16         ` Bob Rogers
2022-02-22 21:29           ` Theodor Thornhill
2022-02-22 21:41         ` Stefan Monnier
2022-02-22 22:24           ` Theodor Thornhill [this message]
2022-02-24  4:50       ` Richard Stallman
2022-02-24  6:14         ` Theodor Thornhill
2022-02-24  6:30 ` Uwe Brauer
2022-02-24  6:43   ` Theodor Thornhill
2022-02-24  7:04     ` Uwe Brauer
2022-02-24  7:28       ` Theodor Thornhill
2022-02-24  7:41         ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6ei1qw5.fsf@thornhill.no \
    --to=theo@thornhill.no \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=philipk@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.