Tom Hinton
0a953a03b4
Make fuzzy matching fast and unicode-happy
2015-10-01 13:45:23 +01: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
e3115be103
Fix test. remove debug output
2015-09-30 20:10:52 +02:00
Dave Davenport
0e60aaf235
#237 update manpage
2015-09-30 09:10:33 +02:00
Dave Davenport
2d167e21d7
Fix #237 add none style to separator style
2015-09-30 09:09:34 +02:00
Dave Davenport
aea2458575
Don't set context to get context.
2015-09-30 08:59:52 +02:00
Qball Cow
9b67838b56
Only cache successful run. (Thanks to Koppa nd daemoni)
2015-09-29 17:28:21 +02:00
QC
29360b20aa
Parse name in textbox.
2015-09-28 21:41:58 +02:00
Dave Davenport
ca8ff80a5c
Add bang support to combi
2015-09-28 18:19:10 +02:00
Dave Davenport
1a7d77db6e
Make row colors paint over background instead of replace.
2015-09-28 08:24:01 +02:00
QC
536fd9822c
re-order
2015-09-27 13:26:18 +02:00
QC
838c838d31
Try to fix #234
2015-09-27 12:57:54 +02:00
QC
6061e046de
Get color type.
2015-09-27 11:46:19 +02:00
QC
eba2170241
hmm
2015-09-26 21:17:30 +02:00
QC
4b4004fce0
Remove unused.
2015-09-26 21:09:18 +02:00
QC
e8328beb2d
Fix small leak
2015-09-26 21:06:36 +02:00
QC
6e41457250
Update travis.
2015-09-26 20:38:59 +02:00
QC
8f1f03e6d2
Use cairo to do drawing.
2015-09-26 20:34:34 +02:00
QC
29e81fdb07
Make wrap an extra option for textbox
2015-09-23 20:44:24 +02:00
Dave Davenport
5cc695e186
Add markup flag for dmenu.
2015-09-22 22:23:52 +02:00
QC
023bb23bcf
Support \0
2015-09-20 20:05:04 +02:00
QC
3edd66ad6b
Update lazy limit filter
2015-09-20 18:44:24 +02:00
QC
8083753700
Fix #177 Add known host parsing.
2015-09-20 16:58:34 +02:00
QC
fc2d65df0c
Playing with atom
2015-09-20 11:45:28 +02:00
QC
108c16e0d4
Default disable levenshtein
2015-09-20 10:32:49 +02:00
QC
ac99011535
Re-order
2015-09-19 21:32:03 +02:00
QC
31fe5759b8
More line fixing.
2015-09-19 21:00:06 +02:00
QC
b18d68eff2
Adjust new editor width
2015-09-19 12:57:48 +02:00
QC
442e235c24
Some cleanups, tweak uncrustify.
2015-09-19 12:21:30 +02:00
Dave Davenport
4c970fe4da
Properly resize content when window is resized.
2015-09-17 17:32:51 +02:00
QC
558bb38630
Fix normal mode keyboard grab.
2015-09-16 21:01:40 +02:00
QC
176fd15de1
test travis
2015-09-16 16:14:14 +02:00
Dave Davenport
bd4dae3fcd
Add manpage for rofi-sensible-browser
...
Fixes : #230
2015-09-15 07:54:48 +02:00
QC
530044890f
Update travis file.
2015-09-14 20:41:03 +02:00
Dave Davenport
e53705de11
Fix scrolling on edges
2015-09-14 18:19:20 +02:00
Dave Davenport
ae043d5246
Allow dragging scrollbar.
2015-09-14 18:14:01 +02:00
Dave Davenport
6a8a367cbd
Disable i3 support when window mode disabled.
2015-09-14 17:51:59 +02:00
Dave Davenport
a645da701f
Fix comment.
2015-09-14 09:01:05 +02:00
Dave Davenport
a5c1eb1f1b
Allow window mode to be disabled
2015-09-14 08:57:10 +02:00
QC
30c4ad1169
Update Changelog
2015-09-13 17:50:23 +02:00
QC
3374e1be9a
Add support for startup-notification
2015-09-13 17:29:50 +02:00
QC
6b632cadbb
Remove the keep line selected as it had weird side-effects when filtering
2015-09-13 16:28:54 +02:00
Dave Davenport
f443c56487
In normal mode set normal window window type hint.
2015-09-10 19:24:23 +02:00
QC
ec1f399e32
only allow normal mode in dmenu mode.
2015-09-09 20:01:19 +02:00
QC
1a23add631
Make redraw nice
2015-09-09 12:03:29 +02:00
QC
a0b491c962
React to focus in/out event
2015-09-09 12:00:28 +02:00
QC
93d10cc7c8
Add -normal-window mode for testing.
2015-09-09 11:47:51 +02:00
QC
79b1bdf2db
Small cleanup
2015-09-08 22:58:34 +02:00
Dave Davenport
95bdd3323d
Update changelog
2015-09-08 22:24:34 +02:00