Commit graph

197 commits

Author SHA1 Message Date
Jacob 07fea94145 Fix typo causing one entry to not be cached 2023-07-14 16:47:34 +02:00
speedie 82510ca58f Replace slow commands with awk 2023-07-14 16:23:03 +02:00
speedie 0e57f1d5fe Replace usage of seq 2023-07-14 16:05:52 +02:00
speedie db8d7f3b34 Support Desktop Action headers 2023-07-14 16:00:02 +02:00
Jacob 6577fa93be Move the function for printing the list to the config file 2023-07-14 15:12:56 +02:00
Jacob 18ea066293 Oops removed a few lines by accident 2023-07-14 14:52:04 +02:00
Jacob ebf28bc7df Add Swedish translations to .desktop entries, add support for non
English languages in spmenu_run .desktop entry caching
2023-07-14 14:43:23 +02:00
Jacob 77f95c5e0f Respect OnlyShowIn too 2023-07-14 13:14:13 +02:00
Jacob f8d5730ea2 Respect NoDisplay in .desktop entries 2023-07-14 12:59:19 +02:00
speedie 3ff3162412 Version bump: 3.0.2 2023-07-11 21:36:15 +02:00
Jacob 9d6ae13eae Update docs, remove most .Xresources preferences 2023-07-11 16:53:26 +02:00
speedie 2d445f860d Some improvements to building 2023-07-10 18:24:52 +02:00
speedie 4135cbc0f2 Add fuzzy matching using tiny-regex-c 2023-07-05 01:40:35 +02:00
speedie d750f3a78a Some config file code cleanup 2023-07-04 16:59:59 +02:00
Jacob 69d5ae6950 Fix -cc argument check typo 2023-07-03 23:51:47 +02:00
speedie 4ac7119c5b Add WIP icon support to spmenu 2023-07-03 18:48:38 +02:00
Jacob eefa047c6e No need to generate manual on install. 2023-06-30 01:23:57 +02:00
speedie 9c246c037d Fix last commit 2023-06-28 19:46:03 +02:00
speedie bab025207f Return exit code 1 if no item is selected 2023-06-27 01:46:34 +02:00
speedie ba32ad46cb Change the default number of columns for -fm 2023-06-27 01:41:36 +02:00
speedie d4b43ac072 Fix $HISTORY passed to spmenu without -H argument 2023-06-27 01:36:54 +02:00
speedie 2124d33044 fix typo breaking -fm 2023-06-26 22:47:33 +02:00
speedie 706be5fbe0 Fix $PATH on BSD by using compgen instead 2023-06-26 18:48:49 +02:00
speedie a6efdbc17f Some history fixing for FreeBSD 2023-06-26 18:34:25 +02:00
speedie b33f0bc68e More BSD compatibility 2023-06-26 18:26:53 +02:00
speedie 5806bcc897 Always check if the desktop entry exists. 2023-06-26 18:25:35 +02:00
speedie d4f8f58178 Redirect find errors to /dev/null, fixing bugs on BSD. 2023-06-26 18:20:46 +02:00
speedie 8e257d5f6b Improve FreeBSD compatibility by moving meson.options to
meson_options.txt
Also fix a -Wsometimes-uninitialized
2023-06-26 18:09:03 +02:00
Jacob 591023c471 Fix headers being deleted when they shouldn't be 2023-06-25 20:23:15 +02:00
Jacob 1ac60b25ad Add $RUNLAUNCHER_BM_ARGS variable 2023-06-25 20:19:41 +02:00
Jacob 0c9ae3977a Add -sb and -nsb arguments to spmenu_run 2023-06-25 20:14:58 +02:00
Jacob 9b062f7dfb Set prefix in script 2023-06-25 19:56:00 +02:00
Jacob d439b14ea2 Rename some variables, allow setting prompt 2023-06-25 19:53:22 +02:00
Jacob 88bbfa2cb9 Add the ability to run a command for the bookmark.
Typing in @GNU:xdg-open https://gnu.org will create a bookmark called
GNU which opens up gnu.org in your browser. '@' will show bookmarks and
'@c' will clear bookmarks.
2023-06-25 19:43:17 +02:00
Jacob 53dca773a7 Add bookmarking to spmenu_run 2023-06-25 18:41:43 +02:00
speedie 1a4f2c08ef Replace sed -i with sed for *BSD compatibility 2023-06-24 23:30:03 +02:00
speedie c7632f342e Fix generate.sh
Fix generate.sh, it should now generate properly. Also remove the actual
protocols, the user should generate those, not me.
2023-06-24 21:12:18 +02:00
speedie b4dd4fc383 Add documentation for spmenu_test
Add documentation for spmenu_test, also improve Markdown format
consistency.
2023-06-24 19:55:11 +02:00
speedie c0cd874348 Use /usr/bin/env bash instead of /bin/bash in the spmenu_make script for
consistency with spmenu_run and spmenu_test
2023-06-24 04:22:15 +02:00
speedie f0b22fd14d Add some more functions 2023-06-23 01:08:36 +02:00
speedie e9f88bbb50 Auto refresh enabled by default 2023-06-23 00:56:07 +02:00
speedie f6d4ea8cb9 Add some functions that can be defined in the configuration file 2023-06-23 00:55:03 +02:00
speedie aa33711795 Replace read -r code with mapfile
This may break compatibility with Bash 3, but that shouldn't really
matter much.
2023-06-23 00:49:56 +02:00
speedie 2c256c6d5f Remove entry validation, not very useful and breaks several features
Still need some speed improvements
2023-06-23 00:38:44 +02:00
speedie e22c5f7e75 Simplify caching of desktop entries
This commit simplifies the caching of desktop entries. Previously
spmenu_run would cache each desktop entry into a cache directory, of
course using it's own format and then parses that yet again to add it to
the arrays. This is terribly inefficient and wastes the user's valuable
space.

With this commit, the entries are parsed and directly written to the six
cache files, which spmenu can then grab from in plain text, without any
parsing. Significantly speeds up the caching and saves disk space.
2023-06-22 23:27:56 +02:00
speedie 37dfc0548c cleanup macOS check 2023-06-21 16:18:17 +02:00
speedie 3b10355e5a Combine the many scripts into one. The protocols/generate.sh is
necessary because meson doesn't seem to like passing arguments to
scripts it has to execute.
2023-06-17 17:05:42 +02:00
speedie 59d9f63238 Remove example scripts, move them to spmenu-examples repository 2023-06-17 15:26:51 +02:00
speedie b7a4ef5a99 Support the Terminal=true desktop entry specification 2023-06-16 04:39:09 +02:00
speedie 355c3299c5 Update URLs with the non-php version 2023-06-10 14:36:44 +02:00