Commit graph

729 commits

Author SHA1 Message Date
QC
f88cfacfde Replace all qsorts. 2015-07-05 09:47:55 +02:00
QC
dc356d81c4 Use glib qsort as qsort is not portable. 2015-07-05 09:37:35 +02:00
QC
9b83c6133f Fix typo (thx to jpleau) 2015-07-04 19:58:17 +02:00
QC
5c9ad80758 Trying 2nd bsd patch 2015-07-04 16:53:36 +02:00
QC
d60f6701de Add patches from BSD (hopefully ok?) 2015-07-04 15:36:11 +02:00
Dave Davenport
98b8e583cb Make fuzzy matching available everywhere: #133 (-fuzzy) 2015-07-01 09:12:22 +02:00
Dave Davenport
c7ed92e40c Use tokenmatch in window_match. 2015-07-01 09:02:25 +02:00
QC
aaf9e1e345 Free in right order 2015-06-30 21:18:45 +02:00
Dave Davenport
30743d1789 Move fuzzy_token_match to where it can be reused. 2015-06-28 13:53:37 +02:00
QC
67089677b5 Fix naming 2015-06-27 22:38:06 +02:00
Dave Davenport
9977d7ef69 Fix fuzzy match to continue at next character. #133 2015-06-25 02:54:00 +02:00
QC
bcbb64f615 Don't do unneeded compares 2015-06-24 21:28:13 +02:00
QC
db1331ed66 Test implementation for #133. 2015-06-23 21:22:38 +02:00
QC
ce73f468ca Possible fix for #179 2015-06-20 15:11:30 +02:00
Dave Davenport
90eb18b3c0 Make 'all?' keys user configurable.
Fixes #66
2015-06-15 09:01:22 +02:00
Dave Davenport
25633ca4dc Issue #66, allow keybindings for navigation to be changed.
up,down,left,right
2015-06-15 08:48:13 +02:00
Dave Davenport
6c9a493b56 [SSH] Ignore comments in the Host: line.
Fixes #178
2015-06-14 14:37:53 +02:00
QC
bd9f4ebf07 More dmenu fixes (shift -enter on custom) 2015-06-11 21:20:09 +02:00
QC
a811011a1d Fix dmenu mode. 2015-06-11 21:07:25 +02:00
QC
d11c61cef1 Fixes #176 add mode that user expects. 2015-06-11 20:38:48 +02:00
Dave Davenport
1a188af2e9 Add markup support to error msg. 2015-06-08 23:23:33 +02:00
Qball Cow
00ffa9f148 Move comment to right place 2015-06-09 18:14:09 +02:00
Qball Cow
e5caaf9d1a Possible fix issue #175 2015-06-09 18:10:23 +02:00
QC
95beb58730 tiny cleanup 2015-06-05 23:08:02 +02:00
Dave Davenport
e517001d39 Fix ellip. in entry box, wrap message box. 2015-06-03 09:04:29 +02:00
Dave Davenport
e8adc8042d Add a -no-config option to run rofi stock. 2015-05-31 09:46:39 +02:00
QC
34538cefaf Try to fix (suddenly) broke font height estimation. 2015-05-26 23:58:37 +02:00
QC
d312090701 Issue #168: Add note about pkg-config and update packages. 2015-05-25 10:31:10 +02:00
Buglloc
861d752c01 Ignores bits 13 and 14 of the modifiers while checking keybinding states 2015-05-23 23:29:17 +02:00
QC
a93aec02bd Add support for msg string with pango markup. 2015-05-23 20:06:06 +02:00
Dave Davenport
0e7009bcad Test fix for issue #167 2015-05-21 23:53:28 +02:00
Qball Cow
09e4a64780 fix issue #165 2015-05-19 19:59:50 +02:00
QC
300234611d First fix for #164 2015-05-18 22:38:51 +02:00
QC
1a7cddc8aa Fix for faulty commit on Issue: #163 2015-05-17 11:57:51 +02:00
QC
354ccdd94d Fix Issue #164 2015-05-16 13:58:09 +02:00
QC
571aca9834 Fix: #163 2015-05-15 15:44:43 +02:00
QC
14c50132c8 more small cleanups 2015-05-14 19:45:57 +02:00
QC
652a6ed7d2 Fix clang-tidy warnings. 2015-05-14 19:39:30 +02:00
Dave Davenport
22f35983c0 Add quote and escape string option. 2015-05-13 18:36:16 +02:00
Dave Davenport
8abf3335dc Remove silly test. 2015-05-12 21:59:51 +02:00
Dave Davenport
4d7b5a02d6 Cleanup and add d format 2015-05-11 23:20:34 +02:00
QC
9307a1668e Add -format option to dmenu. 2015-05-10 12:08:08 +02:00
QC
4d3b9e414d Small cleanup 2015-05-09 14:17:27 +02:00
Dave Davenport
89d2190f8e [#158] Patch implementing -only-match mode. 2015-05-07 21:07:15 +02:00
Dave Davenport
94c9303d89 Fix issue #160. Return selected line. 2015-05-06 08:03:10 +02:00
QC
13eee4571c Allow alt-1t/m9 be re-bound. 2015-05-05 19:30:43 +02:00
QC
a32bd61fea DMENU special return value starts at 10. Issue: #154 2015-05-04 10:37:50 +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
QC
a974db887a Fix issue #153. 2015-05-02 12:42:36 +02:00
QC
9492fe7611 Cleanup keyb.h file. 2015-05-02 12:22:31 +02:00
QC
493801602a Fix printing table 2015-05-02 12:08:50 +02:00
QC
d2eeffe2d9 Issue: #131 Prepend keybinding names with "kb-" 2015-05-02 12:01:06 +02:00
QC
61fc9e8310 Finish adding all different keybindings. Issue: #131 2015-05-02 11:53:27 +02:00
Dave Davenport
1abb06f23b Fix out of order of enum. (needs better solution.) 2015-05-01 23:44:32 +02:00
Dave Davenport
e8d6e8f829 Move more items to keybinding system. 2015-05-01 08:16:52 +02:00
QC
073836f142 First version of keybindings (#131) 2015-04-30 22:46:51 +02:00
QC
09d2be260b Allow keybindings to be set. 2015-04-30 22:42:04 +02:00
Dave Davenport
a70404f128 First part of infrastructure for Issue: #131 customizable keybindings. 2015-04-30 21:52:30 +02:00
Qball Cow
bee103aea8 Improvement of situation for Issue #153. 2015-04-30 17:13:17 +02:00
Dave Davenport
0b7fe775ca Support combined characters. 2015-04-23 22:14:31 +02:00
QC
9bb51a9b35 Support -no-levenshtein-sort 2015-04-19 13:19:20 +02:00
QC
99118420ea Support Levenshtein in dmenu.i #149 2015-04-16 21:13:45 +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
c1a8735e24 Re-enable background/foreground. Make theming method an option. 2015-04-11 12:04:14 +02:00
Qball Cow
f72629a370 Remove printf. 2015-04-07 10:45:04 +02:00
Dave Davenport
82b37eef10 Add right visual. 2015-04-07 08:25:09 +02:00
QC
2590ecf7e5 ADd new coloring scheme. 2015-04-06 17:13:26 +02:00
QC
95fd6402f3 Free all colors. 2015-04-06 15:28:06 +02:00
QC
39518b0e15 Add more user-colors. 2015-04-06 15:23:58 +02:00
Jason Pleau
6f2c284f37 alias --help to -h/-help
Right now running rofi --help puts it in daemon mode, which can be
confusing for the user. Options in rofi use one dash instead of two, but
I believe an exception should be made for --help.
2015-04-05 17:38:22 -04:00
QC
91fcc76cb2 Help users that do not pass the read-the-manual stage. 2015-04-05 22:29:26 +02:00
QC
5e4cf732e6 Fix issue #142, pass -M <root> instead of full path. 2015-04-05 21:16:27 +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
d6ced176d4 Add ranges for urgent active in dmenu mode. 2015-04-05 11:53:08 +02:00
QC
808eee4b85 Try to improve coloring of urgent/active rows that are selected. 2015-04-05 10:40:35 +02:00
QC
8cc553ebaf Fix issue: #140: Align cursor with font. 2015-04-05 10:23:59 +02:00
QC
71cfb6d553 Allow urgent/active color to be set, add dmenu option -u/-a to highlight row. 2015-04-04 11:10:41 +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
cf423fb2aa Remove printf 2015-03-30 20:23:41 +02:00
QC
42ae0a5871 Indent combi.c 2015-03-30 20:13:47 +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
55160c6eff Issue: #137, Parse /etc/hosts file. 2015-03-29 12:27:00 +02:00
QC
888260b06b Small cleanup 2015-03-27 20:50:48 +01:00
QC
f5c8c3a55d Do not release keyboard when switching between switchers. 2015-03-27 20:33:25 +01: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
Dave Davenport
953fcf9ee8 Reduce work on redraws.
- Do not set text on each draw.
        - Do not move/resize on each draw.
        - Update pango layout set width to set when only needed, fix bug in shrinking on autosize.
2015-03-23 08:56:55 +01:00
QC
7c6699169e Tweak layout a bit 2015-03-22 12:56:26 +01:00
QC
b36452cc40 Fix padding switcher boxes to match columns 2015-03-21 19:23:55 +01:00
Dave Davenport
d290285a9f Fix rendering of boxes (margin and height) 2015-03-20 16:07:30 +01:00
Dave Davenport
eae9fe7f04 Avoid calling collate when not needed. 2015-03-20 08:45:24 +01:00
Dave Davenport
b882d9ab72 Remove unneeded addition/removal of margin. 2015-03-20 08:27:33 +01:00
QC
3df30438b1 Fix some font stuff. 2015-03-19 23:48:49 +01:00
Dave Davenport
21144aef17 Fix one-off pasting text in rofi. 2015-03-19 20:01:52 +01:00
Dave Davenport
9530f195d1 Better way of getting font height. Use ascent and descent. 2015-03-19 19:58:47 +01:00
QC
743f1919cd Autoscale when drawing the number of columns and col width. 2015-03-18 20:56:50 +01:00
QC
4dd0a85fc4 Update header. 2015-03-17 20:05:37 +01:00
QC
916e7356fe Try to fix mountains__ function. 2015-03-15 11:51:48 +01:00
Dave Davenport
4579a62b2d Add ctrl-(shift)-tab for switching modi. 2015-03-12 17:57:00 +01:00
Dave Davenport
42b86015c3 Make pointers static. 2015-03-12 08:39:50 +01:00
Dave Davenport
4fad02225e Cleanup argc/argv lugging around. 2015-03-11 18:32:37 +01:00
Dave Davenport
c89a272d4d Add number mode for dmenu (Request from Taharqa)
* option -i.
2015-03-11 18:07:54 +01:00
QC
f6ad00c7bf Pointless commit fixing comments. 2015-03-08 15:43:31 +01:00
QC
19e849d4e7 Tiny cleanup. 2015-03-07 17:22:25 +01:00
QC
7322819a1d No need to check nullptr on nonnull argument. 2015-03-06 20:38:11 +01:00
Dave Davenport
444d09b905 Update spell. 2015-03-05 20:26:52 +01:00
Dave Davenport
923dbb93ec Typo o rama. 2015-03-04 22:47:52 +01:00
Jason Pleau
2fe71512fb xrmoptions: give a name to the union in XrmOption struct
fixes a compilation warning when building with -Wpedantic
2015-03-03 18:43:51 -05:00
Dave Davenport
a83a06a95c Re-add zeltak mode. 2015-02-24 17:35:09 +01:00
Dave Davenport
df7b98ac7f Add 'modi' alias for 'switchers' and update manpage. 2015-02-23 08:39:29 +01:00
Dave Davenport
2474575a90 Small move. 2015-02-19 13:44:59 +01:00
Dave Davenport
da8902ac88 Replace signal by sigaction 2015-02-19 13:22:10 +01:00
Dave Davenport
d9db18266c Remove unused TIMING. 2015-02-19 13:11:39 +01:00
Dave Davenport
8b50e94fea Make compiler more picky.
Add -Werror=missing-prototypes
2015-02-18 08:53:38 +01:00
Qball Cow
3b18c28792 Remove unused function. 2015-02-17 14:27:12 +01:00
Dave Davenport
a534a0f244 Rewrite of the configuration parsing, no longer duplicating options between Xrm and CMD.
* NEEDS TESTING.
2015-02-17 10:31:59 +01:00
Dave Davenport
bda97e0849 Throw a warning when using old commandline arguments.
* Give error on -now, -rnow, -snow, -key, -skey, -rkey
        * Update manpage.
2015-02-16 09:07:05 +01:00
Georgios Bitzes
07df49a5af Fix bugs relating to hotkeys with modifiers
This commit makes the following changes:
1) Fix a bad check introduced in dee0bfb, which checks the modstate of the
event with the keysym of the switcher, not its modmask:

        modstate & ( switchers[i].keysym )

I think it was broken before as well, a binary AND between the two masks
will not tell much about whether they are equal. Instead, the masks are
now checked for equality after removing LockMask and NumlockMask.

2) Stop binding to AnyModifier when none is used. This conflicts with the case
in which we want to bind different modes to the same key, but different
modifiers.

