Commit Graph

38 Commits

Author SHA1 Message Date
Dave Davenport ad778b7dc1 Const making. 2015-11-23 22:15:27 +01:00
Dave Davenport 4510f65d5a textbox: advance cursor correctly for multi-char input
Thanks to eigengrau
fixes: #280
2015-11-22 20:41:45 +01:00
Dave Davenport 5bdcd47dde consts and small ensurance (though should be correct to begin with) 2015-11-22 00:33:26 +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 09ab44bf92 Fix #264 fall back to age ordered list if stacked list does not work 2015-11-10 23:52:52 +01:00
Dave Davenport 80ac118655 Put things together, making desktop menu work 2015-11-03 17:34:02 +01:00
Dave Davenport 02b99e6f95 Fix: 256 Do not accept custom entry when not applicable.
Add test to reproducet .
2015-10-31 18:04:55 +01:00
Dave Davenport f9e7bc0775 Possible fix for 256. Need test cases for these. 2015-10-31 17:31:24 +01: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
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
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 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 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
Dave Davenport f8ed184415 Fix for #199, properly reset pointer to NULL after free'ing 2015-07-30 18:18:37 +02:00
Dave Davenport b3bc620211 Fix window matching. 2015-07-06 12:30:15 +02:00
Dave Davenport c7ed92e40c Use tokenmatch in window_match. 2015-07-01 09:02:25 +02:00
Dave Davenport 8abf3335dc Remove silly test. 2015-05-12 21:59:51 +02:00
QC 9307a1668e Add -format option to dmenu. 2015-05-10 12:08:08 +02:00
QC 8d4e1ee8fa Rasi patch, allowing special keys, modifying return value.
In dmenu pressing alt-[1-9 will return the selected entry and set the return value to the
        pressed number.
2015-05-03 13:04:03 +02:00
Dave Davenport f64395e4e9 Remove unused code 2015-04-15 22:41:50 +02:00
QC a38ddb3b06 Fix space. 2015-04-14 22:12:21 +02:00
QC c9707b4c1b Leave out unmap hack for now. 2015-04-05 14:52:01 +02:00
QC 9b415e60a0 Fix crasher with fixed-lines off and 0 visible rows 2015-04-05 13:36:39 +02:00
QC f2c4aff37c Add active/urgent color. 2015-04-03 18:40:07 +02:00
QC 957ffe5fcf Check WMHints for urgent hint 2015-04-03 18:01:03 +02:00
Dave Davenport 0ab7aa4bba Add italic support and use it for windows that demand attention (working?) 2015-04-02 22:23:17 +02:00
Dave Davenport 0d87cf12a3 Add combi viewer, where (selected) modi can be combined.
- Add active window highlighter.
2015-03-31 22:45:02 +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
Dave Davenport f52b697dd4 Remove double names. 2015-03-25 08:36:19 +01:00