You are not logged in.

#1 2014-02-14 20:35:34

alezost
Member
Registered: 2013-10-17
Posts: 61

aurel - Search, vote and download AUR packages from Emacs

It is like cower (more or less) but with Emacs interface instead of CLI.

Link - https://github.com/alezost/aurel.

The package can be installed from MELPA.

Last edited by alezost (2014-03-10 20:52:10)

Offline

#2 2014-02-15 08:17:48

angelic_sedition
Member
Registered: 2014-01-20
Posts: 124
Website

Re: aurel - Search, vote and download AUR packages from Emacs

Wow that's actually pretty cool. I was wondering what use it might be to me at first, but now I installed it and think it's very cool that I can now get a buffer for package search to use my vim bindings with. big_smile Probably not the intended purpose, but thank you! Makes thing more efficient, especially when there are a lot of matches.

Offline

#3 2014-02-15 11:30:34

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: aurel - Search, vote and download AUR packages from Emacs

I am cower user and now I am very happy, that I will be able to do the same from emacs.
My favorite emacs plugin now!

Without having seen your post here, I have created a small gif demonstration on February 2014 Screenshot thread.

Thanks!!

-ivo-


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#4 2014-02-15 12:04:23

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

Thank you guys, I'm happy that you found it useful.
ivoarch, your demonstration is awesome!

Offline

#5 2014-02-15 12:14:44

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: aurel - Search, vote and download AUR packages from Emacs

I think it is a good idea, to create a PKGBUILD for aurel?
And also add in AUR Helpers.

edit: Now also available in Archlinux/Aur and AUR Helpers .
I forgot to mark the package that it comes from git. Sorry!

Last edited by ivoarch (2014-02-15 16:00:39)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#6 2014-02-15 19:16:07

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

ivoarch wrote:

I think it is a good idea, to create a PKGBUILD for aurel?
And also add in AUR Helpers.

edit: Now also available in Archlinux/Aur and AUR Helpers .
I forgot to mark the package that it comes from git. Sorry!

Superb, I was just going to do that when i saw that you have already done it.  Thank you very much!!
(400 posts by the way - cool smile)

I have made a couple of changes:

  • Now it is possible to open several list and info buffers (using prefix before a command).

  • Maintainer name in info buffer is now a button: pressing it (with RET or mouse) will make a search for the maintainer packages (prefix works here too).

Last edited by alezost (2014-02-15 19:18:57)

Offline

#7 2014-02-15 19:43:10

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

ivoarch, I have added a link to your demonstration to the README.md, but I should have asked about that at first. Do you mind?

Offline

#8 2014-02-15 20:17:25

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: aurel - Search, vote and download AUR packages from Emacs

alezost wrote:

ivoarch, I have added a link to your demonstration to the README.md, but I should have asked about that at first. Do you mind?

I'm glad you liked it!
No problem!

edit: In this link looks better.

Also the new features are really cool!

Last edited by ivoarch (2014-02-15 20:26:10)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#9 2014-02-22 22:19:11

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

I have added a new feature: searching by multiple strings (after M-x aurel-package-search).

Unhappily AUR engine does not provide advanced searching by regexps or SQL LIKE-expressions (I asked about it here) or even by multiple words separated with spaces.

So that's how it was implemented: at first searching by the longest string and then searching by the rest strings in the returned result.  AFAIU (although I didn't look closely) cower does something similar.

If you want to search for a string containing spaces, double quote it.

Some examples:

  • spell firefox

  • "web application"

  • perl xml rpc

  • "python library" plot

Offline

#10 2014-02-24 20:29:13

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

I found that sometimes I want to return to the previous results, so I
have added a history in aurel-info and aurel-list buffers.  It works
similar to the history of emacs help-mode, so I bound moving
backward/forward to l/r as well.

(Questions are welcome)

Offline

#11 2014-02-25 21:37:17

fosskers
Member
Registered: 2012-02-21
Posts: 167
Website

Re: aurel - Search, vote and download AUR packages from Emacs

As a fan of emacs and Emacs Lisp, I like this.


Author of Aura

Offline

#12 2014-02-26 10:27:28

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: aurel - Search, vote and download AUR packages from Emacs

Alex
Can you add pkg-info on *Package list/info* if a package is already installed?


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#13 2014-02-26 16:11:55

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

ivoarch wrote:

Alex
Can you add pkg-info on *Package list/info* if a package is already installed?

Yes, thanks for the suggestion.  That will make aurel slower, as it will have to call pacman to check if a package is installed, so I'm going to add an option to choose use that feature or not.

