[dmenu][patches][sort_by_popularity] Fixed index.md - sites - public wiki conte… | |
git clone git://git.suckless.org/sites | |
Log | |
Files | |
Refs | |
--- | |
commit 3e81b6a859ddacacf5988444d0fbfa347a4d8c7e | |
parent 0975feac72d28558cf49a47385c10e790e982d73 | |
Author: elbachir-one <[email protected]> | |
Date: Sat, 18 Jan 2025 04:16:24 +0100 | |
[dmenu][patches][sort_by_popularity] Fixed index.md | |
Diffstat: | |
M tools.suckless.org/dmenu/patches/s… | 31 ++++++++++++++-------------… | |
1 file changed, 14 insertions(+), 17 deletions(-) | |
--- | |
diff --git a/tools.suckless.org/dmenu/patches/sort_by_popularity/index.md b/too… | |
@@ -1,28 +1,25 @@ | |
-sort_by_popularity | |
-============= | |
+Sort By Popularity | |
+================== | |
-The list of programs is sorted by popularity. | |
+Description | |
+----------- | |
-Each time you run the program, its popularity will increase by 1. | |
+The list of programs is sorted by popularity. Each time you run the program, | |
+its popularity score increases by 1. The popularity data is saved in the cache | |
+file located at: `{CACHE_PATH}/dmenu_pop.txt`. | |
-The popularity cache file is stored in: `{CACHE_PATH}/dmenu_pop.txt`. | |
- | |
-Requirements | |
------------- | |
+#### Requirements | |
* One of the following system env **shall** be set `XDG_CACHE_HOME` or `HOME` | |
* Folder `$XDG_CACHE_HOME` or `$HOME/.cache` **shall** exist | |
-How it works | |
------------- | |
- | |
-The order of programs is determined by popularity. | |
- | |
-Programs with higher popularity come first. | |
+#### How it works | |
-The order of programs with the same popularity depends on their position in th… | |
+The order of programs is based on their popularity, with more popular programs | |
+appearing first. Programs with the same popularity are ordered according to | |
+their position in the cache file. | |
-Let's assume that we have the following programs: `A`, `B1`, `B2`, `C` | |
+For example, consider the following programs: `A`, `B1`, `B2`, `C` | |
`[User input] -> [dmenu output] -> [User's choice] -> {PROGRAM: POPULARITY}` | |
@@ -35,7 +32,7 @@ Let's assume that we have the following programs: `A`, `B1`, … | |
Download | |
-------- | |
-* [dmenu-sort_by_popularity-20250117-86f0b51.diff](dmenu-sort_by_popularity-20… | |
+* [dmenu-sort_by_popularity-20250117-86f0b51.diff](dmenu-sort_by_popularity-20… | |
Author | |
------ |