QC
e76db3fce3
Fix indenting.
2015-02-09 20:23:55 +01:00
QC
a69eb4e22c
Simplify paste code.
2015-02-09 20:20:51 +01:00
QC
67cbd48c8b
Add some comments, rename.
2015-02-09 20:05:30 +01:00
Dave Davenport
682907d340
Splitting over more files.
2015-02-09 19:35:51 +01:00
Dave Davenport
f7eeaec60f
Fix #126 : Allow (simplistic) word movement and deletion.
...
* Ctrl-Alt-d: Delete word
* Ctrl-Alt-h: Delete previous word
* Alt-f: Forward one word
* Alt-b: Backwards one word
2015-02-07 16:42:42 +01:00
Dave Davenport
00e48fdcf7
fix tiny typo
2015-02-07 14:04:57 +01:00
Dave Davenport
fda5badeb6
Fix #125 : Use shift-left/right for moving between switchers.
2015-02-06 08:45:21 +01:00
Dave Davenport
d9aef65ea7
Cleanups.
2015-02-04 09:37:34 +01:00
Dave Davenport
63fd534ba2
Move data around, constness, etc.
2015-02-03 08:21:59 +01:00
Dave Davenport
f86cf8988b
Move stuff around. Try to reduce size rofi.c.
2015-02-03 08:00:33 +01:00
QC
3a98c71fa1
Fix : #121 Print utf8 until invalid character.
2015-02-02 16:44:08 +01:00
Dave Davenport
ca876feec6
Put i3 specific interaction code in separate file.
2015-02-02 14:49:19 +01:00
QC
d081b3e6f5
Fix #119 . Fix dmenu mode when called with full path.
2015-02-01 20:15:21 +01:00
Dave Davenport
1a590aa8df
Do not lock rofi when in daemon mode, only when showing.
2015-02-01 15:17:43 +01:00
Dave Davenport
5d4ab2e626
Always compile with Extra warnings.
2015-02-01 15:12:29 +01:00
Dave Davenport
1156c19cbf
Fix compiler warnings about signed v.s. unsigned
2015-02-01 15:00:01 +01:00
Dave Davenport
382b93ae03
Fix LLVM compiler warnings.
2015-02-01 10:43:28 +01:00
Dave Davenport
97c11d7d85
Fix compiler warnings. (return value ftrunc/write)
2015-02-01 10:03:16 +01:00
QC
b74e6b791a
Fix not grabbing keyboard, and add pid file to ensure one instance.
2015-01-31 18:23:17 +01:00
QC
983fff61b4
Removed some unused headers.
2015-01-30 21:55:31 +01:00
QC
6760d05d18
Small cleanup + comments.
2015-01-30 18:01:25 +01:00
Dave Davenport
f40e072802
Grab keyboard from X mainloop.
...
Should fix small 'jerk' when starting from keybinding and having to wait for keyboard grab.
2015-01-29 17:37:12 +01:00
QC
de9e78bb57
Fix issue #118 .
...
unsigned long is %lu not %ul
2015-01-28 21:27:49 +01:00
Dave Davenport
b469674085
Add some comments.
2015-01-28 07:50:47 +01:00
QC
072baa9c02
Fix printing Warning about XID.
2015-01-26 22:43:57 +01:00
QC
460b82efc3
Fix unused variables.
2015-01-24 16:41:18 +01:00
Dave Davenport
3e419feecd
Remove commented code, break out of loop in when possible.
2015-01-23 09:12:48 +01:00
Dave Davenport
9067b2602d
Remove printf
2015-01-22 15:10:35 +01:00
Dave Davenport
673eee78a4
Better handling of non-truecolor colormaps.
2015-01-22 10:54:28 +01:00
Dave Davenport
647701fe78
Merge remote-tracking branch 'origin/master' into transbg
2015-01-22 08:48:45 +01:00
Dave Davenport
19a0ec40f8
Use fallback when truecolor visual fails.
...
- Fixes tests.
2015-01-21 18:38:54 +01:00
Daniel Hahler
318c8f3953
Toggle case sensitivity: grave
might be acute
...
Fixes https://github.com/DaveDavenport/rofi/issues/112
2015-01-21 11:39:35 +01:00
Dave Davenport
9cc63d4948
Updates fixing pango transparancy.
2015-01-21 10:04:15 +01:00
Dave Davenport
291070e579
First try out. (tests not compiling at.. do make rofi)
2015-01-20 23:32:57 +01:00
QC
661b65dd2a
Introduce lazy-refilter mode for long lists.
2015-01-18 18:17:09 +01:00
QC
7e6241226e
Avoid loosing keyboard press events when they arrive to quickly.
...
* Do not absorb events, but loop over them.
2015-01-18 17:18:07 +01:00
QC
112e2c2bc5
Small cleanup and add ohcount target.
2015-01-17 18:27:41 +01:00
Dave Davenport
a00cfbb5b0
Small cleanup and reducing of scopes.
2015-01-15 17:59:59 +01:00
Dave Davenport
1a85fcbf96
Change col left/right edge behavior to be more logic.
...
* Don't move to first/last entry when not needed.
2015-01-15 08:33:45 +01:00
Edwin Pujols
dc16033d0d
Mouse navigation: Avoid unnecessary looping.
2015-01-14 18:54:37 -04:00
QC
2d18aea928
Fix issue #104 : Scrolling action.
2015-01-14 22:14:15 +01:00
Dave Davenport
3a4c1f1f3f
Merge pull request #105 from Tblue/master
...
SSH config file parser: Recognize multiple host names in a "Host" line
2015-01-14 21:51:19 +01:00
Tilman Blumenbach
49fa62b4c3
get_ssh(): Use g_strdup() instead of strdup().
...
The latter is not always available.
2015-01-14 16:02:37 +01:00
Tilman Blumenbach
5584e2eb95
get_ssh(): Use g_ascii_strcasecmp() instead of strcasecmp().
...
The latter is not always available.
2015-01-14 16:01:48 +01:00
Tilman Blumenbach
6fc18a21f1
Minor comment fix.
2015-01-14 15:52:40 +01:00
Tilman Blumenbach
07dfc171e3
SSH file parser: Recognize multiple host names in a 'Host' line.
2015-01-14 11:23:14 +01:00
Dave Davenport
046a1c612d
Fix bug introduced with d1ba4bd8dc
...
* Match all fields of window struct, not just title.
2015-01-14 08:15:52 +01:00
Dave Davenport
deee786c65
Also respond to dead Grave for casesensitive toggle.
2015-01-14 08:11:32 +01:00
QC
46ab505be7
Make hmode workable again.
2015-01-13 12:16:32 +01:00
QC
e166fa3d8e
Move indicator to end of entry box.
2015-01-13 11:48:38 +01:00
Edwin Pujols
93a2738c8a
Fix #102 - Visual indicator of case sensitivity.
2015-01-12 19:01:16 -04:00
Edwin Pujols
2098f1147f
Add Xresources option for case sensitivity.
2015-01-12 15:56:41 -04:00
Edwin Pujols
32b8281cfb
Merge branch 'master' of https://github.com/DaveDavenport/rofi
...
Conflicts:
doc/rofi-manpage.markdown
doc/rofi.1
2015-01-12 15:48:04 -04:00
Dave Davenport
a8843af9f3
Add support for alternating row colors.
2015-01-12 19:14:46 +01:00
Edwin Pujols
d1ba4bd8dc
Fix #102 - Add case sensitivity.
2015-01-12 09:25:20 -04:00
Dave Davenport
965e7a94bf
Fix dump-xresources table view.
2015-01-12 11:23:20 +01:00
QC
f28ac717cd
Fix 101
2015-01-10 15:31:13 +01:00
QC
7e6a24f9b6
Make analysis happy and prefer heap over stack.
2015-01-10 15:13:10 +01:00
Dave Davenport
479123fcef
Remove magic macro's. They are only used in one place, so no point.
2015-01-09 15:54:34 +01:00
Dave Davenport
f93e4d1f42
Add some comments.
2015-01-08 13:16:44 +01:00
QC
e3cef1b8a9
Coverity annoyance.
2015-01-07 22:11:12 +01:00
QC
1e8c94eaab
Some error messages.
2015-01-07 18:21:23 +01:00
QC
366813fdec
Wonder if this fixes the warning.
2015-01-07 18:02:18 +01:00
QC
79909cd807
Another possible NULL pointer fix.
2015-01-07 17:48:10 +01:00
QC
7428d94612
Remove check, selected_line is not NULL.
2015-01-07 17:44:41 +01:00
QC
19d8ce279b
Initialize savept to NULL. (coverity)
2015-01-07 17:37:53 +01:00
QC
7c22f34154
Fix bug #97 : Remove duplicates.
2015-01-07 15:53:41 +01:00
Qball Cow
10cdd0e48e
Do not crash on empty list in run dialog.
2015-01-06 11:45:01 +01:00
Qball Cow
d0f9f6f067
In ssh config check for Host[::space::]: #101
2015-01-06 10:03:15 +01:00
QC
cfde1bde9a
Add run-list command.
2015-01-05 22:16:13 +01:00
Dave Davenport
a28b6df307
Add support custom command.
2015-01-05 21:53:50 +01:00
QC
7ee64b258d
Fix memory leak of sidebar mode switcher boxes.
2015-01-04 13:24:08 +01:00
QC
8afba6e875
Bug #98 : Select a certain line.
...
* -l select line
2014-12-16 21:08:12 +01:00
Dave Davenport
0b34b958a6
Static fest.
2014-12-02 10:04:28 +01:00
Dave Davenport
781ca03f02
Small moving to helper.
2014-12-02 09:09:20 +01:00
Dave Davenport
59ee49a557
[TextBox] fix alignment issue with cursor.
2014-12-02 08:11:53 +01:00
QC
d393a5ff2e
I am to tired to commit, lets try again.
2014-11-29 17:15:13 +01:00
QC
e2a3139b7d
Small update trying to fix past commit.
2014-11-29 16:54:42 +01:00
QC
6805d93f68
Update previous commit with manpage fix window switcher.
2014-11-29 16:35:43 +01:00
qedi
ada9f81ce0
fix logic for Ctrl+Return/Ctrl+Enter
2014-11-29 09:39:27 -05:00
qedi
21235b0600
Force custom commandline when Ctrl-Return is used
2014-11-28 22:24:07 -05:00
Dave Davenport
2c9f33a1bd
More commenting.
...
Code Comment Comment % Blank Total File
------ --------- --------- --------- --------- -----------------
36 69 65.7% 2 107 config.c
66 31 32.0% 14 111 dmenu-dialog.c
185 52 21.9% 19 256 helper.c
179 66 26.9% 27 272 history.c
1896 325 14.6% 345 2566 rofi.c
197 45 18.6% 42 284 run-dialog.c
144 31 17.7% 24 199 script-dialog.c
171 42 19.7% 31 244 ssh-dialog.c
350 69 16.5% 84 503 textbox.c
151 37 19.7% 27 215 xrmoptions.c
26 0 0.0% 5 31 helper-test.c
65 6 8.5% 35 106 history-test.c
109 5 4.4% 22 136 textbox-test.c
34 33 49.3% 24 91 config.h
5 10 66.7% 4 19 dmenu-dialog.h
11 70 86.4% 10 91 helper.h
9 46 83.6% 8 63 history.h
83 128 60.7% 17 228 rofi.h
4 8 66.7% 2 14 run-dialog.h
11 26 70.3% 5 42 script-dialog.h
4 8 66.7% 2 14 ssh-dialog.h
64 142 68.9% 31 237 textbox.h
6 13 68.4% 4 23 xrmoptions.h
2014-11-25 12:57:34 +01:00
Qball Cow
ce25bf3f50
Issue #91 Reverse order of headers to fix build.
2014-11-24 13:19:24 +01:00
QC
f42c0f1132
Use glib for escaping.
2014-11-22 22:40:53 +01:00
QC
18c6186501
Possible fix for issue #90 .
...
* Escape the argument passed to the script.
* Escape '\"
2014-11-22 21:39:34 +01:00
QC
66349a00dc
Small updates.
2014-11-15 16:26:55 +01:00
Dave Davenport
05cab7a37a
Fix indenting.
2014-11-12 17:49:13 +01:00
QC
c37ceb3e62
Fix error with entry box being empty.
2014-11-11 23:07:57 +01:00
QC
f710912042
Add ctrl-/ as reverse tab.
2014-11-11 21:50:16 +01:00
Qball Cow
cd8abd1153
Fix small graphical glix tabs
...
* They where to close to bottom.
2014-11-10 10:14:36 +01:00
Dave Davenport
9eb59fb616
[FullHeight] Fix height calculation
...
* Take window border into account.
2014-11-10 09:29:20 +01:00
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
QC
03f919a0fb
Fix center mode.
2014-11-09 12:35:12 +01:00
QC
2e0d79d73e
[Run] Filter out duplicates. Issue #86
2014-11-06 17:44:41 +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
f24fac2798
Remove separator from Xresources.
2014-10-19 19:44:22 +02: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
5f33d506b9
Fix name matching for ssh-dialog, fix bug 80.
2014-09-01 19:53:35 +02:00
Dave Davenport
229bb6931b
Play with adding some more test, bug fixes
...
* delete an invalid memmove in textbox
2014-08-30 20:45:08 +02:00
QC
169c05cc15
Fix crash in history when removing last entry.
2014-08-29 12:14:43 +02:00
QC
5b017b017b
Add gcov option.
2014-08-29 00:01:36 +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
d76571bcaa
Initialize fd to -1.
2014-08-25 20:07:31 +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
09130a6d11
Fix cursor height.
2014-08-03 11:48:48 +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
7046656246
Small tweak.
2014-08-02 22:27:04 +02:00
QC
eb688ad629
Fix a small pango scaling issue, center text in Y direction.
2014-08-02 21:09:20 +02:00
QC
48f592b7c1
Small fix (no functional change)
2014-08-02 20:57:05 +02:00
QC
7bebd1d7dd
Set ellipsizing in the middle for edit boxes.
2014-08-02 20:25:43 +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
b1800fdf50
Fix previous commit, otherwise -show <window> matching goes wrong.
2014-07-22 18:19:00 +02:00
Dave Davenport
8cecc27992
Append ':' after Switcher name.
2014-07-22 18:04:42 +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
9ecf1e13a7
Small fix for easier scripting.
2014-07-21 22:22:16 +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
57f28bbb3b
Close bug #57 .
...
* Also accept XK_KP_Enter
2014-07-20 17:10:10 +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
QC
eb20e77d6e
Run-dialog, ignore dot files.
2014-06-07 11:00:21 +02:00
QC
df49b0709b
Fix segfault in hmode.
2014-06-06 19:34:10 +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
QC
92db68b36d
How many times will I break/fix trailing spaces, only buddah knows
2014-06-02 13:23:36 +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
3188236121
Cleanups
2014-05-27 08:42:21 +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
cba893f500
Fix history becoming stuck.
2014-05-25 17:55:27 +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
1df6489746
Fix small typo
2014-05-22 21:59:27 +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
6cd01dba0e
Add 4px gap between cursor and last Glyph
2014-05-19 17:57:27 +02:00
Qball Cow
b360cdd13c
Change malloc+sprintf to asprintf
2014-05-19 17:54:53 +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
cbc51910bc
Small fix with spaces not being rendered.
2014-05-18 18:14:15 +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
4f1ab47b7d
Small 'correctness' fixes (thx to sparse)
2014-05-17 23:06:45 +02:00
QC
f44fd74987
Add option to fix the size of rofi
2014-05-17 22:17:23 +02:00
Qball Cow
08da286931
Fix small miss-drawing
2014-05-16 09:17:55 +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
Qball Cow
1b9d4fb325
add location to xrm options
2014-05-15 08:44:45 +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
Qball Cow
a925e59653
Small fixes
2014-05-13 22:11:42 +02:00
Qball Cow
87b51f5430
Extract out the history code and create functions for it.
...
(Easier to fix issues later on)
2014-05-13 10:45:59 +02:00
QC
db9bb13111
clearer that run dialog
2014-05-10 22:58:21 +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
832c2cb584
Add comment to avoid mistake later, remove alloca
...
* Add comments so previous mistake is not repeated.
* Remove alloca, replace it by strdup/asprintf.
Code now passes cppcheck.
2014-04-25 09:11:10 +02:00
Qball Cow
a0a5400c72
Fix bug with extra trailing \n
2014-04-24 23:39:26 +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
Qball Cow
f0aa796fd8
Small cleanups.
2014-04-23 08:47:46 +02:00
Qball Cow
4fd76f59b4
Use asprintf.
...
Avoid possible errors.
2014-04-22 14:38:36 +02:00
Dave Davenport
0d6556618e
Allow window title to be set. issue #42
2014-04-22 11:11:46 +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
dc5c853d91
small fix for stupid error
2014-03-12 17:40:23 +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
Qball Cow
c268c10f8b
Fix warning from clang --analyze
2014-03-11 20:16:44 +01:00
Qball Cow
9d531043e3
Possible fix for issue #32
2014-03-10 08:49:38 +01:00
Qball Cow
702ff68eb4
Sort favorites by # of runs
2014-03-08 21:35:27 +01:00
Dave Davenport
8a3daf3194
Make things behave nice again in i3.
2014-03-02 12:53:06 +01:00
Daniel Hahler
1834e25ef3
Select the target desktop in non-i3_mode
...
Fixes https://github.com/DaveDavenport/rofi/issues/28
This is merged from the original upstream at:
https://github.com/seanpringle/simpleswitcher/blob/master/simpleswitcher.c
(including the TODO)
2014-03-02 10:37:58 +01:00
Daniel Hahler
ea8c9923d5
Display desktop number with the pattern in window mode
...
This is merged from the original upstream at:
https://github.com/seanpringle/simpleswitcher/blob/master/simpleswitcher.c
2014-03-02 10:33:27 +01:00
QC
1bed4252ae
More rename.
2014-03-01 17:28:55 +01:00
QC
7f32582582
Rename simpleswitcher to rofi.
2014-03-01 17:27:52 +01:00
QC
52a28ea494
Small cleanups.
2014-02-27 20:26:35 +01:00
QC
a3569079c9
Make cppcheck happy.
2014-02-26 22:48:49 +01:00
Qball Cow
c2e25dc0c1
Use Xutf8LookupString
2014-02-25 22:54:44 +01:00
Qball Cow
5619c856f1
First throw at some utf8 support
2014-02-25 09:16:52 +01:00
Qball Cow
faab271283
Do not free the return value of XResourceManagerString.
...
(See manual http://tronche.com/gui/x/xlib/resource-manager/XResourceManagerString.html )
2014-02-04 18:39:32 +01:00
QC
57abc12c43
cleanups
2014-02-03 23:07:04 +01:00
QC
b9c192c4fe
Removing duplicate code, small fixes.
2014-02-03 22:49:07 +01:00
QC
2bfc2fff4b
Remove mark dialog.
2014-02-03 22:28:04 +01:00
QC
c71e0313a9
Add header.
2014-02-03 21:46:44 +01:00
QC
96e76c1998
Split out xresource and add -v --version
2014-02-02 10:54:01 +01:00
QC
302db5bf07
Add two extra options to xresource
2014-02-01 23:10:49 +01:00
QC
bd3d69d1ae
Replace malloc by allocate
2014-02-01 23:07:03 +01:00
QC
0737b4f5b2
Read settings from Xresource.
...
Code borrowed from Sean Pringle (yet again).
2014-02-01 23:04:45 +01:00
QC
76a8f79211
Accept empty lists
2014-02-01 22:31:07 +01:00
Qball Cow
fa5a496629
Fix a few minor bugs
2014-02-01 14:39:49 +01:00
Qball Cow
5415cd60ed
Add delete option to ssh switcher
2014-02-01 14:06:08 +01:00
Qball Cow
6177c90a87
Restructure for and add option to delete entry from history.
2014-02-01 14:03:23 +01:00
QC
8310a97219
Fix endline thingy in dmenu
2014-01-31 20:36:14 +01:00
QC
8725748916
Home/End key map to list browsing.
2014-01-31 19:39:09 +01:00
Qball Cow
47ad13fdf3
Add kp home/end
2014-01-31 18:14:46 +01:00
Qball Cow
972e3ee1d7
Add home/end key support
2014-01-31 18:09:36 +01:00
Qball Cow
290ed81e08
Add Page up/down
2014-01-31 18:06:51 +01:00
Qball Cow
e9770460dd
Fix i3less build.
2014-01-31 15:52:04 +01:00
Qball Cow
8edac70eae
Remove json.
2014-01-31 13:57:49 +01:00
Qball Cow
1fc03ce908
Implement scrolling in menu
2014-01-31 13:41:08 +01:00
QC
101c63cde6
Indent.
2014-01-30 21:32:36 +01:00
Qball Cow
c32e18b600
Make dmenu mode behave more like dmenu
2014-01-30 18:23:52 +01:00
QC
39b25093bd
in dmenu mode accept -p as prompt param
2014-01-30 12:15:32 +01:00
QC
760a634731
Indent.
2014-01-30 10:02:01 +01:00
Qball Cow
bbe4a3d330
Add dmenu option
2014-01-30 00:47:23 +01:00
QC
78845b52f4
Fix issue #19 , accept as argument too
2014-01-29 20:45:38 +01:00
QC
13da91b200
Remove more stray printf
2014-01-29 20:39:25 +01:00
QC
080e1f0a15
Remove stray printf
2014-01-29 20:37:33 +01:00
Qball Cow
167429bae0
Read json file chuncked, and from stdin
2014-01-29 18:44:09 +01:00
Qball Cow
acc46c4dd2
Add a test json mode
2014-01-29 15:38:08 +01:00
QC
04f6fb91e8
Fix issue #15
2014-01-28 20:52:52 +01:00
QC
8a053642c4
Rename inner_margin to padding so it goal is more clear. issue #14
2014-01-28 20:48:48 +01:00
QC
8508c73b12
Add switch_profile.sh mode
2014-01-27 22:15:33 +01:00
Qball Cow
f8b72dfbac
small arm compiler fix
2014-01-26 23:20:15 +01:00
QC
b0ee6ab8dd
also accept . in ssh hostname
2014-01-26 16:47:26 +01:00
QC
8b6b494830
Support _ in ssh hostname
2014-01-26 16:21:08 +01:00
QC
4efeb421f2
Don't talk to i3 if i3-mode is 0
2014-01-26 15:47:17 +01:00
QC
07072de251
Add missing files
2014-01-26 15:41:45 +01:00
QC
0529d21ffd
Add support for selecting marks
2014-01-26 15:39:50 +01:00
QC
bd33e93e16
Put user settable config in separate file.
2014-01-26 13:29:38 +01:00
QC
2b453668e7
Add ctrl-j/k to navigate
2014-01-26 13:04:00 +01:00
QC
e62ada2a83
Add support for horizontal mode.
2014-01-26 12:59:10 +01:00
Qball Cow
f72a60580f
Allow user to specify location of switcher
2014-01-26 00:27:57 +01:00
QC
6e242c197e
Use XDG basedir for CACHE.
2014-01-25 23:37:37 +01:00
QC
f24b5ef19a
Some cleanups
2014-01-23 20:33:13 +01:00
Qball Cow
9f4078cec8
Remove duplicate variable, revert earlier change.
2014-01-23 18:24:28 +01:00
Qball Cow
95dd228dd6
Small compile fix on arm
2014-01-23 18:03:11 +01:00
Qball Cow
e95727c3bc
Config cleanups.
2014-01-23 11:39:12 +01:00
Qball Cow
458503df90
Make down key behave different from tab, it feels inconsistent.
2014-01-22 17:48:50 +01:00
Qball Cow
c5ed30c532
Fix margin
2014-01-22 13:32:46 +01:00
Qball Cow
498c007193
Add line.
2014-01-22 13:15:38 +01:00
Qball Cow
f4da5aceb2
Don't add empty ssh targets.
2014-01-22 10:01:45 +01:00
Qball Cow
6bb615f1d1
small cleanup
2014-01-22 09:24:31 +01:00
Qball Cow
424cb90a18
Fix clang compilation.
2014-01-21 15:00:00 +01:00
Qball Cow
0dbd57b46f
Include errno.h
2014-01-21 14:56:25 +01:00
Qball Cow
0068618573
cleanup
2014-01-21 10:35:59 +01:00
Qball Cow
ef8d444dd2
Add keybinding.
2014-01-21 10:13:42 +01:00
Qball Cow
a749aa35e9
Add a SSH selector.
2014-01-21 10:01:55 +01:00
Qball Cow
3a44951e9f
More cleanups to make more extendable
2014-01-21 00:20:09 +01:00
QC
5e72018497
Split of run-dialog part in separate file.
2014-01-20 23:36:20 +01:00
QC
f3a77c9b00
Cleanups.
2014-01-20 22:58:10 +01:00
QC
eda0a9e0d0
Add option to specify terminal to launch
2014-01-20 21:17:19 +01:00
QC
22399d0fae
Fix last commit, make difference between enter and escaped
2014-01-20 20:49:26 +01:00
QC
164073ffd3
Allow non-matches to be executed.. (and added to history).
2014-01-20 20:26:17 +01:00
QC
06039b8c9c
Restructure a bit.
2014-01-19 14:18:42 +01:00