2 (c) 2009 by Leon Winter
3 (c) 2009, 2010 by Hannes Schueller
4 (c) 2009, 2010 by Matto Fransen
9 #define LENGTH(x) (sizeof(x)/sizeof(x[0]))
12 enum { ModeNormal
, ModePassThrough
, ModeSendKey
, ModeInsert
, ModeHints
}; /* modes */
13 enum { TargetCurrent
, TargetNew
}; /* target */
15 1 << 0: 0 = jumpTo, 1 = scroll
16 1 << 1: 0 = top/down, 1 = left/right
17 1 << 2: 0 = top/left, 1 = bottom/right
18 1 << 3: 0 = paging/halfpage, 1 = line
19 1 << 4: 0 = paging, 1 = halfpage aka buffer
21 enum { ScrollJumpTo
, ScrollMove
};
22 enum { OrientationVert
, OrientationHoriz
= (1 << 1) };
24 DirectionBottom
= (1 << 2),
25 DirectionLeft
= OrientationHoriz
,
26 DirectionRight
= OrientationHoriz
| (1 << 2)
33 1 << 0: 0 = Reload/Cancel 1 = Forward/Back
35 1 << 1: 0 = Forward 1 = Back
37 1 << 1: 0 = Cancel 1 = Force/Normal Reload
38 1 << 2: 0 = Force Reload 1 = Reload
40 enum { NavigationForwardBack
= 1, NavigationReloadActions
= (1 << 1) };
41 enum { NavigationCancel
,
42 NavigationBack
= (NavigationForwardBack
| 1 << 1),
43 NavigationForward
= (NavigationForwardBack
),
44 NavigationReload
= (NavigationReloadActions
| 1 << 2),
45 NavigationForceReload
= NavigationReloadActions
48 1 << 1: ClipboardPrimary (X11)
50 1 << 3: 0 = SourceSelection 1 = SourceURL
52 enum { ClipboardPrimary
= 1 << 1, ClipboardGTK
= 1 << 2 };
53 enum { SourceSelection
, SourceURL
= 1 << 3 };
55 1 << 0: 0 = ZoomReset 1 = ZoomIn/Out
56 1 << 1: 0 = ZoomOut 1 = ZoomIn
57 1 << 2: 0 = TextZoom 1 = FullContentZoom
61 ZoomIn
= ZoomOut
| (1 << 1)
63 enum { ZoomText
, ZoomFullContent
= (1 << 2) };
65 0 = Info, 1 = Warning, 2 = Error
66 1 << 2: 0 = AutoHide 1 = NoAutoHide
68 1 << 3: 1 = Silent (no echo)
70 enum { Info
, Warning
, Error
, NoAutoHide
= 1 << 2, Silent
= 1 << 3 };
71 enum { NthSubdir
, Rootdir
};
72 enum { InsertCurrentURL
= 1 };
73 enum { Increment
, Decrement
};
75 1 << 0: 0 = DirectionNext 1 = DirectionPrev (Relative)
76 1 << 0: 0 = DirectionBackwards 1 = DirectionForward (Absolute)
78 1 << 1: 0 = DirectionRelative 1 = DirectionAbsolute
80 1 << 2: 0 = CaseInsensitive 1 = CaseSensitive
81 1 << 3: 0 = No Wrapping 1 = Wrapping
83 enum { DirectionRelative
, DirectionAbsolute
= 1 << 1 };
84 enum { DirectionNext
, DirectionPrev
, HideCompletion
};
85 enum { DirectionBackwards
= DirectionAbsolute
, DirectionForward
=
86 (1 << 0) | DirectionAbsolute
};
87 enum { CaseInsensitive
, CaseSensitive
= 1 << 2 };
88 enum { Wrapping
= 1 << 3 };
100 gboolean(*func
) (const Arg
* func
);
113 gboolean(*func
) (const Arg
* arg
);
129 gboolean(*func
) (const Arg
* arg
);
145 #define MOUSE_BUTTON_1 1
146 #define MOUSE_BUTTON_2 2
147 #define MOUSE_BUTTON_3 3
148 #define MOUSE_BUTTON_4 4
149 #define MOUSE_BUTTON_5 5
150 #define BUFFERSIZE 255
151 #define MAXTAGSIZE 200
154 #define QUICKMARK_FILE "%s/.config/vimprobable/quickmarks", getenv("HOME")