Dave Davenport
0e86050db8
Fix combi mode 'bang' behaviour, improve levenshtein with combi
2016-05-26 08:39:33 +02:00
Dave Davenport
498fadc735
Remove the is_ascii mess.
2016-05-22 17:47:34 +02:00
Dave Davenport
8091558ed8
Go Regex Go
2016-05-21 10:37:23 +02:00
Dave Davenport
c8a6b26607
First try at highlighting match (regex only)
2016-05-10 18:02:23 +02:00
Dave Davenport
e54e012500
Issue: #381 : Try to handle X11 input and UTF-8 better.
...
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-04-10 12:05:34 +02:00
Dave Davenport
7d046a1f5b
Pack magic externs into a xcb_stuff.
2016-03-01 18:11:55 +01:00
Dave Davenport
a4fd907fe8
Run indenter
2016-02-28 15:32:53 +01:00
Dave Davenport
4c661c3932
Move most of window modi to xcb
2016-02-27 22:55:47 +01:00
Dave Davenport
6e3bb506de
Full mainloop madness
2016-02-19 19:50:48 +01:00
Dave Davenport
504e27f701
Add some doxygen sugar.
2016-01-07 08:54:24 +01:00
Dave Davenport
d661a515f0
Make levenshtein sort utf8 aware and obey case sensitive setting.
...
- Add tests.
- Use Glibs unichar for comparison.
2016-01-04 17:18:49 +01:00
Dave Davenport
0ff0f15264
Add test, remove whitespace
2015-12-08 08:39:18 +01:00
Dave Davenport
e4c7fe8f1e
Fix func. def in wrong header file.
2015-12-02 17:56:25 +01:00
Dave Davenport
4b77a1728d
Remove custom code, replace by glib, fix fuzzy matching for unicode.
...
- Also fixes char endianess issues.
2015-12-01 22:09:34 +01:00
Dave Davenport
8c9b72f34e
Start at fixing Issue 273, this might break some things.
...
* 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-21 23:59:59 +01:00
Dave Davenport
aeaceb154a
Add experimental regex support
2015-11-17 16:10:14 +01:00
QC
93b6b83fb9
Try todo some validation of monitor size/padding in config sanity check.
2015-10-18 13:40:39 +02:00
Tom Hinton
af6a4b83eb
Make normal filtering of plain ASCII lines faster
...
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-01 12:16:41 +01:00
Tom Hinton
574bf2da82
Make dmenu reading very marginally faster
...
A slight reduction in use of realloc and avoidance of 3 or 4 strlens for
a string we know the length of
2015-10-01 11:41:44 +01:00
QC
b18d68eff2
Adjust new editor width
2015-09-19 12:57:48 +02:00
QC
89dcb5be1e
Remove unused function
2015-08-29 11:57:04 +02:00
Dave Davenport
8d6a78939c
Small cleanup + fail more gracefull here and there
2015-07-30 08:57:09 +02:00
Qball Cow
2bbd589f0d
Add prefix to header guard. #191
2015-07-27 10:17:12 +02:00
Dave Davenport
8104997e6f
Bug #191 rename header guard to not use reserved macro name.
2015-07-27 09:22:21 +02:00
Dave Davenport
98b8e583cb
Make fuzzy matching available everywhere: #133 (-fuzzy)
2015-07-01 09:12:22 +02:00
Dave Davenport
30743d1789
Move fuzzy_token_match to where it can be reused.
2015-06-28 13:53:37 +02:00
QC
354ccdd94d
Fix Issue #164
2015-05-16 13:58:09 +02:00
QC
9ff5a615e9
Add combi viewer.
...
Use by adding combi to the list of enabled modi.
2015-03-30 20:12:22 +02:00
QC
b21368c005
OO-ify the Switchers.
2015-03-27 20:28:53 +01:00
QC
4dd0a85fc4
Update header.
2015-03-17 20:05:37 +01:00
Dave Davenport
4fad02225e
Cleanup argc/argv lugging around.
2015-03-11 18:32:37 +01:00
Qball Cow
3b18c28792
Remove unused function.
2015-02-17 14:27:12 +01:00
Dave Davenport
a534a0f244
Rewrite of the configuration parsing, no longer duplicating options between Xrm and CMD.
...
* NEEDS TESTING.
2015-02-17 10:31:59 +01:00
Dave Davenport
63fd534ba2
Move data around, constness, etc.
2015-02-03 08:21:59 +01:00
Dave Davenport
f86cf8988b
Move stuff around. Try to reduce size rofi.c.
2015-02-03 08:00:33 +01:00
QC
b74e6b791a
Fix not grabbing keyboard, and add pid file to ensure one instance.
2015-01-31 18:23:17 +01:00
Edwin Pujols
d1ba4bd8dc
Fix #102 - Add case sensitivity.
2015-01-12 09:25:20 -04:00
Dave Davenport
a28b6df307
Add support custom command.
2015-01-05 21:53:50 +01:00
Dave Davenport
781ca03f02
Small moving to helper.
2014-12-02 09:09:20 +01:00
QC
be9bc59c34
Comment more code.
2014-11-24 20:35:28 +01:00
Dave Davenport
baec02cf1b
Comment some header files.
2014-11-24 20:22:44 +01:00
QC
66349a00dc
Small updates.
2014-11-15 16:26:55 +01:00
QC
f728e3f03e
Add separator option.
2014-10-19 19:42:02 +02:00
Dave Davenport
0462811800
Add flexible configuration for launching
...
* You can now specify links: {terminal} -e bash -e "{ssh-client} {host}"
* Add test for this code.
2014-09-03 13:07:26 +02:00