summaryrefslogtreecommitdiffstats
path: root/include/helper.h
AgeCommit message (Collapse)Author
2017-09-29Implement support for specifying negated matchDave Davenport
- Prepending - inverts the matching result. - Fix logic window/drun browser. - Breaks API as argument token_match callback changed. - Update tests. Fixes: #665
2017-09-27Add more configuration options to script mode, getting closer to dmenu.Dave Davenport
- urgent - active - prompt - message
2017-06-11Fix paramDave Davenport
2017-06-09Make function declaration match function prototype.Dave Davenport
- Extra NULL check.
2017-06-03Fix header file.Dave Davenport
2017-06-02helper: Add API to support startup notificationQuentin Glidic
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02helper: Add execute helperQuentin Glidic
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01helper: Move cairo_image_surface_create_from_svg to helper.cQuentin Glidic
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30window: Add icons support (quick and dirty)Dave Davenport
2017-05-15[ThemeParser] Add CSS color names supportDave Davenport
* [ThemeParser] Add css color names * Add CSS color support (WIP) * Parse color names in the lexer. * Add test for css color names * Indent and fix ordering
2017-05-01[Test,Helper] Add test for utf8_strncmp and fuzzy evaluate.Dave Davenport
2017-04-23Cleanups, fix arguments mismatchDave Davenport
2017-04-15Fix licenses headersQuentin Glidic
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-03-04Indent code.Dave Davenport
2017-02-17Install some headers for use in pluginsDave Davenport
2017-02-17Rename token_match to helper_token_match.Dave Davenport
2017-02-03Don't apply fonts that don't result in family name or have size 0.Dave Davenport
Issue: 554
2017-01-26Combi mode: Bang mode prefixes with len>1 (#542)Moritz Maxeiner
* Combi mode: Bang mode prefixes with len>1 This is required to match on modes that share a prefix. Let 'power' and 'pass' be such modes for the following explanation: Previously, only the first character of after the bang was compared, so '!p' would always be matched to the 'pass' mode and there was no way to limit selection in combi mode to the 'power' mode. Now we can use prefixes of arbitrary length following the bang such as '!po' (matches 'power' mode), or '!pa' (matches 'pass' mode). Prefixes of length 1 are unchanged compared to the previous behaviour, i.e. '!p' will still match 'pass'. * Combi-mode prefixes should be utf-8 aware
2017-01-21Add auto-detect option to DPI setting.Dave Davenport
2017-01-11Split sorting option. one for sorting. One to force levenshtein.Dave Davenport
2017-01-11Move fzf matcher into helperDave Davenport
2017-01-09Allow matching highlighting to be set. Fixes #522Dave Davenport
2017-01-08Add some better error message. Allow -theme-str option to override part of themeDave Davenport
2016-11-15Update code documentationDave Davenport
2016-10-14Document more headers.Dave Davenport
2016-10-14Add more documentation.Dave Davenport
Current state: 61% coverage.
2016-08-25Add fuzzy matching, make a -matching option.Dave Davenport
* -matching *method* option instead of -regex, -glob, -fuzzy. * Re-add fuzzy matching pattern. * When there are substrings in regex, only highlight those matches. Fixes: #447
2016-08-24Constness.Dave Davenport
2016-07-29Fix some doxygen warnings.Dave Davenport
2016-06-21Copy memory instead of mixing malloc and g_malloc'ed memories (and freeing ↵Dave Davenport
them all with g_free)
2016-05-26Fix combi mode 'bang' behaviour, improve levenshtein with combiDave Davenport
2016-05-22Remove the is_ascii mess.Dave Davenport
2016-05-21Go Regex GoDave Davenport
2016-05-10First try at highlighting match (regex only)Dave Davenport
2016-04-10Issue: #381: Try to handle X11 input and UTF-8 better.Dave Davenport
In window_get_text_prop do conversion when input is of type STRING. (latin1) to utf8. Dmenu: don't skip invalid lines, but try to display as much as possible. Window mode: Double check all input from X.
2016-03-01Pack magic externs into a xcb_stuff.Dave Davenport
2016-02-28Run indenterDave Davenport
2016-02-27Move most of window modi to xcbDave Davenport
2016-02-19Full mainloop madnessDave Davenport
2016-01-07Add some doxygen sugar.Dave Davenport
2016-01-04Make levenshtein sort utf8 aware and obey case sensitive setting.Dave Davenport
- Add tests. - Use Glibs unichar for comparison.
2015-12-08Add test, remove whitespaceDave Davenport
2015-12-02Fix func. def in wrong header file.Dave Davenport
2015-12-01Remove custom code, replace by glib, fix fuzzy matching for unicode.Dave Davenport
- Also fixes char endianess issues.
2015-11-21Start at fixing Issue 273, this might break some things.Dave Davenport
* Only use get_display_data for displaying. (Except the select complete (ctrl-space), this needs fixing). * Fix possible race condition in parallelization. * Fix small bug in case-sensitive handling. (beware for collision in keybinding) * Keep less lists around.
2015-11-17Add experimental regex supportDave Davenport
2015-10-18Try todo some validation of monitor size/padding in config sanity check.QC
2015-10-01Make normal filtering of plain ASCII lines fasterTom Hinton
This patch adds a field lines_not_ascii to the MenuState structure. The nth entry is 0 unless the nth member of MenuState.lines has a non-ascii codepoint in it. All comparison functions (menu_match_cb type) take an additional argument to tell them if the thing they are matching is not_ascii. They can use this to determine whether to collate and case-fold the input (for non-ascii strings), or whether to use strstr/strcasestr (for ascii strings). The change is not currently implemented for flex matching, due to my laziness. However, it should be a simple enough matter to add. For my large input of 400,000 lines, this reduces typical filtering time to about ten microseconds from about 2 seconds.
2015-10-01Make dmenu reading very marginally fasterTom Hinton
A slight reduction in use of realloc and avoidance of 3 or 4 strlens for a string we know the length of
2015-09-19Adjust new editor widthQC