It would be rather big improvement, so it will take some time to implement it.
I will post, when it will be ready.

Offline

#14 2014-02-26 18:36:37

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: aurel - Search, vote and download AUR packages from Emacs

Ok, ty for the quick answer mate!


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#15 2014-02-28 12:41:09

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

ivoarch wrote:

Ok, ty for the quick answer mate!

No problem.

Oof, I have made that feature.  I added a column with installed version to a package list (so if you changed aurel-list-column-format variable, you may want to add it as well).  And some additional information will be shown in info buffer if a package is installed.  If you want to disable that feature (calling pacman):

(setq aurel-installed-packages-check nil)

There were big internal changes, so if someone made some deep configuration that doesn't work; or if something seems strange, ask.

Also i made a little modification: red (or whatever) names in a list buffer mean those packages are marked "Out of date".

Offline

#16 2014-02-28 13:36:13

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: aurel - Search, vote and download AUR packages from Emacs

I tried out the new features cool
Very fast, thanks for the great work dude!

Aurel now looks like.

*AUR Package List*
http://storage9.static.itmages.ru/i/14/ … 396caa.png

*AUR Package Info*
http://storage5.static.itmages.ru/i/14/ … 5f50f4.png

Last edited by ivoarch (2014-02-28 18:09:30)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#17 2014-02-28 18:25:43

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

ivoarch wrote:

I tried out the new features cool
Very fast, thanks for the great work dude!

Your reply was really fast!  Thanks for the screenshots.

Offline

#18 2014-03-04 22:09:50

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

Now it is possible to mark several packages for downloading: m/u (M/U) to mark/unmark (all).
Current information can be updated by pressing "g" (can be useful if you use history and keep emacs alive for a long time).
Also more variables and faces for customizing were added, and some improvements in interface were made.

Offline

#19 2014-03-10 20:41:28

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

New feature: voting and subscribing for comments is now available.

It works for me, but I could miss something, so I appreciate if someone
who has an AUR account will try aurel with:

(setq aurel-aur-user-package-info-check t)

2 new lines should appear in a package info buffer (Voted and
Subscribed), like in the following screenshot: http://i.imgur.com/hunwDRk.png.

To vote/subscribe, press v/s (you'll be prompted for the credentials once).

More information at https://github.com/alezost/aurel#aur-account-actions.

Offline

#20 2014-03-20 06:55:14

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

It is possible to list all installed AUR packages with:

M-x aurel-installed-packages

Also you can press "f v" there to see only those packages that need an update.

Offline

#21 2015-04-23 09:16:50

ackalker
Member
Registered: 2012-11-27
Posts: 201

Re: aurel - Search, vote and download AUR packages from Emacs

I like this package a lot, it fits in very well with my workflow dealing with PKGBUILDs.

@alezost, I'm wondering, could you perhaps extend the functionality to work with 'official' PKGBUILDs from the ABS as well? Or perhaps create a sister package to aurel which does that, keeping the ABS / AUR distinction intact.

Currently I have to visit packages.archlinux.org, search for the package I'm interested in, then download it using abs (for instance `abs testing/systemd`).

I would love to be able to search the ABS for packages from within Emacs as well, then download from the ABS tree just the subdirectory of the package I'm interested in.

Last edited by ackalker (2015-04-23 09:18:45)

Offline

#22 2015-04-23 14:18:10

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: aurel - Search, vote and download AUR packages from Emacs

ackalker wrote:

I like this package a lot, it fits in very well with my workflow dealing with PKGBUILDs.

@alezost, I'm wondering, could you perhaps extend the functionality to work with 'official' PKGBUILDs from the ABS as well? Or perhaps create a sister package to aurel which does that, keeping the ABS / AUR distinction intact.

Sorry but I'm afraid I will not do that (at least not in the nearest future).  These days I use Guix package manager (and GuixSD in general) and its Emacs interface (which I'm also the author of) most of the time.  So I don't really use aurel anymore, although I keep an eye on it to make sure that it still works.

Offline

#23 2015-04-24 03:28:17

angelic_sedition
Member
Registered: 2014-01-20
Posts: 124
Website

Re: aurel - Search, vote and download AUR packages from Emacs

alezost wrote:

Sorry but I'm afraid I will not do that (at least not in the nearest future).  These days I use Guix package manager (and GuixSD in general) and its Emacs interface (which I'm also the author of) most of the time.  So I don't really use aurel anymore, although I keep an eye on it to make sure that it still works.

When I first saw guix.el I thought of aurel right away. I only now realized that you were also the author. Very nice work!

Offline

Board footer

Powered by FluxBB