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
QC
cd4888a5cf
Fix #65 , Fix #63 Allow user to select list of modi's
...
* Add script_dialog, so user can add dialogs using a script.
* Add a way to disable modi's
* Add -show <modi> option.
2014-07-21 21:39:24 +02:00
Qball Cow
d584987c81
Fix #64
...
* Properly inverse the previous expression. (XGetWindowAttributes() == 0)
2014-07-21 16:53:10 +02:00
Qball Cow
7a1766fa45
Fix issue #61
2014-07-21 16:26:35 +02:00
QC
0f279b2995
Restructure some code, fix a small bug in dmenu mode.
...
* dmenu crashed on no input lines (wrong free)
* Pass length of lines to menu function.
2014-07-20 12:29:27 +02:00
QC
842d19231a
Hopeful fix for Issue: #58
2014-07-20 12:10:15 +02:00
QC
9526712bc7
Small tweak to get more sane start window size. (related to #58?)
2014-07-20 10:36:48 +02:00
QC
b30ace3ffe
Some reordering.
2014-07-19 22:01:34 +02:00
QC
89efbba4b4
Some small cleanup and splitting.
2014-07-19 21:11:27 +02:00
QC
ea9090eb50
Remove a big chunk of duplicate code by re-ordering.
...
* Remove the refilter code that was in there twice (and directly squash a small bug)
* Pull out the window position calculation in a sub-function.
2014-07-19 20:42:22 +02:00
Dave Davenport
c86f28493a
Make levenshtein sorting its own option.
...
* TODO: update manpage. (no md2man on this machine)
2014-07-16 08:42:42 +02:00
QC
daa0d16221
Make window width include the border width.
2014-07-13 12:54:19 +02:00
QC
d702ad18c6
Small fix showing extra rows when generating full list from keypress
2014-07-07 21:36:20 +02:00
QC
6a917315ce
When disabling history go into 'levenshtein' distance sorting when typing.
2014-07-05 19:47:55 +02:00
Dave Davenport
e4017fb28c
Fix small sizing issue.
2014-07-04 05:37:11 -06:00
Dave Davenport
5b0dd0b141
Indent fix and small rename
2014-06-13 09:41:01 +02:00
Dave Davenport
224dadaddd
Arrow hmode.
2014-06-13 09:27:56 +02:00
Dave Davenport
7b06ec4a55
Remove random atoms and put them in the netatoms array.
2014-06-06 09:26:06 +02:00
QC
f9149b5bdb
Add option to disable history.
2014-06-05 21:55:47 +02:00
Dave Davenport
a2bbc65ff8
Fix missing UINT32_MAX
2014-06-05 17:48:25 +02:00
Dave Davenport
4f58b6f81f
More small cleanups.
2014-06-05 08:24:23 +02:00
Dave Davenport
d361b6c445
Cleanup, integrate opacity.
2014-06-05 08:11:01 +02:00
QC
9fbd7fc99c
Re-indent.
2014-06-04 21:29:23 +02:00
QC
7667a88732
Extra sanity check, avoid crash
2014-06-02 21:51:22 +02:00
QC
6fb7e345d0
Insert key paste secondary, shift-insert primary.
2014-06-02 13:29:43 +02:00
Qball Cow
0d228cc265
Fix some stuff when pasting
2014-05-27 18:55:48 +02:00
Qball Cow
ffedaae438
Fix crasher in some cases.
2014-05-27 18:41:32 +02:00
Qball Cow
ec538c64ea
Initial pasting support.
2014-05-27 12:55:47 +02:00
Qball Cow
749d3e6223
Add docs
2014-05-27 08:31:59 +02:00
Qball Cow
d573f3db4d
Undo change
2014-05-26 15:37:33 +02:00
Qball Cow
dfa2915ef0
Remove globals
2014-05-26 10:32:26 +02:00
Qball Cow
e63de1220a
Remove unused variables
2014-05-26 09:21:39 +02:00
Qball Cow
c400c44ec1
Make cppcheck happy. (normally we assume malloc does not fail.)
2014-05-26 09:19:58 +02:00
Qball Cow
469b566614
Cleanup, possibly unbreak daemon mode.
2014-05-26 09:00:14 +02:00
Qball Cow
c2f06d3f92
Fix highlighting of arrow box
2014-05-25 23:58:05 +02:00
QC
56a911129d
Re-use XftFont instead of recreating it each and every time.
2014-05-25 23:32:06 +02:00
QC
71b6f8becd
Update comments
2014-05-25 19:57:42 +02:00
QC
400b7bba67
Disable previously (simpleswitcher) broken code, as fixing it seems to break more stuff.
2014-05-25 19:39:24 +02:00
QC
fb56250d18
Fix a newly exposed bug, i3 indicating an active window that does not exists
2014-05-25 11:34:45 +02:00
QC
3a14ec9746
Fonts with a * prepended are considered active and slanted.
...
* Fix bug in window_get_prop call.
* Use right type (Window instead of unsigned long)
* Make current active window active
2014-05-25 11:04:45 +02:00
QC
241e4516c0
Small fix.
2014-05-24 16:23:01 +02:00
QC
4b1761d022
Small cleanup
2014-05-24 11:02:13 +02:00
QC
326b562c29
Scale down number of columns when not enough rows are available.
2014-05-24 10:35:09 +02:00
QC
b1e6030c34
Remove -dump, add indent update manpage document target.
2014-05-24 10:18:36 +02:00
QC
87958d4cad
Add option to dump xresources entries.
2014-05-22 21:56:57 +02:00
QC
5769bc36f1
Make ssh set title public.
2014-05-22 10:03:36 +02:00
QC
21a0666a6e
Cleanups and indenting.
2014-05-22 09:33:32 +02:00
QC
a26cf2637d
Commandline options and Xresources now match in nameing.
2014-05-22 09:18:16 +02:00
Qball Cow
beced5d36e
Use true/false for hmode and fixed-num-lines
...
* Also update man page to reflect this.
2014-05-22 00:38:14 +02:00
QC
f29751b573
Change the prompt to be more consistent. Bug #49
2014-05-21 23:54:48 +02:00
Qball Cow
e3c20447c7
Remove prompt option from textbox, simplify code, fix small drawing issue.
2014-05-21 17:33:28 +02:00
Qball Cow
90e91aca13
Small column fix for entry box
2014-05-21 08:56:16 +02:00
Qball Cow
cf35a0bb65
remove pointless extern.
2014-05-20 11:47:05 +02:00
Qball Cow
35d5d004c9
Cleanups.
2014-05-20 11:41:39 +02:00
Qball Cow
6d308cefd8
Remove value from config struct.
2014-05-20 11:22:03 +02:00
Qball Cow
85172743ee
Keys via xresources, dump config.
2014-05-20 09:43:45 +02:00
QC
3157358c63
Add hmode to xrmoptions.
2014-05-19 22:12:54 +02:00
QC
05cf49a880
Fix some small memory leaks.
2014-05-19 21:58:13 +02:00
Qball Cow
0a95ba47fa
Extra checks, first part cleanup
2014-05-19 21:02:05 +02:00
Qball Cow
cb15a57fb7
Remove memory wrappers, and use system stuff directly.
2014-05-19 16:48:50 +02:00
Qball Cow
b535533569
Add some initial columns support.
2014-05-19 09:50:09 +02:00
QC
b213711204
Add xoffset/yoffset and fixed-num-lines to the command-line options.
2014-05-18 22:18:19 +02:00
QC
34aca6a140
Add double tab mode switching.
...
If no hit is found, and you press tab twice in a row, switch to next modi.
2014-05-18 12:11:02 +02:00
QC
46728d9030
Small fix?
2014-05-18 00:12:05 +02:00
QC
f44fd74987
Add option to fix the size of rofi
2014-05-17 22:17:23 +02:00
QC
3ebd0d9001
Allow xoffset, fix bottom/right edge.
2014-05-15 21:55:23 +02:00
Qball Cow
82bdb5f348
Add a y-offset.
2014-05-15 16:54:35 +02:00
QC
ce6b8b617d
Change arrow position, fix hmode
2014-05-14 22:21:16 +02:00
QC
7b7af4cfb4
Show arrows in list.
2014-05-14 20:56:38 +02:00
Qball Cow
de5187bb01
Add small arrows indicating more pages. (to be updated later)
2014-05-14 19:51:48 +02:00
QC
ab1b6e7127
Do not show separator line when no entry.
2014-04-28 21:34:48 +02:00
QC
fc88182484
Fix crasher, when used as input.
2014-04-28 21:18:42 +02:00
Qball Cow
aeefabe7a0
Fix unclosable window bug.
...
Fix annoyance, when it failed to grab keyboard, it still shows windows and waits for
input. This causes an unaccessible Rofi instance.
2014-04-24 18:03:27 +02:00
Qball Cow
7887344d44
Removed unused, add comments.
2014-04-24 17:35:40 +02:00
Qball Cow
46309a6fd5
Replace malloc/memset with calloc.
2014-04-24 14:25:18 +02:00
QC
d64345ccbe
identify.
2014-04-16 21:43:34 +02:00
Qball Cow
de21215491
Paginating
2014-04-15 09:14:00 +02:00
QC
c87312be36
Indent o mania.
2014-03-22 21:04:19 +01:00
Qball Cow
4d37cf35dc
Small fix!
2014-03-18 10:55:25 +01:00
Qball Cow
5d5779ad1d
Small i3 fix
2014-03-18 10:38:30 +01:00
Qball Cow
925097c9dd
Remove unused header.
2014-03-18 00:05:38 +01:00
Qball Cow
89b48fb767
Fix timeout, detect i3
2014-03-17 23:58:08 +01:00
QC
7e12aeb597
Remove profile.
2014-03-17 19:28:11 +01:00
Qball Cow
07f8073d4e
Use autotools (1)
2014-03-17 19:16:09 +01:00
QC
f033a0d669
Small fix.
2014-03-16 13:48:03 +01:00
Qball Cow
0d1e5ae597
Small fix forgot one header file entry.
2014-03-12 08:52:11 +01:00
Qball Cow
6e7f1b746a
Rename main file.
2014-03-12 08:41:38 +01:00