Commit graph

88 commits

Author SHA1 Message Date
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
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 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 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 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
speedie d5ca4510a0 add license to spmenu_run and spmenu_test 2023-06-03 15:10:27 +02:00
speedie 95b420944c add a bind file which scripts can use to gain full control over keybinds 2023-05-22 22:47:37 +02:00
speedie 5aeea3230b add option to not allow multisel 2023-05-19 02:01:36 +02:00
speedie ba8b940181 marking of items now possible for -fm 2023-05-19 01:57:54 +02:00
speedie 2a9ae1480c display number of selected items as well, run subshell in the background 2023-05-16 21:16:51 +02:00
speedie 82fa3eaa95 add separate man page for spmenu_run 2023-05-16 20:50:08 +02:00
speedie 5aefbf249a fix some bugs, add multisel for spmenu_run 2023-05-16 20:03:52 +02:00
speedie 3ddb0f50dd add keywords for desktop entry display 2023-05-13 18:02:58 +02:00
speedie 66bcc31242 some cleanup in the script 2023-05-13 17:35:16 +02:00
speedie fd67511080 add .desktop entries for use with desktop environments, install to /usr
instead of /usr/local by default
2023-05-13 00:25:50 +02:00
speedie 44ec1632bd apply last commit in all default scripts, update documentation to
reflect it
2023-05-10 21:55:59 +02:00
speedie 5efe236380 indent lots of code using vim gg=G 2023-05-08 23:00:45 +02:00
speedie d8b995bb0c remove the CACHE option, it didn't do anything and it shouldn't be
optional anyway
2023-05-06 14:55:23 +02:00
speedie 81dba63bc9 fix cache clearing 2023-05-06 14:54:06 +02:00
speedie 8e8c359d00 some fixes, add to TODO 2023-05-04 20:44:43 +02:00
speedie a2257f2503 validate items 2023-05-02 21:53:30 +02:00
speedie ca82d24b33 fix duplicate entries when using -cc flag 2023-05-01 00:28:15 +02:00
speedie 3a6e22ca3d sort desktop entries 2023-04-29 11:52:08 +02:00
speedie 5107136b64 dmenu compat for description 2023-04-29 02:25:17 +02:00
speedie c227e6d374 fix a minor issue 2023-04-28 19:43:20 +02:00
speedie 07cef2c494 add description printing to spmenu_run 2023-04-28 19:40:28 +02:00
speedie bb0d810b07 pass the full path 2023-04-28 18:43:28 +02:00
speedie ca7bb88b45 add option to clear cache 2023-04-28 18:33:56 +02:00
speedie e9edd9bee0 update docs 2023-04-28 18:24:27 +02:00
speedie cfef4e073e another fix 2023-04-28 18:11:55 +02:00
speedie 24ea28eb13 fix '#' prefix 2023-04-28 18:07:58 +02:00
speedie 0c637489dc array -> string, avoids a shellcheck warning 2023-04-27 08:15:16 +02:00
speedie 9864adb93f minor fix 2023-04-27 08:00:38 +02:00
speedie 87fdfe9659 move uniq 2023-04-26 21:18:43 +02:00
speedie 91e303fb80 significant codebase improvements 2023-04-26 21:17:01 +02:00
speedie 4d19d95263 fix a huge bug 2023-04-26 21:11:07 +02:00
speedie a9c9b57b05 disable support for macOS in spmenu_run 2023-04-26 10:07:01 +02:00