discussion and development of piem
 help / color / mirror / code / Atom feed
From: Xinglu Chen <public@yoctocell.xyz>
To: piem@inbox.kyleam.com
Subject: [PATCH] Support reading directory using project.el
Date: Mon, 01 Feb 2021 21:47:06 +0100
Message-ID: <3c67863e03e49c3ae3ac0bb3e86f021e00a23255.1612212167.git.public@yoctocell.xyz> (raw)

Since Emacs 28, project.el is built-in package that offers similar
functionality to projectile. It is also available on GNU ELPA.

* piem.el (piem-inbox-coderepo-maybe-read): Add support for reading
  directory using project.el.

---
 piem.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/piem.el b/piem.el
index 7b198d1..f6458f9 100644
--- a/piem.el
+++ b/piem.el
@@ -372,6 +372,9 @@ (defun piem-inbox-coderepo-maybe-read ()
                     (when-let ((current (and (fboundp 'projectile-project-root)
                                              (projectile-project-root))))
                       (abbreviate-file-name current)))))
+             (and (bound-and-true-p project--list)
+                  (expand-file-name
+                   (project-prompt-project-dir)))
              (and piem-use-magit
                   (fboundp 'magit-read-repository)
                   (magit-read-repository))

base-commit: 656625e1f9628673c285e3357329aaa6f6e48843
-- 
2.29.2


             reply	other threads:[~2021-02-01 20:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 20:47 Xinglu Chen [this message]
2021-02-02  2:59 ` Kyle Meyer
2021-02-02 23:45 ` Kyle Meyer

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

  List information: https://git.kyleam.com/

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

  git send-email \
    --in-reply-to=3c67863e03e49c3ae3ac0bb3e86f021e00a23255.1612212167.git.public@yoctocell.xyz \
    --to=public@yoctocell.xyz \
    --cc=piem@inbox.kyleam.com \
    --subject='Re: [PATCH] Support reading directory using project.el' \
    /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

discussion and development of piem

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.kyleam.com/piem/0 piem/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 piem piem/ https://inbox.kyleam.com/piem \
		piem@inbox.kyleam.com
	public-inbox-index piem

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.piem


code repositories for project(s) associated with this inbox:

	https://git.kyleam.com/piem/

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git