
# Defining a keyset for program simv
# Note: '@' and ESC can not be mapped to any command

# -------------------------------------------------------------------------

# Clear old keyset, set main directory and trashdirectory
   clearall
   maindir:.
   trashdir:$./trashdir

# -------------------------------------------------------------------------

# Define the collection specific mover keys

# capital letters call -jpgb first (and then -moveto a target)
   map:ABCDEFGHIJKLMNOPQRSTUVWXYZ@  -jpgb

   map:Aa@    -moveto:$./artwork
   map:Bb@    -moveto:$./birds
   map:Cc@    -moveto:$./cats
   map:Dd@    -moveto:$./desert
   map:Ff@    -moveto:$./flowers
   map:Gg@    -moveto:$./grass
   map:Hh@    -moveto:$./horses
   map:Ii@    -moveto:$./icons
   map:Jj@    -moveto:$./jokes
   map:Ll@    -moveto:$./loners
   map:Mm@    -moveto:$./mountain
   map:Oo@    -moveto:$./moss
   map:Rr@    -moveto:$./frogs
   map:Ss@    -moveto:$./seas
   map:Tt@    -moveto:$./trees
   map:Uu@    -moveto:$./sumo
   map:Ww@    -moveto:$./wood
   map:Xx@    -moveto:$./crowds
   map:Zz@    -moveto:$./misc

   helpstart: Flowers Grass Trees mOss Cats Horses fRogs Birds Xcrowds Loners
   helpmore: Mountain Wood Desert Seas sUmo Artwork Jokes Icons Zmisc


# -------------------------------------------------------------------------
# Some auxiliary keys 

   helpmore: \backwards !|combine 'silent "loud &unique

   map:\@      -back

# Combine *.tee files from multi part messages by a script in simv's directory
   map:|!@      -shell:$0/combine_tee $(basename $*) -yes

# Set acustic signal for xv.simv by existence of controlfile in $HOME
   map:'@      -shell:rm -f $~/.xv.gefummelt.beep
   map:"@      -shell:touch $~/.xv.gefummelt.beep

# Mark a the similar files as not matching to current one and skip
   map:&@      -shell:similar -distinguish:$*
   map:&@      -skip

# -------------------------------------------------------------------------

# Some general keys not specific to the file management task
# They should be available in any good keyset

   helpmore: ?help >forward <backward =isknown -`delete ~_+deldouble :undo ;reform

# The help key
   map:?@     -help_short

# Enter key refresh the display of current item
   map:@#10@   -refresh

# Navigation keys : '>' and SPACE move forward
   map:> @    -skip

# Navigation keys : '<' and BACKSPACE move backward
   map:<@     -back
   map:@#127@ -back
   map:@#8@   -back

# Deletion keys for current item and its first lookalike
   map:=@     -moveto:$./doubles
   map:-`@    -moveto:$-
   map:~_@    -doubleto:$-
   map:+@     -doubleto:$./doubles
   map:+@     -skip

# Undo and file format normalizer
   map::@     -undo
   map:;@     -jpgb