for example, rofi -key-run F2 -key-ssh alt+F2 -key-window shift+F2

Binding F2 with AnyModifier would prevent alt+F2 and shift+F2 from being used.

3) Remove UngrabKey from x11_grab_key to make the above example possible.
4) Refactor search for any of the global keybindings into function locate_switcher.
2015-02-16 03:20:28 +02:00
QC
dee0bfb821 Fix #128: Better handling of keybindings and remove deprecated launching.
See manpage.
2015-02-15 21:15:16 +01:00
QC
b6652a0221 Small move 2015-02-14 19:42:04 +01:00
Dave Davenport
8347963ed8 Fix some warnings from clang-check. 2015-02-13 15:37:55 +01:00
Dave Davenport
7e1063803a Comments, compile order and Display argument. 2015-02-13 08:26:23 +01:00
QC
ee24b209bb Fixing i3 crash. 2015-02-12 22:42:29 +01:00
QC
4e55889223 Update indenting. 2015-02-12 22:34:33 +01:00
QC
877c8051c6 Update copyright license. 2015-02-12 22:34:06 +01:00
QC
c760432a6c Moving files around, dialogs in dialog directory. 2015-02-12 22:26:28 +01:00
Dave Davenport
605fe4911c Refactor code, split out window switcher code. 2015-02-12 22:16:32 +01:00
Dave Davenport
9240a636d4 Fix stupid typo in previous commit, swapping columns/rows in positioning textboxes. 2015-02-12 07:55:23 +01:00
Dave Davenport
f74c8c1839 Cleanup. 2015-02-11 23:07:55 +01:00
Dave Davenport
c5f95d4e25 Small comment updates. 2015-02-10 08:12:03 +01:00
Dave Davenport
a50219e903 Remove hmode. (Rather no implementation then a bad one.) 2015-02-10 07:42:40 +01:00
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