forked from ryanflannery/vitunes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitunes.1
More file actions
1022 lines (1017 loc) · 27.6 KB
/
vitunes.1
File metadata and controls
1022 lines (1017 loc) · 27.6 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.\" Copyright (c) 2010, 2011 Ryan Flannery <ryan.flannery@gmail.com>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate$
.Dt VITUNES 1
.Os
.Sh NAME
.Nm vitunes
.Nd A curses media indexer and player for vi-users
.Sh SYNOPSIS
.Nm vitunes
.Op Fl d Ar database-file
.Op Fl e Ar command Op argument ...
.Op Fl f Ar config-file
.Op Fl m Ar media-backend
.Op Fl p Ar playlist-dir
.Sh DESCRIPTION
.Nm
is a curses-based music player and playlist manager for *nix whose goals are
a minimalistic appearance, strong vi-like bindings, and quick playlist
creation/management.
.Pp
It is not intended to be a feature-rich media player, but rather a quick,
vi-like media indexer and playlist manager that also happens to be able to
play the media it indexes (via
.Xr mplayer 1 ).
.Pp
.Nm
accepts the following command line options:
.Bl -tag -width Fl
.It Fl d Ar database-file
Specifies the database containing all known media files and their meta
information that
.Nm
should use.
If you're using this option in conjunction with an e-command, this option
.Sy must
be specified before the e-command.
.Pp
The default location is
.Pa ~/.vitunes/vitunes.db .
.It Fl e Ar command Cm options
Execute one of the available e-commands to manipulate the database that
.Nm
uses.
See the section below titled
.Sx E-COMMANDS
for more information.
.It Fl c Ar command
Execute a command in the running
.Nm
instance.
.It Fl f Ar config-file
Specifies the path of the configuration file
.Nm
should load.
See the section below titled
.Sx CONFIGURATION FILE
for information on what the configuration may contain.
.Pp
The default location is
.Pa ~/.vitunes/vitunes.conf .
.It Fl m Ar media-backend
Specify the media backend to use for playback. The current list of supported
media backends are:
.Bl -tag -width "mplayer"
.It Cm mplayer
Uses a
.Xr fork 2
/
.Xr execvp 3 'd
instance of
.Xr mplayer 1
for all playback. Note that the mplayer binary
.Sy must
be in your
.Ev PATH
environment variable.
.El
.Pp
Currently only
.Cm mplayer
is supported.
.It Fl p Ar playlist-dir
Specifies the directory containing all of the playlists
.Nm
will load and use.
Any new playlists created while running
.Nm
will be created here.
.Pp
The default location is
.Pa ~/.vitunes/playlists/ .
.El
.Ss Getting Started
.Nm
works by maintaining a database of tagged media files.
The database
.Sy must
be created and populated before
.Nm
can be run normally.
.Pp
After that, files can be added, modified, or removed from the database, and
on the next invocation,
.Nm
will see the changes (additionally, the database can be re-loaded at runtime).
.Bl -bullet
.It
All database management is done using "e-commands", which are always of the
form:
.Dl $ vitunes -e command-name [ parameters ... ]
.It
Once the database has been created,
.Nm
can be run normally with the following:
.Dl $ vitunes
.It
All playlist management is done while
.Nm
is running normally.
.El
.Pp
See the
.Sx E-COMMANDS
section below for more information on database management.
To get started quickly, simply do the following:
.Bl -enum
.It
Create initial empty database with
.Dl $ vitunes -e init
.It
Add files to your database with
.Dl $ vitunes -e add ~/music/ /path/to/more/music/
.It
Then just start normally with
.Dl $ vitunes
.El
.Ss The Display
When run normally, the default display will show the following 4 windows:
.Bl -tag -width Fl
.It player
This window occupies the top row of the display and contains information about
the currently playing song (if any) and the current play-mode.
.It command/status
This window occupies the bottom row of the display.
It behaves very similar to the command/status window in
.Xr vi 1 .
.It library
This window occupies the left-side of the screen and shows each playlist, in
addition to the library and filter-buffer.
The filter buffer is where the results of every
.Pf : Ic filter Ar ...
command are temporarily stored.
.br
Playlists with unsaved changes appear bold and have their name preceded with
a '+'.
.It playlist
This window is to the right of the library window and occupies most of the
display.
It shows the contents of whichever playlist has currently been selected in
the library window.
.El
.Ss Useful Keybindings
The following is only a partial listing keybindings, but are the most
frequently used.
.Bl -tag -width Ds
.It Cm Enter
Load the selected playlist for viewing or begin playback of the selected file.
.It Cm Tab
Toggle focus between the library and playlist windows.
.It Cm z
Pause playback.
.It Cm s
Stop playback.
.It Cm f/b
Seek forwards/backwards 10 seconds.
.It Cm F/B
Seek forwards/backwards 1 minute.
.It Cm m
In the playlist window, show/hide information for the current file.
.El
.Pp
See the
.Sx KEYBINDING ACTIONS
section for a complete listing.
.Sh E-COMMANDS
Below is a brief summary of each e-command available in
.Nm .
More detailed usage information and examples for each can be obtained by
issuing:
.Dl $ vitunes -e help command-name
.Bl -tag -width Ds
.It Nm Fl e Cm init
Create the necessary database file and playlist directory used by
.Nm .
This command only needs to be run once, when
.Nm
is first run.
If either of these already exist, they remain unchanged.
.It Nm Fl e Cm add Ar path1 Op Ar path2 ...
This command takes any number of files/directories as parameters.
Each file is scanned for meta-information and if found, added to the
database.
Directories are search recursively.
.Pp
.Xr TagLib 3
is used for all meta-extraction, which includes the following fields:
album, artist, comment, play-length, title, track number, and year.
.It Nm Fl e Cm addurl Ar url
This command is used to add non-files (things like URL's for Internet radio
stations) to the database, where the meta-information cannot be determined
automatically.
It can also be used to update the meta-info of an existing URL in the
database.
.Pp
After executing, you are prompted to enter all of your own information.
.It Nm Fl e Cm check Oo Fl rsd Oc Ar file1 Op Ar file2 ...
Scan the files specified and display their meta-information as present in
the files themselves or in the
.Nm
database.
This is useful for checking if a file is in the database.
.It Nm Fl e Cm flush Op Fl t Ar time-format
Dump the contents of the database to stdout in an easy-to-parse format,
optionally with the specified
.Xr strftime 3
compatible format for times.
.It Nm Fl e Cm help Ar command
Display detailed usage information and examples for the e-command specified
by
.Ar command .
.It Nm Fl e Cm rm Oo Fl f Oc Ar file/url
Remove a file/URL from the database.
.It Nm Fl e Cm rmfile Oo Fl f Oc Ar file/url
Alias for the "rm" e-command.
.It Nm Fl e Cm tag Oo options Oc Ar file1 Op Ar file2 ...
Add/modify the meta-information tags of raw files.
There are many options to this e-command.
See the help page for more information:
.Dl $ vitunes -e help tag
.It Nm Fl e Cm update Op Fl s
Load the existing database and check each file to see if its meta-information
has been updated, or if the file has been removed.
The database is updated accordingly.
.El
.Sh RUN-TIME COMMANDS
Below is a listing of all run-time commands supported by
.Nm .
.Pp
All commands are entered by typing ':' followed by the command name and any
parameters (just like in
.Xr vi 1 ).
.Pp
Note that abbreviations are also supported.
That is, entering any non-ambiguous abbreviation of a command name will also
execute the command.
.Bl -tag -width Ds
.It Pf : Ic bind Ar action Ar keycode
This will bind the action specified by
.Ar action
to the keycode specified by
.Ar keycode .
After this command is issued, entering the inputting the specified
.Ar keycode
will result in firing the specified
.Ar action .
.Pp
See the section
.Sx SPECIFYING KEYCODES
for details on how to specify
.Ar keycode ,
and section
.Sx KEYBINDING ACTIONS
for a listing of all actions
.Nm
supports.
.It Pf : Ic color Cm item Ns = Ns Ar fg Ns , Ns Ar bg
Change the color of the given
.Cm item
to
.Ar fg
colored text on a
.Ar bg
colored background.
.Pp
Available values for
.Cm item
are:
.Pp
.Bl -tag -width "playing-playlist" -compact -offset indent
.It Em Item Name
.Em Description
.It Cm bars
The bars dividing the various windows.
.It Cm player
The player window.
.It Cm status
The status window.
.It Cm library
The library window.
.It Cm playlist
The playlist window.
.It Cm errors
Error messages in the status window.
.It Cm messages
Informational messages in the status window.
.It Cm tildas-library
The tildas in empty rows of the library window.
.It Cm tildas-playlist
The tildas in empty rows of the playlist window.
.It Cm playing-library
Currently playing playlist in the library window.
.It Cm playing-playlist
Currently playing file in the playlist window.
.It Cm current-inactive
Current row in the inactive window.
.It Cm artist
The artist column in the playlist window.
.It Cm album
The album column in the playlist window.
.It Cm title
The title column in the playlist window.
.It Cm track
The track column in the playlist window.
.It Cm year
The year column in the playlist window.
.It Cm genre
The genre column in the playlist window.
.It Cm comment
The comment column in the playlist window.
.It Cm length
The play-length column in the playlist window.
.El
.Pp
Available colors for
.Ar fg
and
.Ar bg
are: white, black, red, green, yellow, blue, magenta, cyan, and default.
The color default is whatever the terminal uses as the default foreground
or background color.
.It Pf : Ic display Pq Cm reset | Cm show | Ar display-description
The display command is used to change which columns are displayed in the
playlist window, their order, their width, and their alignment.
.Pp
The format of
.Ar display-description
is a comma separated list of:
.Qq Oo Ar \&- Oc Ns Ar field . Ns Ar size .
.Pp
Valid values for
.Ar field
are: album, artist, comment, genre, length, title, track, and year.
The
.Ar size
field indicates the number of columns.
If
.Ar field
is preceded with a
.Ar \&-
the field will be right-aligned.
As an example, the command:
.Pp
.Pf : Ic display Ar title.10,artist.20,-track.4
.Pp
would only show the title, artist, and track fields, in that order, where the
title field is 10 columns wide, the artist field is 20 columns wide, and the
track field is 4 columns wide and right-aligned.
.Pp
The default display can be restored with:
.Pp
.Pf : Ic display Cm reset
.Pp
The current display description can be seen with:
.Pp
.Pf : Ic display Cm show
.Pp
.It Pf : Ic filter Ns Oo ! Oc Ar token Op Ar token2 ...
The filter command is used to filter out all songs from the currently viewed
playlist that do not match (or do match) the provided list of tokens.
A song matches the list of tokens if each token appears somewhere in the
song's meta-information or filename.
.Pp
If
.Qq Pf : Ic filter
is used, all records not matching the list of tokens are removed from the
current playlist.
If
.Qq Pf : Ic filter!
is used, all records that do match the list of tokens are removed from the
current playlist.
.Pp
The list of tokens is simply any list of strings, each possibly preceded with
an exclamation point.
If a token is preceded with an exclamation point, it will only match a song
if it does not appear anywhere in the song's meta-information or filename.
.Pp
For example, the following:
.Pp
.Pf : Ic filter Ar nine nails
.Pp
would match all songs that contained both "nine" and "nails", and remove all
other songs from the current playlist.
However,
.Pp
.Pf : Ic filter! Ar nine nails
.Pp
would remove all songs that DO contain both "nine" and "nails."
.Pp
The query:
.Pp
.Pf : Ic filter Ar nine !nails
.Pp
would match all songs that contain "nine" and NOT "nails".
All other songs would be removed from the current playlist.
.It Pf : Ic mode Pq Cm linear | Cm loop | Cm random
Set the current playmode to one of the three available options.
The options are:
.Bl -tag -width Fl
.It Cm linear
Songs in a playlist are played in the order they appear until the end is
reached.
.It Cm loop
Like linear, but when the end of the playlist is reached, playback continues
at the beginning of the playlist.
.It Cm random
Songs are chosen at random from the playlist.
.El
.It Pf : Ic new Op Ar name
Create a new, empty playlist. If
.Ar name
is provided, the new playlist will be named accordingly unless a playlist
with that name already exists.
If no name is provided, the default is "untitled".
.It Pf : Ic q Ns Oo ! Oc
Quit
.Nm .
If there are playlists with unsaved changes, then you are notified of this and
prevented from quitting.
You can forcefully quit by using
.Pf : Ic q Ns ! ,
and any unsaved changes to any playlists will be lost.
.Pp
Note that playlists with unsaved changes appear bold in the library window.
.It Pf : Ic reload Pq Cm db | Cm conf
The reload command is used to reload either the database or configuration
file while
.Nm
is running.
Handy if you update your database using an e-command while also running
.Nm .
.It Pf : Ic set Cm property Ns = Ns Ar value
The set command is used to set various properties within vitunes.
For properties that accept a value of
.Ar bool ,
valid values are 'true' and 'false'.
.Pp
The following properties are available:
.Bl -tag -width Fl
.It Cm lhide Ns = Ns Ar bool
If set to true, the library window will be hidden (disappear) when it does
not have focus.
.It Cm lwidth Ns = Ns Ar number
Set the width of the library window to
.Ar number
columns wide.
Note that the number provided must be greater than 0 and less than the width
of the terminal.
.It Cm match-fname Ns = Ns Ar bool
When searching or filtering a playlist, normally the filenames are also
included in the matching algorithm.
This can sometimes be undesirable, particularly if, for example, all of your
music/media reside in a directory named "media" and you're trying to search
for a file with the word "media" in the title.
.Pp
To disable this behavior, set match-fnames to false.
.It Cm save-sorts Ns = Ns Ar bool
Most operations that change a playlist (such as paste/cut) set
the 'needs-saving' flag on the playlist, such that you are prompted on
exiting vitunes that there is a playlist with unsaved changes.
By default, sorting a playlist does not do this.
.Pp
To change this behavior, and be prompted to save sorts on exit, set this
option to true.
.El
.It Pf : Ic sort Ar sort-description
Sort the currently viewing playlist using the provided
.Ar sort-description ,
which is a comma separated list of:
.Qq Oo Ar \&- Oc Ns Ar field ,
specifying which fields to sort by and if they should be sorted
ascending or descending.
.Pp
Valid values for
.Ar field
are: album, artist, comment, genre, length, title, track, and year.
Each field is sorted ascending by default, unless the field is preceeded
with the dash
.Ar \&- ,
in which case that field is sorted descending.
.Pp
As an example, the following command:
.Pp
.Ic :sort artist,-album,title
.Pp
would sort all records in the current playlist by artist (ascending) first,
then album-name (descending), then title (ascending).
.Pp
Note that while most operations on playlists set the "needs-saving" flag
(so you are prompted when quiting
.Nm
that the playlist has unsaved changes), sorting a playlist does not do this.
This is intentional.
If you wish this behavior to be changed, see the "save-sorts" option for the
.Ic set
command.
.It Pf : Ic unbind Pq Cm * | Cm action Ar action | Cm key Ar keycode
This command is used to remove existing keybindings.
It has three forms.
The first is simply:
.Pp
.Ic unbind Ar *
.Pp
which will remove all existing keybindings.
This is handy in a configuration file where you may want to define all custom
keybindings.
Issuing this at runtime will leave you with an instance of
.Nm
that will not respond to any keybdings!
.Pp
The second form is used to unbind actions:
.Pp
.Ic unbind action Ar action
.Pp
This will remove any keybindings for the action specified by
.Ar action .
.Pp
The third form is used to unbind keys:
.Pp
.Ic unbind key Ar keycode
.Pp
This will remove any action currently bound to the key specified by
.Ar keycode .
.Pp
See the section
.Sx SPECIFYING KEYCODES
for details on how to specify
.Ar keycode ,
and section
.Sx KEYBINDING ACTIONS
for a listing of all actions
.Nm
supports.
.It Pf : Ic w Ns Oo ! Oc Op Ar name
Save the currently viewing playlist.
If a
.Ar name
is provided, then the playlist will be saved with this new name.
If, however, a playlist already exists with that name, then you will be
prevented from saving with that name unless '!' is provided, in which case
the existing playlist with that name will be deleted.
.It Pf : Ic toggle Op Ar commands
Set the commands list to
.Ar commands.
The commands are seperated by a /. Triggering the toggle action executes
the command at the current list index and increases the index. So by
executing the commands, you cycle through the list.
.El
.Sh SPECIFYING KEYCODES
This section describes how to specify keycodes used in both the
.Pf : Ic bind
and
.Pf : Ic unbind
commands.
.Pp
Keycodes are specified in the following fashion:
.Pp
.Dl Oo Cm Control Oc Pq Ar key | Ar SpecialKey
.Pp
Here,
.Ar key
is used to specify the actual, printable character entered which is
case-sensitive (e.g. 'j', 'p', 'P'), and
.Ar SpecialKey
is used to specify various non-printable characters (such as the Page-Up
key).
.Pp
If the string
.Qq Control
is also specified, then the keycode only applies when the control key is
pressed in conjunction with the
.Ar key
or
.Ar SpecialKey .
.Pp
Although
.Cm key
is case-sensitive ('p' and 'P' are treated differently), both
.Ar SpecialKey
and
.Qq Control
are case-insensitive.
.Pp
The currently supported list of non-printable characters available for
.Ar SpecialKey
are:
.Pp
.Bl -column -compact -offset indent "ValueX" "DescriptionX"
.It Em Value Ta Em Description
.It Cm PageUp Ta The page-up key.
.It Cm PageDown Ta The page-down key.
.It Cm Up Ta The up-arrow key.
.It Cm Down Ta The down-arrow key.
.It Cm Left Ta The left-arrow key.
.It Cm Right Ta The right-arrow key.
.It Cm Backspace Ta The backspace key.
.It Cm Enter Ta The enter key.
.It Cm Space Ta The space key.
.It Cm Tab Ta The tab key.
.El
.Pp
Some examples of using keycodes and the
.Pf : Ic bind
run-time command are:
.Bd -literal
bind paste_after p
bind paste_before P
bind scroll_up_halfpage Control u
bind scroll_down_halfpage Control d
.Ed
.Sh KEYBINDING ACTIONS
The current list of available actions that keys may be bound to is the
following.
For each action, the default keys bound to them are also listed.
.Bl -tag -width "scroll_down_wholepage"
.It Em Action Name
.Em Description
.It Cm scroll_up
Scroll the current row in the current window up by one line.
.br
DEFAULT BINDINGS:
.Cm k, -, Up
.It Cm scroll_down
Scroll the current row in the current window down by one line.
.br
DEFAULT BINDINGS:
.Cm j, Down
.It Cm scroll_up_page
Scroll the current window up by one line.
.br
DEFAULT BINDINGS:
.Cm Control y
.It Cm scroll_down_page
Scroll the current window down by one line.
.br
DEFAULT BINDINGS:
.Cm Control e
.It Cm scroll_up_halfpage
Scroll the current window up one half-page.
.br
DEFAULT BINDINGS:
.Cm Control u
.It Cm scroll_down_halfpage
Scroll the current window down one half-page.
.br
DEFAULT BINDINGS:
.Cm Control d
.It Cm scroll_up_wholepage
Scroll the current window up one whole page.
.br
DEFAULT BINDINGS:
.Cm Control b, PageUp
.It Cm scroll_down_wholepage
Scroll the current window down one whole page.
.br
DEFAULT BINDINGS:
.Cm Control f, PageDown
.It Cm scroll_left
Scroll the current window to the left one column.
.br
DEFAULT BINDINGS:
.Cm h, Left, Backspace
.It Cm scroll_right
Scroll the current window to the right one column.
.br
DEFAULT BINDINGS:
.Cm l, Right, Space
.It Cm scroll_leftmost
Scroll the current window to the left as far as possible.
.br
DEFAULT BINDINGS:
.Cm ^, 0, \&|
.It Cm scroll_rightmost
Scroll the current window to the right as far as possible.
.br
DEFAULT BINDINGS:
.Cm $
.It Cm jumpto_screen_top
Move the current line to the first line in the current window.
.br
DEFAULT BINDINGS:
.Cm H
.It Cm jumpto_screen_middle
Move the current line to the middle line in the current window.
.br
DEFAULT BINDINGS:
.Cm M
.It Cm jumpto_screen_bottom
Move the current line to the bottom line in the current window.
.br
DEFAULT BINDINGS:
.Cm L
.It Cm jumpto_line
Jump to either a specified line (if a global input number is present) or to
the last line in the current window's buffer.
.br
DEFAULT BINDINGS:
.Cm G
.It Cm jumpto_percent
Using the global input number N, jump to the line N% the way through the
current window's buffer.
.br
DEFAULT BINDINGS:
.Cm %
.It Cm go
Go to a specific location within the current window. This is planned to be
similar to
.Xr vim 1 's
use of the 'g' keybinding, with multiple suffixes. For now, only 'gg' is
supported, and this takes you to the first line in the current window's
buffer.
.br
DEFAULT BINDINGS:
.Cm g
.It Cm search_forward
Begin a search for the entered string searching forward in the current window.
The current row will be updated to the next matching row.
.br
DEFAULT BINDINGS:
.Cm /
.It Cm search_backward
Begin a search for the entered string searching backwards in the current
The current row will be updated to the next matching row.
window.
.br
DEFAULT BINDINGS:
.Cm \&?
.It Cm find_next_forward
Using the previous search-string, search in the same direction as the search
was input for the next matching row.
.br
DEFAULT BINDINGS:
.Cm n
.It Cm find_next_backward
Using the previous search-string, search in the opposite direction as the
search was input for the next matching row.
.br
DEFAULT BINDINGS:
.Cm N
.It Cm cut
Remove the following N lines from the current window, placing them in the copy
buffer, where N is the global input number.
Note that if the library window is active, only one row (playlist) can be
cut/deleted at a time, and that this action cannot be undone.
.br
DEFAULT BINDINGS:
.Cm d
.It Cm visual
Begin visual mode. This is only available in the playlist window, and once
begun, only keybindings that move the cursor within the current window are
allowed. Visual mode is exited when either a yank or delete operation has
been performed, or when the Escape key is pressed.
.br
DEFAULT BINDINGS:
.Cm v, V
.It Cm yank
Copy the following N lines from the current window into the copy buffer, where
N is the global input number.
This action cannot be used in the library window.
.br
DEFAULT BINDINGS:
.Cm y
.It Cm paste_after
Paste the contents of the copy buffer after the current row in the playlist
window.
This action cannot be used in the library window.
.br
DEFAULT BINDINGS:
.Cm p
.It Cm paste_before
Paste the contents of the copy buffer before the current row in the playlist
window.
This action cannot be used in the library window.
.br
DEFAULT BINDINGS:
.Cm P
.It Cm undo
Undo the previous action on the currently viewed playlist.
This action cannot be used in the library window.
.br
DEFAULT BINDINGS:
.Cm u
.It Cm redo
Redo the previously undone action on the currently viewed playlist.
This action cannot be used in the library window.
.br
DEFAULT BINDINGS:
.Cm Control r
.It Cm quit
Exit
.Nm .
If there are unsaved changes in any playlists you will be prevented from
exiting until you either save those changes or issue a ":q!" command.
.br
DEFAULT BINDINGS:
.Cm Control c, Control /
.It Cm redraw
Clear and re-draw the entire display.
.br
DEFAULT BINDINGS:
.Cm Control l
.It Cm command_mode
Enter command-mode, where the commands listed in the
.Sx RUN-TIME COMMANDS
section may be issued.
.br
DEFAULT BINDINGS:
.Cm \&:
.It Cm shell
Enter a command to be executed outsite of
.Nm
and in the current shell environment.
The output of the execution is shown before control and the display returns to
.Nm .
.br
DEFAULT BINDINGS:
.Cm \&!
.It Cm switch_windows
Toggle focus between the library and playlist windows.
.br
DEFAULT BINDINGS:
.Cm Tab
.It Cm show_file_info
Show the file information (including meta-information) for the current row/file
in the playlist window.
This action does not work in the library window.
.br
DEFAULT BINDINGS:
.Cm m
.It Cm load_playlist
Load the playlist specified by the current row in the library window.
.br
DEFAULT BINDINGS:
.Cm Enter
.It Cm media_play
Begin playing the file specified by the current row in the playlist window.
.br
DEFAULT BINDINGS:
.Cm Enter
.It Cm media_pause
Pause playback of any playing media.
.br
DEFAULT BINDINGS:
.Cm z
.It Cm media_stop
Stop all playback of any playing media.
.br
DEFAULT BINDINGS:
.Cm s
.It Cm seek_forward_seconds
Seek forwards 10 seconds in any playing media.
.br
DEFAULT BINDINGS:
.Cm f, \&]
.It Cm seek_backward_seconds
Seek backwards 10 seconds in any playing media.
.br
DEFAULT BINDINGS:
.Cm b, \&[
.It Cm seek_forward_minutes
Seek forwards 1 minute in any playing media.
.br
DEFAULT BINDINGS:
.Cm F, \&}
.It Cm seek_backward_minutes
Seek backwards 1 minute in any playing media.
.br
DEFAULT BINDINGS:
.Cm B, \&{
.It Cm media_next
Play the next song in the playlist.
.br
DEFAULT BINDINGS:
.Cm \&)
.It Cm media_prev
Play the previous song in the playlist.
.br
DEFAULT BINDINGS:
.Cm \&(
.It Cm volume_decrease
Decrease the volume.
.br
DEFAULT BINDINGS:
.Cm <
.It Cm volume_increase
Increase the volume.
.br
DEFAULT BINDINGS:
.Cm >
.It Cm toggle_forward
Execute the next command from the toggle list specified by the provided
register.
.br
DEFAULT BINDINGS:
.Cm t
.It Cm toggle_backward
Execute the previous command from the toggle list specified by the provided
register.
.br
DEFAULT BINDINGS:
.Cm T
.El
.Pp
Some examples of using the above actions and keycodes to define the default
keybdings are:
.Bd -literal
bind paste_after p
bind paste_before P
bind scroll_up_halfpage Control u
bind scroll_down_halfpage Control d
.Ed
.Sh CONFIGURATION FILE
The configuration file loaded by
.Nm
is relatively straight-forward.
Each line may be one of the following:
.Pp
.Bl -bullet -compact
.It
A comment, which starts with a '#'.
.It
An empty line.
.It
One of the commands from the
.Sx RUN-TIME COMMANDS
section above.
.El
.Pp
That's it.
As such, review the list of commands above.
.Pp
An example configuration file that would setup some hideous DOS-like colors
is:
.Bd -literal
# setup colors
color bars=white,blue
color player=yellow,blue
color library=green,blue
color playlist=white,blue
color status=red,blue
# format for playlist window
display artist.20,album.20,title.20,track.4,year.4
# show most recent work of an artist first in library window
sort artist,-year
# make library window 20 columns wide and hide when not active
set lwidth=20
set lhide=true
.Ed
.Sh FILES
.Bl -tag -width Ds -compact
.It Pa ~/.vitunes/vitunes.conf
Default configuration file.
.It Pa ~/.vitunes/vitunes.db
Default database file.
.It Pa ~/.vitunes/playlists/
Default playlist directory.
.It Pa /usr/local/bin/mplayer
Default path to the
.Xr mplayer 1
binary.
.El
.Sh SEE ALSO
.Xr mplayer 1 ,