This repository has been archived by the owner on Oct 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
states.go
55 lines (50 loc) · 1.88 KB
/
states.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Package states defines constants of the substates used in golem's state
// machine.
package states
import "github.com/tkerber/golem/cmd"
const (
// NormalSubstateNormal indicates "normal mode"
NormalSubstateNormal cmd.Substate = iota
// NormalSubstateQuickmark indicates quickmark bindings mode.
NormalSubstateQuickmark
// NormalSubstateQuickmarkTab indicates quickmark bindings mode opening in
// a new tab.
NormalSubstateQuickmarkTab
// NormalSubstateQuickmarkWindow indicates quickmark bindings mode opening
// in a new window.
NormalSubstateQuickmarkWindow
// NormalSubstateQuickmarksRapid indicates quickmark bindings mode opening
// several quickmarks in background tabs.
NormalSubstateQuickmarksRapid
)
const (
// CommandLineSubstateCommand indicates a command being entered.
CommandLineSubstateCommand cmd.Substate = iota
// CommandLineSubstateSearch indicates a search being entered.
CommandLineSubstateSearch
// CommandLineSubstateBackSearch indicates a backwards search being entered.
CommandLineSubstateBackSearch
)
const (
// StatusSubstateMinor indicates a minor, inconsequential status.
StatusSubstateMinor cmd.Substate = iota
// StatusSubstateMajor indicates a more important status.
StatusSubstateMajor
// StatusSubstateError indicates an error status.
StatusSubstateError
)
const (
// HintsSubstateFollow indicates to follow (click) an item.
HintsSubstateFollow cmd.Substate = iota
// HintsSubstateBackground indicates to follow a link in a background tab.
HintsSubstateBackground
// HintsSubstateRapid indicates to follow several links in background tabs.
HintsSubstateRapid
// HintsSubstateTab indicates to follow a link in a new tab.
HintsSubstateTab
// HintsSubstateWindow indicates to follow a link in a new window.
HintsSubstateWindow
// HintsSubstateSearchEngine indicates to register a new search engine on
// the page.
HintsSubstateSearchEngine
)