Commit Graph

59 Commits

Author SHA1 Message Date
Scoopta
0d1836649e Added display_generic option to drun 2020-05-15 17:20:56 -07:00
Scoopta
29aeffd8c1 Cleaned up includes, they were a bit of a mess 2020-03-25 23:05:46 -07:00
Scoopta
f61ec70797 Moved code to get $XDG_DATA_DIRS and $XDG_DATA_HOME to separate functions 2020-03-24 18:54:44 -07:00
Scoopta
efca41d41a $XDG_DATA_HOME/applications now gets priority over cache 2020-03-24 18:37:23 -07:00
Scoopta
c56be00336 drun: Removed cached map 2020-03-24 14:50:28 -07:00
Scoopta
7cdc682a6d Added support for using \t as a separator in dmenu mode 2020-03-07 21:12:14 -08:00
Scoopta
8796993fb6 Modes are no longer loaded on their own thread. It's not really needed, breaks drun mode with images, and is probably confusing for 3rd-party mode developers. 2020-03-07 19:55:30 -08:00
Scoopta
ab974be7ef Using drun-print_command=true with a desktop file action will now print a warning to stderr while printing the main action's commandline 2020-02-25 18:59:16 -08:00
Scoopta
937ba8e411 Added drun-print_command 2020-02-25 16:04:40 -08:00
Scoopta
d69e4b416f Added dmenu-print_line_num 2020-02-11 10:44:50 -08:00
Scoopta
2f4f53fa44 Added support for using a null byte as the dmenu separator 2020-01-31 22:37:59 -08:00
Scoopta
7c511264df Good C practices, one day I'll remember to do this all the time 2020-01-31 13:29:00 -08:00
Matt Coffin
3693e89739 run: Fix segfault on error accessing directory in path
v2: styling changes
v3: Fix email formatting
v4: correct inverted pointer check
2020-01-28 20:17:42 -07:00
Scoopta
2de5c8fa48 symlinked folders are excluded from $PATH if the actual folder is included 2020-01-28 17:46:16 -08:00
Scoopta
cee642d409 Moved the gdesktopappinfo.h include to drun 2020-01-28 13:56:43 -08:00
Scoopta
e00b1bde67 Setting dmenu-separator=\\n will now correctly set it to \n 2020-01-26 00:22:23 -08:00
Scoopta
cac4574534 Added the dmenu-separator config option 2020-01-25 14:29:52 -08:00
Scoopta
d57ae47057 Fixed run-always_parse_args=true breaking args caching 2020-01-24 20:00:56 -08:00
Scoopta
84262b19f4 Modes must explicitly declare support for execution without a matching entry 2020-01-23 20:26:33 -08:00
Scoopta
153c3eac3e Added support for caching args 2020-01-23 19:59:43 -08:00
Scoopta
05490241a9 Modes no longer have to pass a name that matches the name they were loaded with, this was just absurdly bad design and I don't know how I came up with it in the first place 2020-01-20 20:09:40 -08:00
Scoopta
22c32c0f2c The error is now freed 2020-01-19 14:57:53 -08:00
Scoopta
a84b2cd980 drun no longer ignores the error when launching 2020-01-19 14:55:43 -08:00
Scoopta
e5300b2995 Changed the widget insertion system, this should hopefully increase performance and be an all around better system 2020-01-16 16:35:51 -08:00
Scoopta
db8bf96411 Desktop file ids are now used instead of names and paths, a duplication issue caused by caching was also fixed 2020-01-11 16:03:02 -08:00
Scoopta
35f537cd15 Cleaned up formatting on that concat 2020-01-07 18:29:26 -08:00
Scoopta
3773a672a2 Added support for searching generic names in drun 2020-01-07 18:10:48 -08:00
Scoopta
43e560788a Fixed keyword searching in drun 2020-01-07 18:08:55 -08:00
Scoopta
d07622de3e Copyright update 2020-01-06 16:42:52 -08:00
Scoopta
a85c516926 Good C practices 2020-01-06 00:39:47 -08:00
Scoopta
e037fa7b4e Added cache invalidation 2020-01-02 14:36:54 -08:00
Scoopta
8594fc52a3 Parsing image escapes and markup will only occur if their respective options are enabled 2019-12-16 19:38:12 -08:00
Scoopta
c248461260 Added parse_action option to dmenu 2019-12-16 19:15:16 -08:00
Scoopta
84b26abf78 Oops, that was for debugging 2019-12-02 12:28:57 -08:00
Scoopta
b8b63c416c Fixed a memory leak 2019-12-01 23:17:23 -08:00
Scoopta
5e5729e7fc Added the show_all config option to run 2019-12-01 23:02:49 -08:00
Scoopta
9f16ca0a06 Added the always_parse_args config option to run 2019-12-01 22:59:04 -08:00
Apiote
f2f870f367 set line NULL in dmenu mode
Previously line was uninitialised which resulted in getline ending in
segmentation fault.
2019-11-25 13:58:16 +01:00
Ian Brunelli
a30d5c09e5 Add a fallback icon to drun entries 2019-11-24 08:46:14 -03:00
Scoopta
f6c0d9d832 Entries with NoDisplay set now still get treated as entries that exist for ID checks 2019-11-23 14:46:23 -08:00
Scoopta
49295d8b13 run mode now searches by executable name only 2019-11-21 21:23:45 -08:00
Scoopta
c8d052be6a I have no idea why the search text was in the format of name/full/path when full/path already contains the name 2019-11-21 00:09:17 -08:00
Scoopta
a15390c685 Renamed the flag when holding shift from run_in_term to mod_shift. This makes more sense as not all modes have a need for a run in term option 2019-11-18 22:16:06 -08:00
Scoopta
750cdd0167 Holding ctrl when pressing enter will now parse args in run mode 2019-11-18 22:13:14 -08:00
Scoopta
7573eecb02 Cache write is now controlled by the mode, this allows for greater flexibility with caching 2019-11-16 14:52:20 -08:00
Scoopta
b710a3aee5 Added support for alternative desktop actions 2019-11-13 01:17:45 -08:00
Scoopta
9bc345beae drun now searchs by category 2019-11-12 20:41:01 -08:00
Paul Annesley
18be45f69e modes/run: don't segfault on invalid cache lines
Cache lines without a forward-slash resulted in a segfault attempting strlen(NULL + 1), the NULL coming from strrchr().

This patch handles the NULL and displays that cache line varbatim, and without modifying its search_text.
2019-11-08 23:51:05 +11:00
Scoopta
07cb2a65a7 Removed utils_split(), strtok_r() is now used instead 2019-11-04 22:41:53 -08:00
Scoopta
2ab1c53b4d Added support for combi style functionality 2019-11-04 20:56:40 -08:00