2 (c) 2009 by Leon Winter
3 (c) 2009, 2010 by Hannes Schueller
4 (c) 2009, 2010 by Matto Fransen
5 (c) 2010 by Hans-Peter Deifel
6 (c) 2010 by Thomas Adams
11 #define LENGTH(x) (sizeof(x)/sizeof(x[0]))
14 enum { ModeNormal
, ModePassThrough
, ModeSendKey
, ModeInsert
, ModeHints
}; /* modes */
15 enum { TargetCurrent
, TargetNew
}; /* target */
17 1 << 0: 0 = jumpTo, 1 = scroll
18 1 << 1: 0 = top/down, 1 = left/right
19 1 << 2: 0 = top/left, 1 = bottom/right
20 1 << 3: 0 = paging/halfpage, 1 = line
21 1 << 4: 0 = paging, 1 = halfpage aka buffer
23 enum { ScrollJumpTo
, ScrollMove
};
24 enum { OrientationVert
, OrientationHoriz
= (1 << 1) };
26 DirectionBottom
= (1 << 2),
27 DirectionLeft
= OrientationHoriz
,
28 DirectionRight
= OrientationHoriz
| (1 << 2)
35 1 << 0: 0 = Reload/Cancel 1 = Forward/Back
37 1 << 1: 0 = Forward 1 = Back
39 1 << 1: 0 = Cancel 1 = Force/Normal Reload
40 1 << 2: 0 = Force Reload 1 = Reload
42 enum { NavigationForwardBack
= 1, NavigationReloadActions
= (1 << 1) };
43 enum { NavigationCancel
,
44 NavigationBack
= (NavigationForwardBack
| 1 << 1),
45 NavigationForward
= (NavigationForwardBack
),
46 NavigationReload
= (NavigationReloadActions
| 1 << 2),
47 NavigationForceReload
= NavigationReloadActions
50 1 << 1: ClipboardPrimary (X11)
52 1 << 3: 0 = SourceSelection 1 = SourceURL
54 enum { ClipboardPrimary
= 1 << 1, ClipboardGTK
= 1 << 2 };
55 enum { SourceSelection
, SourceURL
= 1 << 3 };
57 1 << 0: 0 = ZoomReset 1 = ZoomIn/Out
58 1 << 1: 0 = ZoomOut 1 = ZoomIn
59 1 << 2: 0 = TextZoom 1 = FullContentZoom
63 ZoomIn
= ZoomOut
| (1 << 1)
65 enum { ZoomText
, ZoomFullContent
= (1 << 2) };
67 0 = Info, 1 = Warning, 2 = Error
68 1 << 2: 0 = AutoHide 1 = NoAutoHide
70 1 << 3: 1 = Silent (no echo)
72 enum { Info
, Warning
, Error
, NoAutoHide
= 1 << 2, Silent
= 1 << 3 };
73 enum { NthSubdir
, Rootdir
};
74 enum { InsertCurrentURL
= 1 };
75 enum { Increment
, Decrement
};
77 1 << 0: 0 = DirectionNext 1 = DirectionPrev (Relative)
78 1 << 0: 0 = DirectionBackwards 1 = DirectionForward (Absolute)
80 1 << 1: 0 = DirectionRelative 1 = DirectionAbsolute
82 1 << 2: 0 = CaseInsensitive 1 = CaseSensitive
83 1 << 3: 0 = No Wrapping 1 = Wrapping
85 enum { DirectionRelative
, DirectionAbsolute
= 1 << 1 };
86 enum { DirectionNext
, DirectionPrev
, HideCompletion
};
87 enum { DirectionBackwards
= DirectionAbsolute
, DirectionForward
=
88 (1 << 0) | DirectionAbsolute
};
89 enum { CaseInsensitive
, CaseSensitive
= 1 << 2 };
90 enum { Wrapping
= 1 << 3 };
102 gboolean(*func
) (const Arg
* func
);
115 gboolean(*func
) (const Arg
* arg
);
131 gboolean(*func
) (const Arg
* arg
);
147 #define MOUSE_BUTTON_1 1
148 #define MOUSE_BUTTON_2 2
149 #define MOUSE_BUTTON_3 3
150 #define MOUSE_BUTTON_4 4
151 #define MOUSE_BUTTON_5 5
152 #define BUFFERSIZE 255
153 #define MAXTAGSIZE 200
156 #define QUICKMARK_FILE "%s/.config/vimprobable/quickmarks", getenv("HOME")