Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Add sorting by downloads #190

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Amorymeltzer
Copy link

@Amorymeltzer Amorymeltzer commented Apr 2, 2021

Useful in particular for non-GitHub packages, as well as packages out of the limelight.


For anyone interested, just adding (paradox--define-sort paradox--column-name-download "d") to your startup file should make this available in the meantime. (see #176 (comment) if they're not visible)

@@ -783,7 +785,7 @@ With prefix N, move to the N-th previous package instead."
("star," "visit homepage," "unmark," ("mark Upgrades," . 5) "~delete obsolete")
("list commits")
("filter by" "+" "upgrades" "regexp" "keyword" "starred" "clear")
("Sort by" "+" "Package name" "Status" "*(star)")))
("Sort by" "+" "Package name" "Status" "*(stars)" "↓(downloads)")))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made it stars not star, figured that was correct.

Comment on lines 730 to +731
["By Number of Stars" paradox-sort-by-★]
["By Number of Downloads" paradox-sort-by-↓]
Copy link
Author

@Amorymeltzer Amorymeltzer Apr 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I matched the previous behavior, but probably better to make use of paradox--column-name-star and paradox--column-name-download rather than hardcode. See also #187

Amorymeltzer added a commit to Amorymeltzer/dotfiles that referenced this pull request Apr 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant