Squashed commit of the following:
commit 92e730076d461622dc81e44e87ec456317514904
Author: Dave Davenport <qball@gmpclient.org>
Date: Sun Jun 11 18:17:12 2023 +0200
[Doc] Add regex filtering to recursivebrowser.
commit ee80c8487f9765b1e6e8ab8219a6baea089cf5af
Author: Dave Davenport <qball@gmpclient.org>
Date: Sun Jun 11 17:49:29 2023 +0200
[recursivebrowser] Update manpage.
commit a24b68f52362aaf1461935c2340e3bf5e31da59d
Author: Dave Davenport <qball@gmpclient.org>
Date: Sun Jun 11 17:37:56 2023 +0200
[Mode] Add some extra validating of the mode selected to complete.
commit cf497e8685e806521c0f61922827687adce268c9
Author: Dave Davenport <qball@gmpclient.org>
Date: Sun Jun 4 15:12:31 2023 +0200
[Recursive browser] Make completer selectable.
commit 722f07a803c28a406d8a610f31a24b3f7247b9ba
Author: Dave Davenport <qball@gmpclient.org>
Date: Sun Jun 4 14:36:14 2023 +0200
Add methods for completer to modes.
commit 7972420c30275514751802d1ed517a45bbd83da1
Author: Qball Cow <qball@blame.services>
Date: Thu Jun 1 21:56:06 2023 +0200
Prepare updates for new APIs.
commit dd3035a1a61f8196d394f6867701a0e1b3af30ac
Author: Dave Davenport <qball@gmpclient.org>
Date: Wed May 10 19:24:48 2023 +0200
[RB] Fix regex and cleanups
commit 4d2941caf32dfb946aee54c467c1319c7a89804a
Author: Dave Davenport <qball@blame.services>
Date: Wed May 10 18:09:54 2023 +0200
[RB] Add (unfinished regex test)
commit 848277001fc8cf9afc538067f2afa24a174f8c7f
Author: Dave Davenport <qball@blame.services>
Date: Wed May 10 17:49:16 2023 +0200
[RB] Pull the scanning into a separate thread.
commit f369a7f63f618bbcad10c18e73f7e2b117c515f1
Author: Dave Davenport <qball@gmpclient.org>
Date: Wed May 3 18:35:15 2023 +0200
[Recursive File Browser] First test version.
Configuration looks like:
```css
configuration {
timeout {
delay: 15;
action: "kb-cancel";
}
}
```
Both delay and action need to be set.
Action can be any of the keybindings as shown in `rofi -show keys`.
(-timeout-delay 15 -timeout-action "kb-cancel" on commandline.).
Fixes: #1066
* combi: Reuse own get_num_entries in self-init
* combi_mode_parse_switchers: Remove duplicated mode pointer
* combi_mode_parse_switchers: Regroup mode search lines
* combi_mode_result: Simplify switcher search quit
* mode_result: Check for mode switch actions before hook
These are over-mode actions, which should not be handled
in mode hooks at all.
* tests: initialize char* in mode test
Currently, test_mode_result relies on undefined behavior.
The test calls mode_result, which checks whether the pointer is NULL.
However, the pointer was never initialized, so it may or may not be
NULL, depending on the compiler.
This caused a test failure on ppc64 and Fedora 28, apparently because in
this setting, gcc sets uninitialized pointers to NULL.
By initializing the pointer to the empty string, the behavior is defined
and the test passes on all architectures.
* mode: fix input pointer check in mode_result
Do not check whether *input (i.e., the char* the input points to) is
NULL, as this is valid. Instead, check whether the input itself is NULL.
* tests: make char* input arg in test_mode_result modifiable
The function mode_result expects a modifiable char*, initialize the
argument properly so it can be modified.