Dave Davenport
bc2b532a51
Add dmenu options to -h
2015-10-21 18:58:01 +02:00
Dave Davenport
64cb4c781c
Fix some compiler warnings
2015-10-19 09:23:06 +02:00
QC
1b425c7bd0
Fix crash on deleting entries in ssh/run.
...
Fix bang for custom run.
2015-10-18 22:12:06 +02:00
Dave Davenport
4975704a05
Fix #244 Do not catch sigchld, let glib handle this internally
...
- TODO fix man page viewing.
2015-10-12 08:12:25 +02:00
QC
56e023dcee
Remove unneeded check.
2015-10-11 14:13:08 +02:00
Tom Hinton
3ba2da9cae
Fix mistakes from copy paste
2015-10-01 18:18:01 +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
Qball Cow
9b67838b56
Only cache successful run. (Thanks to Koppa nd daemoni)
2015-09-29 17:28:21 +02:00
Dave Davenport
ca8ff80a5c
Add bang support to combi
2015-09-28 18:19:10 +02:00
QC
e8328beb2d
Fix small leak
2015-09-26 21:06:36 +02:00
QC
8083753700
Fix #177 Add known host parsing.
2015-09-20 16:58:34 +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
a5c1eb1f1b
Allow window mode to be disabled
2015-09-14 08:57:10 +02:00
Dave Davenport
d2aad68bce
Keep the line matched (if possible) when filtering.
2015-09-08 22:23:03 +02:00
Dave Davenport
13203c9de7
Refactor to make dmenu use Switcher, and make menu func use this.
2015-09-08 21:41:54 +02:00
Dave Davenport
ae26c13daf
Allow switchers to run multiple times.
2015-09-07 19:10:44 +02:00
Dave Davenport
092a2c5037
Issue: #224 test version window current desktop
...
run: rofi -show windowcd -modi windowcd,window
Using ctrl-tab you can switch between two modes (all windows, or just current desktop).
2015-09-07 17:41:48 +02:00
Dave Davenport
2c45c02c7f
Small cleanup.
2015-09-03 08:20:08 +02:00
Dave Davenport
29d0c109cb
Add WINDOW_TYPE_DESKTOP to ignore list.
...
Issue: #215
2015-08-31 08:00:23 +02:00
Dave Davenport
3c91c8d6e0
Issue: #213 hide windows marked as type DOCK
...
Removes i3 hack.
2015-08-27 21:09:12 +02:00
Dave Davenport
d9a9d2489a
Add separator color and style option.
2015-08-26 18:11:53 +02:00
Thomas Adam
d676232846
NET_WM_DESKTOP: don't assume desktop zero is invalid
...
When checking the client's _NET_WM_DESKTOP state, if a client has a desktop
set, allow for desktop zero being valid; no need to add one to the result.
The specification allows for desktop zero.
2015-08-24 20:08:25 +02:00
QC
c170eae8c8
Issue: #207 add generic -filter
mode.
2015-08-20 21:42:53 +02:00
Dave Davenport
1ca7141621
Add quick solution for #202 , expose line-margin setting.
2015-08-04 09:42:14 +02:00
QC
1590151c46
-row -t -selected-row
2015-08-02 21:25:02 +02:00
QC
dbf992d756
Fix -l as alias for -lines (in dmenu mode) rename -l to -row
2015-08-02 21:24:07 +02:00
QC
8ca3c276c9
Change -i
mode to match dmenu. Bug #200
2015-08-02 16:44:03 +02:00
QC
c97d2979e5
Bug #200 , add '-b' method.
2015-08-02 15:50:06 +02:00
Dave Davenport
69c75971f3
Print error to stderr when fclose fails.
2015-07-31 10:21:32 +02:00
Dave Davenport
f8ed184415
Fix for #199 , properly reset pointer to NULL after free'ing
2015-07-30 18:18:37 +02:00
QC
979a63d242
Fix not clearing of pointer after free-ing it.
2015-07-27 23:24:38 +02:00
Dave Davenport
fa5c36835d
Allow escape to quit in no-custom mode
2015-07-23 18:19:20 +02:00
Dave Davenport
b3bc620211
Fix window matching.
2015-07-06 12:30:15 +02:00
QC
f88cfacfde
Replace all qsorts.
2015-07-05 09:47:55 +02:00
Dave Davenport
98b8e583cb
Make fuzzy matching available everywhere: #133 (-fuzzy)
2015-07-01 09:12:22 +02:00
Dave Davenport
c7ed92e40c
Use tokenmatch in window_match.
2015-07-01 09:02:25 +02:00
QC
aaf9e1e345
Free in right order
2015-06-30 21:18:45 +02:00
Dave Davenport
30743d1789
Move fuzzy_token_match to where it can be reused.
2015-06-28 13:53:37 +02:00
QC
67089677b5
Fix naming
2015-06-27 22:38:06 +02:00
Dave Davenport
9977d7ef69
Fix fuzzy match to continue at next character. #133
2015-06-25 02:54:00 +02:00
QC
bcbb64f615
Don't do unneeded compares
2015-06-24 21:28:13 +02:00
QC
db1331ed66
Test implementation for #133 .
2015-06-23 21:22:38 +02:00
QC
ce73f468ca
Possible fix for #179
2015-06-20 15:11:30 +02:00
Dave Davenport
6c9a493b56
[SSH] Ignore comments in the Host: line.
...
Fixes #178
2015-06-14 14:37:53 +02:00
QC
bd9f4ebf07
More dmenu fixes (shift -enter on custom)
2015-06-11 21:20:09 +02:00
QC
a811011a1d
Fix dmenu mode.
2015-06-11 21:07:25 +02:00
QC
d11c61cef1
Fixes #176 add mode that user expects.
2015-06-11 20:38:48 +02:00