Dave Davenport
1f641135e2
Extra checks when parsing file.
2016-08-29 08:55:28 +02:00
Dave Davenport
58eaa81520
Name field in desktop file is required.
2016-08-29 08:23:55 +02:00
Dave Davenport
e4cab560f4
First hack at fixing Desktop file parser.
2016-08-28 22:43:42 +02:00
Dave Davenport
20e55e1e4e
Add fuzzy matching, make a -matching option.
...
* -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-25 21:17:58 +02:00
Dave Davenport
ef3c773097
Constness.
2016-08-24 00:39:56 +02:00
Dave Davenport
6495d8e8df
Add -input to -h output
2016-08-05 07:45:39 +02:00
Dave Davenport
eb0bfc60c4
Indicate what set an option, comment default options in dump-xresources.
2016-08-04 20:24:01 +02:00
Dave Davenport
ce822a3bbf
Fix memory leak run dialog when skipping.
2016-08-02 18:37:14 +02:00
Dave Davenport
604b4cb619
Fix memory leak, re-indent
2016-07-31 23:28:31 +02:00
Dave Davenport
4be25abad7
Fix some doxygen warnings.
2016-07-29 08:32:34 +02:00
Dave Davenport
fe230eb95c
Fix #432 , Control+k removes till eol.
2016-07-25 11:32:30 +02:00
Dave Davenport
22c8760e32
First try at fixing #430 . Needs testin.
2016-07-22 09:44:12 +02:00
Dave Davenport
602eb63557
Add `-multi-select
flag to dmenu.
...
* Changes default behaviour.
2016-07-18 23:58:08 +02:00
Dave Davenport
59635919ea
Add selection indicator to dmenu mode.
2016-07-18 23:49:26 +02:00
Dave Davenport
85d95c4f8f
Fix memory leak
2016-07-16 22:36:20 +02:00
Dave Davenport
e9c3b930bc
[Window] Chomp result
...
Fixes #426
2016-07-16 22:25:00 +02:00
Dave Davenport
b47e9c3846
Allow for more advanced window 'line' formatting
2016-07-12 10:44:43 +02:00
Dave Davenport
342192b4ed
Remove work-around for older i3 version (< 4.9)
...
- I3 got ewhm support in Feb. 2015.
2016-07-06 08:34:47 +02:00
Dave Davenport
7c9f5e01fd
Fix tests and crash.
2016-06-28 23:34:07 +02:00
Dave Davenport
9f25a975ae
Fix windowcd command and allow custom Window string format
2016-06-28 23:07:48 +02:00
Dave Davenport
6e2d0b6319
Add selection counter in dmenu mode
2016-06-26 15:48:12 +02:00
Dave Davenport
c87e91b6d9
Make select behave more Rasi-ish
2016-06-26 11:00:23 +02:00
Dave Davenport
40f95ae81f
Make bit functions static
2016-06-25 17:40:24 +02:00
Dave Davenport
ce645d78b3
Multi-select with unselect
2016-06-25 17:36:35 +02:00
Dave Davenport
77a0800ccf
Copy memory instead of mixing malloc and g_malloc'ed memories (and freeing them all with g_free)
2016-06-21 22:40:42 +02:00
Dave Davenport
1f4af41e96
Split Custom and Alternate command.
2016-06-19 18:02:49 +02:00
Dave Davenport
7a2435a23b
Indent don't use partial match.
2016-06-16 22:23:55 +02:00
Dave Davenport
0b84d63959
Merge remote-tracking branch 'origin/master' into highlight_match
2016-06-07 09:02:03 +02:00
Dave Davenport
9ff7a26c7e
Some indenting fixes
2016-06-05 20:41:10 +02:00
Dave Davenport
3f31620a3e
Wip/drun subdirs ( #416 )
...
* drun: Walk subdirectories too
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
* Remove goto, make it work for Filesystems that do not support reporting file type.
* Fix using filename before creating it.
* Run indenter over drun file.
* Fix stupid typo
2016-06-05 19:01:38 +02:00
Dave Davenport
72d6c20876
Merge remote-tracking branch 'origin/master' into highlight_match
2016-06-01 19:04:52 +02:00
Dave Davenport
01ce909c97
Update some headers.
2016-06-01 07:34:41 +02:00
Dave Davenport
8616b32310
Remove initialization
2016-05-30 21:10:10 +02:00
Dave Davenport
d62cc8a4ba
First throw at issue #403 , show wm name.
2016-05-30 18:35:22 +02:00
Dave Davenport
1b5bcaa9f4
Issue #411 : Show list of Keyboard bindings with rofi, from rofi.
2016-05-30 10:25:58 +02:00
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
Quentin Glidic
db4f087487
window: Make custom action run a command on the window
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-12 11:31:12 +02:00
Quentin Glidic
3bd41b9a41
window: Kill the window on delete-entry
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-12 11:30:34 +02:00
Dave Davenport
8e05106c87
Add option to view background image instead of screenshot in fake transparency. Issue #390
2016-05-06 12:40:55 +02:00
Dimitar Yordanov
74d1b234d9
When switching windows also switch the desktop
...
If the window we switch to is not on the same desktop, first switch to
the desktop.
2016-04-28 22:45:01 +02:00
Dave Davenport
1661244407
Issue: 386: Fix getting desktop number property
2016-04-26 07:52:29 +02:00
Dave Davenport
3918625804
Move teardown to the logic place again (possible with deamon mode removed)
2016-04-20 08:04:23 +02:00
Dave Davenport
26e1083812
Issue: #380 Make combi complete prepend bang
2016-04-10 20:57:12 +02:00
Dave Davenport
96cb3a8695
Remove fgets and replace by getline.
2016-04-10 14:30:13 +02:00
Dave Davenport
b63f8e2275
Move history to getline and remove magic limit.
2016-04-10 13:55:18 +02:00
Dave Davenport
a69754abff
Remove left-over printf.
2016-04-10 12:08:36 +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
541f5b1fc9
Fixes issue #370 : Move dmenu option into dmenu.
2016-04-02 10:39:02 +02:00
Dave Davenport
2127682573
Cleanup unused type specifier (dialogs).
2016-03-24 22:15:10 +01:00
Dave Davenport
3ac0c6dd7d
Quick fix.
2016-03-21 20:27:16 +01:00
Quentin Glidic
20c9abf0a2
keybindings: Merge accept-custom and accept-entry-continue
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-20 10:39:34 +01:00
Dave Davenport
c7bc850bb8
Fix reloading after deleting entry
2016-03-20 10:20:40 +01:00
Dave Davenport
d36ae81408
Fix positioning window on top of window.
2016-03-20 10:16:55 +01:00
Dave Davenport
a2869ef39d
Make clang static code analyzer happy (300+ -> 5)
2016-03-19 13:29:04 +01:00
Dave Davenport
cdd9f97072
Issue 213: Memcpy the right size for atoms
2016-03-17 22:03:19 +01:00
Dave Davenport
545c423b61
Tried to fix strlen on NULL
2016-03-12 14:00:19 +01:00
Dave Davenport
fa7ceaf580
Check for the availability of the xinerama extension.
2016-03-04 17:03:24 +01:00
Dave Davenport
f0b1998703
Cleanups (cppcheck)
2016-03-02 18:07:59 +01:00
Dave Davenport
f05f0de583
Fix #348 , give a warning when font failed to parse
2016-03-01 19:48:18 +01: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
Quentin Glidic
644556b7b6
Change Window/Atom to xcb_window_t/xcb_atom_t
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-28 12:21:26 +01:00
Dave Davenport
73a0eb3e39
Remove X11/* include headers.
2016-02-28 12:22:10 +01:00
Dave Davenport
ab57479da9
Remove Atom with xcb_atom_t.
2016-02-28 12:19:56 +01:00
Dave Davenport
91ad94aef3
Free right memory, get right window class name.
2016-02-28 11:16:54 +01:00
Dave Davenport
4cd76a6d8e
Merge remote-tracking branch 'github/master' into wip/xcb/full
2016-02-28 11:04:09 +01:00
Dave Davenport
764992e4bb
Remove more display usage
2016-02-28 00:25:53 +01:00
Dave Davenport
d813d03a5f
Convert more stuff to xcb, keyboard grab, cleanup
2016-02-28 00:09:05 +01:00
Dave Davenport
4c661c3932
Move most of window modi to xcb
2016-02-27 22:55:47 +01:00
Dave Davenport
bb2f0d8b83
Move more to xcb, window_*_ functions to xcb_ functions
2016-02-27 21:55:43 +01:00
Dave Davenport
a02cb83a98
Move more to xcb.
2016-02-27 20:45:47 +01:00
Dave Davenport
5a204829f0
Fix not updating in daemon mode
2016-02-23 23:54:35 +01:00
Dave Davenport
3b58c3a26a
Fix issue: #347 .
2016-02-23 21:14:15 +01:00
Dave Davenport
319524c7c5
Test for single mainloop
2016-02-23 21:04:24 +01:00
Dave Davenport
87546caa8f
Fix previous commit.
2016-02-23 19:34:48 +01:00
Dave Davenport
faf5c49b8c
Remove hardcoded string length in window list.
2016-02-23 19:14:21 +01:00
Quentin Glidic
2ef950eab9
WIP: Port window stuff to xcb
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:37:25 +01:00
Quentin Glidic
990914d20f
rofi: Drop daemon mode
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 12:15:03 +01:00
Dave Davenport
9121732e36
Cleanups.
2016-02-19 21:16:35 +01:00
Dave Davenport
038346b640
Cleanup + fix
2016-02-19 21:08:46 +01:00
Dave Davenport
6e3bb506de
Full mainloop madness
2016-02-19 19:50:48 +01:00
Dave Davenport
4eb3fd1da3
Test for single mainloop
2016-02-19 19:29:06 +01:00
Dave Davenport
99515f986e
Fix issue #281
...
if one entry as input and autoselect enabled return immediately
2016-02-17 08:46:22 +01:00
Dave Davenport
6217edf622
#343 Add history support to drun mode.
2016-02-16 10:40:21 +01:00
Dave Davenport
fdb4c99456
Remove normal window global.
2016-02-10 19:40:19 +01:00
Dave Davenport
2cd8888d2c
Merge remote-tracking branch 'origin/master' into glib-loop
2016-02-09 22:35:03 +01:00
Dave Davenport
289795b22a
Fix finding active desktop!
2016-02-09 21:25:29 +01:00
Dave Davenport
f7e2632624
Merge remote-tracking branch 'origin/master' into glib-loop
2016-02-09 19:55:31 +01:00
Dave Davenport
5185f1181c
Validate if input is utf-8 for dmenu, if not ignore that line
...
This should avoid crashing on invalid encoding.
2016-02-09 19:54:43 +01:00
Dave Davenport
c3f15a4e2a
Merge remote-tracking branch 'origin/master' into glib-loop
2016-02-09 07:56:45 +01:00
Dave Davenport
e7b18d3a88
Issue: #334 : Only allow markup-rows to be set on cmdline
...
This should avoid people setting this in XResrouces and breaking random dmenu scripts.
2016-02-09 07:37:48 +01:00
Dave Davenport
5a86ae5c99
Cleanups
2016-02-08 09:03:11 +01:00
Dave Davenport
c217307b43
Update!
2016-02-06 14:41:08 +01:00
Dave Davenport
adfc83f07d
Restructuring, my biggest joy.
2016-02-06 14:27:36 +01:00
Dave Davenport
312ca274fc
Split of files.
2016-02-06 13:06:58 +01:00
Dave Davenport
531f3f884a
Merge remote-tracking branch 'origin/master' into glib-loop
2016-02-04 16:25:04 +01:00
Dave Davenport
69b88caac5
Allow user to open an disabled modi.
2016-02-04 09:20:10 +01:00
Dave Davenport
b557c4df6e
Issue: #333 , Check if row is selected, don't assume selected_line is valid.
2016-02-03 09:01:13 +01:00
Dave Davenport
91780b71db
Small fix.
2016-01-27 23:39:52 +01:00
Dave Davenport
afc056ecc5
Play with dmenu black screen
2016-01-27 23:28:14 +01:00
Dave Davenport
eab4e1438f
Make dmenu use glib mainloop.
2016-01-26 08:38:07 +01:00
Dave Davenport
eadf455c8c
Let DMenu mode reuse open dialog and not restart it. handy for multi-select.
2016-01-20 18:50:33 +01:00
Dave Davenport
d0716efe12
Refactor menu function into three parts, setup, itterrate and finalize.
2016-01-20 18:24:31 +01:00
Dave Davenport
ec24e4426e
Fixing SardemFF7 Feedback: boolean, g_getenv and clear_error
2016-01-14 21:06:03 +01:00
Dave Davenport
98fdf04285
[RUN] UTF-8/locale conversion and sardem exec test.
2016-01-14 20:40:19 +01:00
Dave Davenport
121278e6d1
[DRUN] Expand path we get from Desktop file
...
* This is more 'free' then spec. but does not break anything.
Fixes : #317
2016-01-14 17:42:07 +01:00
Dave Davenport
cc682f107b
Update display value for modi (testing)
2016-01-12 22:18:10 +01:00
Dave Davenport
13810d5911
Add experimental 'password' mode. ( #315 )
2016-01-10 13:10:44 +01:00
Dave Davenport
c6a9de8c4a
Use snprintf instead of sprintf
2016-01-09 19:25:03 +01:00
Dave Davenport
d7dab65e5b
Making widget class, moving stuff around
2016-01-09 16:22:09 +01:00
Dave Davenport
dc8fb4f202
Start making SardemFF happy. Use g_return_if_fail
2016-01-08 09:16:59 +01:00
Dave Davenport
fa51aeb484
More splitting and abstracting.
2016-01-07 21:27:20 +01:00
Dave Davenport
e8daff0f6a
First cleanup steps.
2016-01-07 19:47:37 +01:00
Dave Davenport
51b5511017
More doxygen sugar.
2016-01-07 16:01:56 +01:00
Dave Davenport
7f621a4a91
Replace strdup_printf with build_filename
2016-01-06 12:42:53 +01:00
Dave Davenport
c512f81c9c
Update comments, replace printf/build_filename
2016-01-06 12:40:41 +01:00
Dave Davenport
81ea5fd8c6
Update documentation for ssh dialog
2016-01-05 21:19:30 +01:00
Dave Davenport
329f31bd75
Add doxygen target.
2016-01-05 19:49:13 +01:00
Dave Davenport
5a3c202423
Update copyright
2016-01-01 00:27:00 +01:00
Dave Davenport
696d0a2fa0
Fix 1 off memory leak
2015-12-23 17:03:00 +01:00
Dave Davenport
270ec0c14b
Fix out of memory bound on array
2015-12-22 20:57:57 +01:00
Dave Davenport
8b82787df6
Fix possible issue with uninitialized data
2015-12-21 23:14:56 +01:00
Dave Davenport
04eebf964a
Indent
2015-12-14 20:28:25 +01:00
Dave Davenport
541c653913
Improve matching for DesktopFile run mode
2015-12-14 20:25:36 +01:00
Dave Davenport
08d6d6b685
Fix return code multi-select
2015-12-12 20:54:59 +01:00
Dave Davenport
eaa553bfd5
Indent.
2015-12-03 22:48:30 +01:00
Dave Davenport
697abdfdfc
[DMenu] Add option to read from file instead of stdin.
2015-12-03 18:22:13 +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
Qball Cow
ff52140697
Check for nil before updating.
2015-12-01 13:17:59 +01:00
Dave Davenport
544229d975
Issue #287 mark selected rows.
2015-11-30 14:05:39 +01:00
Dave Davenport
bf60d9c01c
Fix return code
2015-11-28 11:59:11 +01:00
Dave Davenport
864a00b9fd
Add option to dump filtered list to stdout.
...
uses format option and filter `-dump`.
2015-11-27 13:14:46 +01:00
Dave Davenport
2da1207b7d
Fix issue #271 expand path.
2015-11-27 13:01:25 +01:00
Dave Davenport
3c411433b4
Big rename from Switcher to Mode internal, to match with user terminology
2015-11-25 09:26:38 +01:00
Dave Davenport
627643281d
Fix ; in macro.
2015-11-24 22:53:40 +01:00
Dave Davenport
d1591273e7
Cleanups, rename and document.
2015-11-24 22:02:30 +01:00
Dave Davenport
00a555b685
Create more consistent ordering of arguments
2015-11-24 14:22:35 +01:00
Dave Davenport
6978b146f0
[Combi] only textual map, when not using glob/regex mode.
2015-11-24 14:14:55 +01:00
Dave Davenport
fa2bcd778c
Fix for complete issue #273 .
...
- Add complete handler.
2015-11-24 13:59:35 +01:00
Dave Davenport
cbba58914f
Some cleanups and re-ordering of parameters to be consistent.
2015-11-23 22:15:27 +01:00
Dave Davenport
ad778b7dc1
Const making.
2015-11-23 22:15:27 +01:00
Qball Cow
84daf5fd6c
Fix issue #285 , clear memory on realloc
2015-11-23 17:11:12 +01:00
Dave Davenport
b974b10c96
[DRun] Skip entries that have NoDisplay set.
...
Closes issue #283
2015-11-23 09:47:29 +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
238a34162a
Try to fix crasher on mixing glib free and free.
2015-11-15 13:12:43 +01:00
Dave Davenport
2eaffceada
Fix printing.
2015-11-14 19:59:56 +01:00