unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Jacob Hrbek <kreyren@rixotstudio.cz>, guix-devel@gnu.org
Subject: Re: Reverse the naming of store items?
Date: Sat, 04 Dec 2021 20:15:42 -0500	[thread overview]
Message-ID: <871r2rj1gm.fsf@netris.org> (raw)
In-Reply-To: <bGRUcQCdz4lOE_PP7F9TPpLAVE4Qbkn85QY1PnDvtakBteQGJ_SxcnkGBmPnBw0_r0NUxPMlUcQLprYwFE7ZDwsFlMzwoTl3cAUwxBD_lzI=@rixotstudio.cz>

Hi Jacob,

Jacob Hrbek <kreyren@rixotstudio.cz> writes:

> Currently we use
> /gnu/store/zzz16sfz4jxsdvf8j29rkd46psrc6dpj-emacs-ert-runner-0.8.0.drv
> for store items which are painful to navigate from CLI using bash's
> auto-completion as the first letter doesn't correspond to the package
> name which usually requires doing `ls /gnu/store | grep emacs` and
> then copy pasting the path to work with the store items.

As Kaelyn pointed out, there will usually be more than one store item
for the same package, so you'll need to know at least the first few
characters of the hash.  Once you have that, then you will also have the
entire store item name on your screen, at which point you can copy+paste
it into your shell session.

Suppose you don't want to copy+paste it.  If you know the first few hash
characters, then you can simply type "/gnu/store/<first hash chars><TAB>"
and that will usually be sufficient.  For example, suppose I wish to
navigate to the store item of the emacs that I'm currently using to type
this message, which is:

  /gnu/store/9a31k78k56ky1da7n7knq3ys9hriw5sj-emacs-next-pgtk-28.0.50-1.ae18c8e

On my current system, it suffices to type:

  /gnu/store/9a31 <TAB>.

If your proposal were adopted, then I would instead need to type:

  /gnu/store/emacs-ne <TAB> 9 <TAB>

That's 6 more keypresses than is required under the current approach.

      Regards,
        Mark

-- 
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>.


      parent reply	other threads:[~2021-12-05  1:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-04 15:04 Reverse the naming of store items? Jacob Hrbek
2021-12-04 19:16 ` Kaelyn
2021-12-04 20:01 ` Vagrant Cascadian
2021-12-05  1:15 ` Mark H Weaver [this message]

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://guix.gnu.org/

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

  git send-email \
    --in-reply-to=871r2rj1gm.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=guix-devel@gnu.org \
    --cc=kreyren@rixotstudio.cz \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).