Commit graph

136 commits

Author SHA1 Message Date
Dave Davenport
950a177f97 [Sidebar mode] Allow tabs to be clicked. 2014-11-10 09:19:50 +01:00
Dave Davenport
0ccd7ef6bf Try to make sidebar separator visible again. 2014-11-10 08:59:39 +01:00
QC
ab82941b5e Add sidebar modi to ROFI. 2014-11-09 13:10:24 +01:00
Dave Davenport
c549c4f72d Reload configuration in daemon mode on SIGHUP 2014-11-05 10:52:10 +01:00
Dave Davenport
b27725834c If argv[0] is dmenu, launch in dmenu mode. 2014-11-05 10:36:26 +01:00
Dave Davenport
da7ba544fc Always use right display str. 2014-11-04 16:37:05 +01:00
Dave Davenport
f56bd03a86 Add multi-line elements support. 2014-10-30 17:53:22 +01:00
QC
f728e3f03e Add separator option. 2014-10-19 19:42:02 +02:00
QC
48bc2afb3e Indent. 2014-09-27 13:20:52 +02:00
Dave Davenport
404dc35c02 Fix some constness and add comments. 2014-09-23 09:24:24 +02:00
QC
15bee1f543 Add source files and man page.
* Add bugtracker to manpage.
        * Print msg to stderr, when error dialog not available.
2014-09-06 14:57:30 +02:00
QC
10322b45a5 Fix #81, this should now work correctly.
* Put old (broken) simpleswitcher code back.
        * Fix call to window_get_prop
        * Translate address with XTranslateCoordinates.
2014-09-05 17:14:50 +02:00
QC
20dca49a22 Add ctrl-space to set selected item as input. 2014-09-03 19:40:24 +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
Dave Davenport
562ace6b78 small cleanup error_dialog, remove dummy calc 2014-08-28 10:10:16 +02:00
Dave Davenport
0795cfda8d Add display text modi. 2014-08-27 19:44:15 +02:00
Dave Davenport
e44183b406 Refactor the to-long menu() function.
* Split out larger sub-parts into separate functions.
    * Create a state structure.
    * Remove zeltak mode.
2014-08-26 20:25:00 +02:00
QC
24e7041604 Use g_spawn instead of fork+exec*
* Avoids issue with atexit being called for fork.
        * less code.
2014-08-25 20:02:48 +02:00
Dave Davenport
30051c8e80 issue: #79: Crash when enter on empty list.
* This fixes the reproducable part of the bug. (enter on empty list)
    * check selected < filtered_lines. so we do not try to dereference a null pointer.
2014-08-25 17:48:42 +02:00
Dave Davenport
04e13e3a20 Fix compile warnings. 2014-08-24 15:21:35 +02:00
QC
02ef657c41 [Click to select] Only select visible boxes. 2014-08-24 11:24:35 +02:00
QC
ba6a055683 Fix #59: Add some basic mouse support.
* TOOD: fix double click.
2014-08-23 12:47:09 +02:00
Dave Davenport
b665e85e69 Fix compile warnings with CLANG.
* signed compare with unsigned.
2014-08-22 17:29:15 +02:00
Dave Davenport
86b7571e04 Cleanup warnings.
* unused var and arguments.
2014-08-22 09:43:26 +02:00
Dave Davenport
62d4f0cdad Make rofi compile happily under clang.
* Set features in configure.ac
    * use config.h file, instead of hardcoded _GNU_SOURCE
      in each c file.
    * Fix mix up unsigned/signed.
2014-08-22 09:27:45 +02:00
Dave Davenport
63e5f4e940 Small cleanup and fixes.
* Use g_strfreev
    * Use g_ascii*strto(u)ll
2014-08-21 19:14:01 +02:00
QC
9af1d490a6 Make Rasi a happy boy, add character width mode. 2014-08-11 20:21:29 +02:00
QC
1a47507f7b Remove custom strlcpy for g_strlcpy. 2014-08-09 11:49:37 +02:00
QC
0be8e7ffa9 Remove xdg as dependency, glib provides this. 2014-08-09 11:44:06 +02:00
QC
98dfbddadb Move to glib's based memory allocation functions
* replace calloc by malloc0_n
        * malloc by g_malloc
        * strdup by g_strdup
        * asprintf by g_strdup_printf
        * realloc by g_realloc
        * free loop by g_strfreev (if possible)
2014-08-09 11:40:42 +02:00
Dave Davenport
9ac8f408f4 Remove useless prefix complete code.
* it is slow (ish)
    * it is not propper utf8 matching, doing this will make it slower.
2014-08-08 17:35:39 +02:00
QC
280c3d7f7f Using Glib's utf8 functions to do string collating.
* casefold and use utf-8 collating.
        * use g_utf8_next/prev for moving cursor.
2014-08-07 21:42:16 +02:00
Dave Davenport
b196649f10 Fix #76: DMENU returns 1 on cancel.
* Pull out dmenu, separate it from normal modi.
    * Give dmenu a return value (1 on cancel)
2014-08-05 09:07:41 +02:00
QC
da69111a20 Work on bug #73 2014-08-03 21:51:31 +02:00
QC
77a0a765ae Reverting c/p behavior, misread comments. 2014-08-03 21:09:20 +02:00
QC
9bbb79a888 Remove Active mode. IT causes problems with matching and has limited use. 2014-08-03 17:21:42 +02:00
QC
8ba11b2fe3 Remove unused active font variable. 2014-08-03 17:07:28 +02:00
QC
5ddcac2514 Cleanup previous test commit. 2014-08-03 17:05:06 +02:00
QC
d02f43966e Test to see if this fixes issue from Rafi. 2014-08-03 16:44:14 +02:00
QC
0e12051783 Make insert and ctrl-v behavior the opposite.
* ctrl-v clipboard ctrl-shift-v primary
        * insert primary shift-insert clipboard.
2014-08-02 23:08:14 +02:00
QC
6a45a18a4e Pango testing. 2014-08-02 20:02:37 +02:00
QC
f87b55dde9 Fix #72: Use correct # entries. 2014-08-02 11:19:16 +02:00
QC
65903e61d0 Fix #71 2014-08-01 23:29:01 +02:00
QC
c2ccd37312 Indent file, split out opacity code. 2014-07-30 20:54:16 +02:00
QC
c11fe3d056 Remove the -loc option for -location so things are more consistent. 2014-07-24 20:38:21 +02:00
QC
b146f432a9 Second fix for positioning window 2014-07-24 20:20:30 +02:00
QC
c3708f8dce Do not try to compensate for border when getting x,y 2014-07-24 20:15:09 +02:00
QC
e7cac06c7b Ctrl-j should go down, Ctrl-k up. 2014-07-22 20:33:50 +02:00
Dave Davenport
3c28012a87 Use strtok_r not strtok. 2014-07-22 08:21:56 +02:00
QC
bd4aa3d2fa Fix #67 Allow alt-<num> to switch between modis 2014-07-21 23:19:45 +02:00