1package options
2
3// AddDefaultOptions adds internal options that can be set by the user through
4// the command-line interface.
5func (o *Options) AddDefaultOptions() {
6	o.Add(NewBoolOption("center"))
7	o.Add(NewStringOption("columns"))
8	o.Add(NewStringOption("sort"))
9	o.Add(NewStringOption("topbar"))
10}
11
12// Defaults is the default, internal configuration file.
13const Defaults string = `
14# Global options
15set nocenter
16set columns=artist,track,title,album,year,time
17set sort=file,track,disc,album,year,albumartistsort
18set topbar="|$shortname $version||;${tag|artist} - ${tag|title}||${tag|album}, ${tag|year};$volume $mode $elapsed ${state} $time;|[${list|index}/${list|total}] ${list|title}||;;"
19
20# Song tag styles
21style album teal
22style artist yellow
23style date green
24style time darkmagenta
25style title white bold
26style disc darkgreen
27style track green
28style year green
29style originalyear darkgreen
30
31# Tracklist styles
32style allTagsMissing red
33style currentSong black yellow
34style cursor black white
35style header green bold
36style mostTagsMissing red
37style selection white blue
38
39# Topbar styles
40style elapsedTime green
41style elapsedPercentage green
42style listIndex darkblue
43style listTitle blue bold
44style listTotal darkblue
45style mute red
46style shortName bold
47style state default
48style switches teal
49style tagMissing red
50style topbar darkgray
51style version gray
52style volume green
53
54# Other styles
55style commandText default
56style errorText white red bold
57style readout default
58style searchText white bold
59style sequenceText teal
60style statusbar default
61style visualText teal
62
63# Keyboard bindings: cursor and viewport movement
64bind <Up> cursor up
65bind k cursor up
66bind <Down> cursor down
67bind j cursor down
68bind <PgUp> viewport pgup
69bind <PgDn> viewport pgdn
70bind <C-b> viewport pgup
71bind <C-f> viewport pgdn
72bind <C-u> viewport halfpgup
73bind <C-d> viewport halfpgdn
74bind <C-y> viewport up
75bind <C-e> viewport down
76bind <Home> cursor home
77bind gg cursor home
78bind <End> cursor end
79bind G cursor end
80bind gc cursor current
81bind R cursor random
82bind b cursor prevOf album
83bind e cursor nextOf album
84bind H cursor high
85bind M cursor middle
86bind L cursor low
87bind zb viewport high
88bind z- viewport high
89bind zz viewport middle
90bind z. viewport middle
91bind zt viewport low
92bind z<Enter> viewport low
93
94# Keyboard bindings: input mode
95bind : inputmode input
96bind / inputmode search
97bind <F3> inputmode search
98bind v select visual
99bind V select visual
100
101# Keyboard bindings: player and mixer
102bind <Enter> play selection
103bind <Space> pause
104bind s stop
105bind h previous
106bind l next
107bind + volume +2
108bind - volume -2
109bind <left> seek -5
110bind <right> seek +5
111bind <Alt-M> volume mute
112bind S single
113
114# Keyboard bindings: other
115bind <C-c> quit
116bind <C-l> redraw
117bind <C-s> sort
118bind i print file
119bind gt list next
120bind gT list previous
121bind t list next
122bind T list previous
123bind <C-w>d list duplicate
124bind <C-g> list remove
125bind <C-j> isolate artist
126bind <C-t> isolate albumartist album
127bind & select nearby albumartist album
128bind m select toggle
129bind a add
130bind <Delete> cut
131bind x cut
132bind y yank
133bind p paste after
134bind P paste before
135`
136